Skip to content

Commit

Permalink
#269 update setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
awinia-github committed Oct 12, 2022
1 parent 4e50373 commit 413a8e7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
19 changes: 12 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 7 additions & 1 deletion src/semi_ate_installer/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import click
import pyfiglet

from semi_ate_installer.state.state_machine import NewEnvSM
Expand All @@ -9,13 +10,18 @@ def print_semi_ate_installer_banner():
print(ascii_banner)


def main():
@click.command()
def run():
print_semi_ate_installer_banner()

state_machine = NewEnvSM()
while state_machine.is_done() != State.Done:
state_machine.next()


def main():
run()


if __name__ == "__main__":
main()

0 comments on commit 413a8e7

Please sign in to comment.