Skip to content

Commit

Permalink
Merge pull request #101 from avalentino/release/pyerfa-v2.0.0.2
Browse files Browse the repository at this point in the history
Release/pyerfa v2.0.0.2
  • Loading branch information
avalentino authored Mar 20, 2023
2 parents 90aa59a + 61a845b commit f5bdbfa
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
toxargs: -v

- name: Test with development versions of our dependencies
os: ubuntu-20.04 # currently newer than ubuntu-latest
python: 3.9
os: ubuntu-latest
python: 3.11
toxenv: test-devdeps
toxargs: -v

Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
include:

- name: Tests with external liberfa
os: ubuntu-20.04
os: ubuntu-latest
python: 3.8
toxenv: test
toxargs: -v
Expand Down
10 changes: 10 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2.0.0.2 (2023-03-19)
====================

- Fix compatibility with numpy v1.24.
- Ensure documentation is correct also for functions without parameters.
- CI configuration updated.
- Switch building of wheels to GitHub Actions.
- Min ``setuptools_scm`` updated.
- Min numpy version in ``tox.ini`` updated to fix CI issues.

2.0.0.1 (2021-11-02)
====================

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ requires = numpy
zip_safe = False
tests_require = pytest-doctestplus
setup_requires = setuptools_scm
install_requires = numpy>=1.17
install_requires = numpy>=1.21
python_requires = >=3.7

[options.packages.find]
Expand Down
15 changes: 14 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import setuptools
import subprocess
from warnings import warn
from distutils.dep_util import newer
import packaging.version


Expand All @@ -20,6 +19,20 @@
]


def newer(source, target):
import pathlib

source = pathlib.Path(source)
if not source.exists():
raise FileNotFoundError(f"file '{source.resolve()}' does not exist")

target = pathlib.Path(target)
if not target.exists():
return 1

return source.stat().st_mtime > target.stat().st_mtime


# https://mail.python.org/pipermail/distutils-sig/2007-September/008253.html
class NumpyExtension(setuptools.Extension):
"""Extension type that adds the NumPy include directory to include_dirs."""
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ description =

# The following provides some specific pinnings for key packages
deps =
oldestdeps: numpy==1.20.*
oldestdeps: numpy==1.21.*
devdeps: numpy>=0.0.dev0

# The following indicates which extras_require from setup.cfg will be installed
Expand Down

0 comments on commit f5bdbfa

Please sign in to comment.