Skip to content

Commit

Permalink
Set use_scm_version=True in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Slavich committed Aug 26, 2021
1 parent 0ad675c commit 2a11057
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
0.2.4 (unreleased)
==================


Workaround for setuptools_scm issues with recent versions of pip. [#45]

0.2.3 (2021-08-06)
==================
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ zip_safe = True
python_requires = >=3.7
setup_requires =
setuptools_scm
# This requirement forces readthedocs.io to install the
# minimum version of packaging that setuptools_scm needs.
packaging>=17

install_requires =
numpy>=1.17
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
from setuptools import setup

setup()
# This should be enabled by pyproject.toml, but that doesn't seem
# to work with pip 21.2.4.
setup(use_scm_version={"write_to": "src/stcal/_version.py"})

0 comments on commit 2a11057

Please sign in to comment.