Skip to content

Commit f5bdbfa

Browse files
authored
Merge pull request #101 from avalentino/release/pyerfa-v2.0.0.2
Release/pyerfa v2.0.0.2
2 parents 90aa59a + 61a845b commit f5bdbfa

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

.github/workflows/ci_workflows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
toxargs: -v
2626

2727
- name: Test with development versions of our dependencies
28-
os: ubuntu-20.04 # currently newer than ubuntu-latest
29-
python: 3.9
28+
os: ubuntu-latest
29+
python: 3.11
3030
toxenv: test-devdeps
3131
toxargs: -v
3232

@@ -75,7 +75,7 @@ jobs:
7575
include:
7676

7777
- name: Tests with external liberfa
78-
os: ubuntu-20.04
78+
os: ubuntu-latest
7979
python: 3.8
8080
toxenv: test
8181
toxargs: -v

CHANGES.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2.0.0.2 (2023-03-19)
2+
====================
3+
4+
- Fix compatibility with numpy v1.24.
5+
- Ensure documentation is correct also for functions without parameters.
6+
- CI configuration updated.
7+
- Switch building of wheels to GitHub Actions.
8+
- Min ``setuptools_scm`` updated.
9+
- Min numpy version in ``tox.ini`` updated to fix CI issues.
10+
111
2.0.0.1 (2021-11-02)
212
====================
313

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ requires = numpy
2424
zip_safe = False
2525
tests_require = pytest-doctestplus
2626
setup_requires = setuptools_scm
27-
install_requires = numpy>=1.17
27+
install_requires = numpy>=1.21
2828
python_requires = >=3.7
2929

3030
[options.packages.find]

setup.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import setuptools
99
import subprocess
1010
from warnings import warn
11-
from distutils.dep_util import newer
1211
import packaging.version
1312

1413

@@ -20,6 +19,20 @@
2019
]
2120

2221

22+
def newer(source, target):
23+
import pathlib
24+
25+
source = pathlib.Path(source)
26+
if not source.exists():
27+
raise FileNotFoundError(f"file '{source.resolve()}' does not exist")
28+
29+
target = pathlib.Path(target)
30+
if not target.exists():
31+
return 1
32+
33+
return source.stat().st_mtime > target.stat().st_mtime
34+
35+
2336
# https://mail.python.org/pipermail/distutils-sig/2007-September/008253.html
2437
class NumpyExtension(setuptools.Extension):
2538
"""Extension type that adds the NumPy include directory to include_dirs."""

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ description =
3636

3737
# The following provides some specific pinnings for key packages
3838
deps =
39-
oldestdeps: numpy==1.20.*
39+
oldestdeps: numpy==1.21.*
4040
devdeps: numpy>=0.0.dev0
4141

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

0 commit comments

Comments
 (0)