Skip to content

Commit

Permalink
Backport PR astropy#12366: setuptools_scm preferences in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
saimn authored and meeseeksmachine committed Nov 4, 2021
1 parent b641741 commit 6fca165
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
[build-system]
requires = ["setuptools",
"setuptools_scm",
"setuptools_scm>=6.2",
"wheel",
"cython==0.29.22",
"jinja2==2.10.3",
"oldest-supported-numpy",
"extension-helpers"]
build-backend = 'setuptools.build_meta'

[tool.setuptools_scm]
write_to = "astropy/_version.py"

[tool.astropy-bot]
[tool.astropy-bot.autolabel]
# Comment this out to re-enable but then labeler Action needs to be disabled.
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ classifiers =
packages = find:
zip_safe = False
tests_require = pytest-astropy
setup_requires = setuptools_scm
install_requires =
numpy>=1.18
pyerfa>=2.0
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@

# Only import these if the above checks are okay
# to avoid masking the real problem with import error.
import os # noqa
from setuptools import setup # noqa
from extension_helpers import get_extensions # noqa

setup(use_scm_version={'write_to': os.path.join('astropy', '_version.py')},
ext_modules=get_extensions())
setup(ext_modules=get_extensions())

0 comments on commit 6fca165

Please sign in to comment.