Skip to content

Commit 8c038c3

Browse files
committed
#269 update setup.cfg
1 parent 4e50373 commit 8c038c3

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
[build-system]
2-
requires = ["setuptools>=42", "wheel"]
2+
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=6.2"]
33
build-backend = "setuptools.build_meta"
44

5-
[tool.setuptools_scm]
6-
write_to = "pkg/_version.py"
75

86
# black: https://black.readthedocs.io/en/stable/
97
[tool.black]

setup.cfg

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
[metadata]
22
name = semi-ate-installer
3-
version = 0.0.1
43
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
66
author = "The Semi-ATE Project Contributors"
77
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"
1010

1111
[options]
1212
zip_safe = False
1313
packages = find:
1414
package_dir =
1515
=src
16+
setup_requires =
17+
setuptools_scm
1618
python_requires = >=3.9
1719
install_requires =
1820
questionary==1.10.0

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
from setuptools import setup
22

3+
from setuptools.config import read_configuration
4+
conf_dict = read_configuration("setup.cfg")
5+
PKG_NAME = conf_dict['metadata']['name']
6+
37
if __name__ == "__main__":
4-
setup(use_scm_version=False)
8+
setup(use_scm_version=True)

0 commit comments

Comments
 (0)