diff --git a/CHANGES.rst b/CHANGES.rst index 019c6fdd..1ab9d638 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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) ================== diff --git a/setup.cfg b/setup.cfg index 5df79b3b..1acbeda9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/setup.py b/setup.py index 36f7fe77..42e89de9 100644 --- a/setup.py +++ b/setup.py @@ -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"})