Turbo87 / utm

Bidirectional UTM-WGS84 converter for python
http://pypi.python.org/pypi/utm
MIT License
486 stars 101 forks source link

Support current versions of Python #114

Closed bartvanandel closed 7 months ago

bartvanandel commented 7 months ago

Add support for Python 3.10, 3.11, 3.12. Drop support for EOL versions of Python: 2.7, 3,5, 3.6, 3.7.

This superseeds #103.

bartvanandel commented 7 months ago

The tests fail due to pytest being way too old (it was fixed there 5 years ago, needs #112 merged.

From the logs:

Run pytest -v --cov=utm --color=yes
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.[1](https://github.com/Turbo87/utm/actions/runs/7716073850/job/21032056318?pr=114#step:6:1)2.1/x64/bin/pytest", line 5, in <module>
    from pytest import main
  File "/opt/hostedtoolcache/Python/3.[12](https://github.com/Turbo87/utm/actions/runs/7716073850/job/21032056318?pr=114#step:6:13).1/x64/lib/python3.12/site-packages/pytest.py", line 8, in <module>
    from _pytest.assertion import register_assert_rewrite
  File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/_pytest/assertion/__init__.py", line [13](https://github.com/Turbo87/utm/actions/runs/7716073850/job/21032056318?pr=114#step:6:14), in <module>
    from _pytest.assertion import rewrite
  File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py", line 9, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'
Error: Process completed with exit code 1.

@Turbo87 would you have time to take a look? With this one and #112 merged, I suppose a number of failed test attempts will also succeed again.