- Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsdist.py
27 lines (17 loc) · 613 Bytes
/
sdist.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c) 2024 Phil Thompson <phil@riverbankcomputing.com>
from ..abstract_projectimportAbstractProject
from ..exceptionsimporthandle_exception
defmain():
""" Build an sdist for the project from the command line. """
try:
project=AbstractProject.bootstrap('sdist',
"Build an sdist for the project.")
project.build_sdist('.')
project.progress("The sdist has been built.")
exceptExceptionase:
handle_exception(e)
return0
if__name__=='__main__':
importsys
sys.exit(main())