Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
e373739
1
Parent(s):
725c510
Use setuptools_scm for version management
Browse files- pyproject.toml +6 -2
- pysr/version.py +0 -1
- setup.py +0 -2
pyproject.toml
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
[build-system]
|
2 |
-
requires = ["setuptools"]
|
3 |
build-backend = "setuptools.build_meta"
|
4 |
|
5 |
[project]
|
6 |
name = "pysr"
|
|
|
7 |
authors = [
|
8 |
{name = "Miles Cranmer", email = "miles.cranmer@gmail.com"},
|
9 |
]
|
@@ -16,7 +17,7 @@ classifiers = [
|
|
16 |
"Operating System :: OS Independent",
|
17 |
"License :: OSI Approved :: Apache Software License"
|
18 |
]
|
19 |
-
dynamic = ["
|
20 |
|
21 |
[tool.setuptools]
|
22 |
packages = ["pysr"]
|
@@ -26,5 +27,8 @@ package-data = {pysr = ["../datasets/*"]}
|
|
26 |
[tool.setuptools.dynamic]
|
27 |
dependencies = {file = "requirements.txt"}
|
28 |
|
|
|
|
|
|
|
29 |
[tool.isort]
|
30 |
profile = "black"
|
|
|
1 |
[build-system]
|
2 |
+
requires = ["setuptools", "setuptools_scm"]
|
3 |
build-backend = "setuptools.build_meta"
|
4 |
|
5 |
[project]
|
6 |
name = "pysr"
|
7 |
+
version = "0.17.0"
|
8 |
authors = [
|
9 |
{name = "Miles Cranmer", email = "miles.cranmer@gmail.com"},
|
10 |
]
|
|
|
17 |
"Operating System :: OS Independent",
|
18 |
"License :: OSI Approved :: Apache Software License"
|
19 |
]
|
20 |
+
dynamic = ["dependencies"]
|
21 |
|
22 |
[tool.setuptools]
|
23 |
packages = ["pysr"]
|
|
|
27 |
[tool.setuptools.dynamic]
|
28 |
dependencies = {file = "requirements.txt"}
|
29 |
|
30 |
+
[tool.setuptools_scm]
|
31 |
+
write_to = "pysr/version.py"
|
32 |
+
|
33 |
[tool.isort]
|
34 |
profile = "black"
|
pysr/version.py
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
__version__ = "0.17.0"
|
|
|
|
setup.py
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
from setuptools import setup
|
2 |
|
3 |
-
exec(open("pysr/version.py").read())
|
4 |
-
|
5 |
# Build options are managed in pyproject.toml
|
6 |
setup()
|
|
|
1 |
from setuptools import setup
|
2 |
|
|
|
|
|
3 |
# Build options are managed in pyproject.toml
|
4 |
setup()
|