File tree Expand file tree Collapse file tree 4 files changed +22
-9
lines changed Expand file tree Collapse file tree 4 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" setuptools>=42" , " wheel" ]
2
+ requires = [" setuptools>=42" , " wheel" , " setuptools_scm[toml]>=6.2 " ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
- [tool .setuptools_scm ]
6
- write_to = " pkg/_version.py"
7
5
8
6
# black: https://black.readthedocs.io/en/stable/
9
7
[tool .black ]
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = semi-ate-installer
3
- version = 0.0.1
4
3
description = " Semi ATE Installer package for ATE Projects"
5
- long_description = " "
4
+ long_description = file: README.md
5
+ long_description_content_type = text/markdown; charset=UTF-8; variant=GFM
6
6
author = " The Semi-ATE Project Contributors"
7
7
author_email = " ate.organization@gmail.com"
8
- url =
9
- license =
8
+ url = " https://github.com/Semi-ATE/Semi-ATE-Installer "
9
+ license = " GPL-2.0-only "
10
10
11
11
[options]
12
12
zip_safe = False
13
13
packages = find:
14
14
package_dir =
15
15
=src
16
+ setup_requires =
17
+ setuptools_scm
16
18
python_requires = >=3.9
17
19
install_requires =
18
20
questionary ==1.10.0
19
21
pyfiglet>=0.8
20
22
packaging
23
+ click
24
+ conda
25
+ mamba
21
26
22
27
[options.packages.find]
23
28
where = src
Original file line number Diff line number Diff line change 1
1
from setuptools import setup
2
2
3
+ from setuptools .config import read_configuration
4
+ conf_dict = read_configuration ("setup.cfg" )
5
+ PKG_NAME = conf_dict ['metadata' ]['name' ]
6
+
3
7
if __name__ == "__main__" :
4
- setup (use_scm_version = False )
8
+ setup (use_scm_version = True )
Original file line number Diff line number Diff line change
1
+ import click
1
2
import pyfiglet
2
3
3
4
from semi_ate_installer .state .state_machine import NewEnvSM
@@ -9,13 +10,18 @@ def print_semi_ate_installer_banner():
9
10
print (ascii_banner )
10
11
11
12
12
- def main ():
13
+ @click .command ()
14
+ def run ():
13
15
print_semi_ate_installer_banner ()
14
16
15
17
state_machine = NewEnvSM ()
16
18
while state_machine .is_done () != State .Done :
17
19
state_machine .next ()
18
20
19
21
22
+ def main ():
23
+ run ()
24
+
25
+
20
26
if __name__ == "__main__" :
21
27
main ()
You can’t perform that action at this time.
0 commit comments