Skip to content

Commit

Permalink
Merge pull request #73 from mhvk/update-to-erfa-1.7.3
Browse files Browse the repository at this point in the history
Update to erfa 1.7.3
  • Loading branch information
mhvk authored Apr 25, 2021
2 parents ec071b1 + 5120b7d commit b1254dd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
- name: Install APT packages
if: matrix.apt_packages
run: sudo apt-get install ${{ matrix.apt_packages }}
- name: Install packages for macOS
if: matrix.os == 'macos-latest'
run: brew install autoconf automake
- name: Install Python dependencies
run: python -m pip install --upgrade tox
- name: Run tests
Expand Down
5 changes: 3 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
1.7.3 (unreleased)
1.7.3 (25/04/2021)
==================

- Bundled liberfa version update to v1.7.3.
- Fixed a bug that caused the output of ``rx``, ``ry``, and ``rz`` to be
boolean rather than float. [gh-72]
boolean rather than float for some compilers/OS. [gh-72]

1.7.2 (25/01/2021)
==================
Expand Down
12 changes: 12 additions & 0 deletions RELEASING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ environment::
git clean -fxd
tox -e test

It is also wise to check that the new release works with astropy::

python3 -m venv astropy_test
source astropy_test/bin/activate
pip install astropy[test]
pip install . # Install our newest erfa version in virtual environment
cd astropy_test/lib/python3.9/site-packages/astropy
pytest --remote-data=any
cd -
deactivate
git clean -fxd

Once the package is ready to release, first edit ``CHANGES.rst`` to
add the release data (and add any information needed, such as an
update to the bundled ``liberfa``).
Expand Down
3 changes: 2 additions & 1 deletion erfa/tests/test_erfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def test_sofa_version(self):
assert hasattr(erfa.version, 'sofa_version')
sofa_version = erfa.version.sofa_version
assert isinstance(sofa_version, str)
assert len(sofa_version) == 8
assert (len(sofa_version) == 8
or len(sofa_version) == 10 and sofa_version[8] == '_')
# Sorry, future 22nd century person, you may have to adjust!
assert sofa_version.startswith('20')

Expand Down
2 changes: 1 addition & 1 deletion liberfa/erfa
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_liberfa_versions(path=os.path.join(LIBERFADIR, 'configure.ac')):
version = packaging.version.parse(mobj.group('version'))

mobj = re.search(
r'AC_DEFINE\(\[SOFA_VERSION\], \["(?P<version>\d{8})"\],', s)
r'AC_DEFINE\(\[SOFA_VERSION\], \["(?P<version>\d{8}(_\w)?)"\],', s)
if not mobj:
warn('unable to detect SOFA version')
return []
Expand Down

0 comments on commit b1254dd

Please sign in to comment.