diff --git a/pyproject.toml b/pyproject.toml index bc55682..65d2a38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,7 @@ [build-system] -requires = ["setuptools>=42", "wheel"] +requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=6.2"] build-backend = "setuptools.build_meta" -[tool.setuptools_scm] -write_to = "pkg/_version.py" # black: https://black.readthedocs.io/en/stable/ [tool.black] diff --git a/setup.cfg b/setup.cfg index 238621a..651f1c8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,23 +1,28 @@ [metadata] name = semi-ate-installer -version = 0.0.1 -description = "Semi ATE Installer package for ATE Projects" -long_description = "" -author = "The Semi-ATE Project Contributors" -author_email = "ate.organization@gmail.com" -url = -license = +description = Semi ATE Installer package for ATE Projects +long_description = file: README.md +long_description_content_type = text/markdown; charset=UTF-8; variant=GFM +author = The Semi-ATE Project Contributors +author_email = ate.organization@gmail.com +url = https://github.com/Semi-ATE/Semi-ATE-Installer +license = GPL-2.0-only [options] zip_safe = False packages = find: package_dir = =src +setup_requires = + setuptools_scm python_requires = >=3.9 install_requires = questionary==1.10.0 pyfiglet>=0.8 packaging + click + conda + mamba [options.packages.find] where = src diff --git a/setup.py b/setup.py index 899234a..fe7616e 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,8 @@ from setuptools import setup +from setuptools.config import read_configuration +conf_dict = read_configuration("setup.cfg") +PKG_NAME = conf_dict['metadata']['name'] + if __name__ == "__main__": - setup(use_scm_version=False) + setup(use_scm_version=True) diff --git a/src/semi_ate_installer/cli.py b/src/semi_ate_installer/cli.py index 4f738a6..d5303d2 100644 --- a/src/semi_ate_installer/cli.py +++ b/src/semi_ate_installer/cli.py @@ -1,3 +1,4 @@ +import click import pyfiglet from semi_ate_installer.state.state_machine import NewEnvSM @@ -9,7 +10,8 @@ def print_semi_ate_installer_banner(): print(ascii_banner) -def main(): +@click.command() +def run(): print_semi_ate_installer_banner() state_machine = NewEnvSM() @@ -17,5 +19,9 @@ def main(): state_machine.next() +def main(): + run() + + if __name__ == "__main__": main()