Repository navigation
Modernize the code a little - #45
Merged
Merged
Conversation
Member
Author
|
I also ran black and isort on the code and did some automated updates with ruff. Also use context managers for I'l fix the travis and move it to GitHub actions. |
Pytest can run the tests in alphabetical order such that when the test runs there might be some dangling python objects associated with previous tests. Run the garbage collection to ensure that the ZoomMap test starts with a clean slate.
timj
force-pushed
the
u/timj/modernize
branch
3 times, most recently
from
February 11, 2026 21:40
55449f2 to
41f2280
Compare
This required: * Some shenanigans to make sure that the support tools can be imported by setup.py when running in the sandbox. * setuptools-scm now creates a version .h file to allow the version to be embedded in the C code. The latter means that version numbering is now achieved by tagging rather than editing Ast.c
This prevents some tools warning that the package name might be confused by a source directory name.
timj
force-pushed
the
u/timj/modernize
branch
from
February 12, 2026 19:21
3dec169 to
44a3a3b
Compare
Version now handled by setuptools-scm
Now only need to support python 3.
Now that we do not have to support python 2
Replaces use of PyArray_ContiguousFromAny
Check more return values.
timj
force-pushed
the
u/timj/modernize
branch
from
February 17, 2026 20:58
bfbc09c to
9dfe70f
Compare
Member
Author
|
Version 4.0.0 uploaded to PyPI via GitHub Action. This includes the building of wheels for easy pip install (but without the YAML support). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supports python 3.13 and numpy 2
Starts dropping python 2 and pyfits support.
The libyaml detection does work if you have installed into /usr
The ZoomMap test failure was caused by pytest running tests in a different order.
Fixed a bug in
optionshandling since constructing an ast object withoptions=simply didn't work.Fixed the HatAttrString warning from python 3.13
Updated AST to v9.3.0 (which had a couple of bugs I needed to patch locally)
Added support for SplineMap
Changed version handling to pick up version from git tag.
Added GitHub action that should upload to PyPI when tag is pushed.
Original error reports
The libyaml detection doesn't seem to work (and doesn't work on the master branch with python 3.11) and there is a test failure on master even before this work:
With python 3.13 there is a new warning: