Spaces:
Running
Running
Switch to using pyproject.toml for build options
Browse files- pyproject.toml +28 -0
- setup.py +3 -27
pyproject.toml
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
[tool.isort]
|
| 2 |
profile = "black"
|
|
|
|
| 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 |
+
]
|
| 10 |
+
description = "Simple and efficient symbolic regression"
|
| 11 |
+
readme = {file = "README.md", content-type = "text/markdown"}
|
| 12 |
+
license = {file = "LICENSE"}
|
| 13 |
+
requires-python = ">=3.7"
|
| 14 |
+
classifiers = [
|
| 15 |
+
"Programming Language :: Python :: 3",
|
| 16 |
+
"Operating System :: OS Independent",
|
| 17 |
+
"License :: OSI Approved :: Apache Software License"
|
| 18 |
+
]
|
| 19 |
+
dynamic = ["version", "dependencies"]
|
| 20 |
+
|
| 21 |
+
[tool.setuptools]
|
| 22 |
+
packages = ["pysr"]
|
| 23 |
+
include-package-data = false
|
| 24 |
+
package-data = {pysr = ["../datasets/*"]}
|
| 25 |
+
|
| 26 |
+
[tool.setuptools.dynamic]
|
| 27 |
+
dependencies = {file = "requirements.txt"}
|
| 28 |
+
|
| 29 |
[tool.isort]
|
| 30 |
profile = "black"
|
setup.py
CHANGED
|
@@ -1,30 +1,6 @@
|
|
| 1 |
-
import
|
| 2 |
-
|
| 3 |
-
try:
|
| 4 |
-
with open("README.md", "r", encoding="utf8") as fh:
|
| 5 |
-
long_description = fh.read()
|
| 6 |
-
except FileNotFoundError:
|
| 7 |
-
long_description = ""
|
| 8 |
|
| 9 |
exec(open("pysr/version.py").read())
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
version=__version__,
|
| 14 |
-
author="Miles Cranmer",
|
| 15 |
-
author_email="miles.cranmer@gmail.com",
|
| 16 |
-
description="Simple and efficient symbolic regression",
|
| 17 |
-
long_description=long_description,
|
| 18 |
-
long_description_content_type="text/markdown",
|
| 19 |
-
url="https://github.com/MilesCranmer/pysr",
|
| 20 |
-
# Read from requirements.txt:
|
| 21 |
-
install_requires=open("requirements.txt").read().splitlines(),
|
| 22 |
-
packages=setuptools.find_packages(),
|
| 23 |
-
package_data={"pysr": ["../Project.toml", "../datasets/*"]},
|
| 24 |
-
include_package_data=False,
|
| 25 |
-
classifiers=[
|
| 26 |
-
"Programming Language :: Python :: 3",
|
| 27 |
-
"Operating System :: OS Independent",
|
| 28 |
-
],
|
| 29 |
-
python_requires=">=3.7",
|
| 30 |
-
)
|
|
|
|
| 1 |
+
from setuptools import setup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
exec(open("pysr/version.py").read())
|
| 4 |
|
| 5 |
+
# Build options are managed in pyproject.toml
|
| 6 |
+
setup()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|