GeospatialPython / pyshp

This library reads and writes ESRI Shapefiles in pure Python.
MIT License
1.09k stars 259 forks source link

Run tests on Python 3.10 and higher versions (as well as 2.7, 3.5, ..., 3.9) #268

Closed JamesParrott closed 7 months ago

JamesParrott commented 8 months ago

Describe the feature request

PR #267 gets the CI working again, and (all but one of) the tests passing. But only on Pythons 2.7, 3.5, ..., 3.9.

Testing on Python 3.10 causes an ImportErrro... ...immediately on starting PyTest 3.2.5. This version of Pytest is pinned in requirements.test.txt.
image https://github.com/JamesParrott/IronPyShp/actions/runs/7546512017

From PyShp's commit history, the version pin was not done without good cause. But for whatever reason (hopefully better work by its devs) PyTest is now no longer a problem on earlier versions of Python if pip if left to choose the latest compatible version for the Python version pip's running in.

The pinned dep currently preventing testing on Python 3.10+ is no longer necessary:

image https://github.com/JamesParrott/IronPyShp/actions/runs/7546537371

Contributions