geopython / pywps

PyWPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium. PyWPS is written in Python.
https://pywps.org
MIT License
176 stars 117 forks source link

Don't use deprecated distutils module. #672

Closed sebastic closed 1 year ago

sebastic commented 1 year ago

Overview

setup.py still uses the deprecated distutils which will be removed in Python 3.12.

From What’s New In Python 3.10:

The entire distutils package is deprecated, to be removed in Python 3.12. Its functionality for specifying package builds has already been completely replaced by third-party packages setuptools and packaging, and most other commonly used APIs are available elsewhere in the standard library (such as platform, shutil, subprocess or sysconfig). There are no plans to migrate any other functionality from distutils, and applications that are using other functions should plan to make private copies of the code. Refer to PEP 632 for discussion.

Because setup_requires is deprecated, PEP 517 (pyproject.toml) is used for the build time dependencies.

Contribution Agreement

(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

coveralls commented 1 year ago

Coverage Status

Coverage: 81.35%. Remained the same when pulling 905208e104e6c88770475f553f12fe79f6da0c73 on sebastic:no-distutils into d0bb9787207e670f4cf8ec5fc3d56abb284226e1 on geopython:main.

Zeitsperre commented 1 year ago

Thanks for this contribution! I'll let @cehbrecht weigh in on whether we adopt PEP517 here.

cehbrecht commented 1 year ago

@sebastic thanks :)