Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize setuptools support to use pyproject.toml #184

Merged
merged 12 commits into from
Nov 5, 2023

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Oct 29, 2023

Replace the obsolete setup.py script and setup.cfg configuration file with the modern PEP 621 pyproject.toml metadata. This also implies replacing the custom version/long-description grabbing logic (that is broken with Python 3.12) with the features nowadays built-in in setuptools.

Fixes #172

mgorny and others added 4 commits October 29, 2023 12:36
Replace the obsolete `setup.py` script and `setup.cfg` configuration
file with the modern PEP 621 `pyproject.toml` metadata.  This also
implies replacing the custom version/long-description grabbing logic
(that is broken with Python 3.12) with the features nowadays built-in
in setuptools.

Fixes Knio#172
@coveralls
Copy link

coveralls commented Nov 5, 2023

Coverage Status

coverage: 100.0%. remained the same
when pulling 2075f2e on mgorny:pyproj-tom
into fe1f71e on Knio:master.

@Knio
Copy link
Owner

Knio commented Nov 5, 2023

Thanks! but can you try to get the remaining CI passing? I give up for now.

@mgorny
Copy link
Contributor Author

mgorny commented Nov 5, 2023

I can fix 3.12 but FWICS testing against 2.7 is no longer possible with GHA.

@mgorny mgorny force-pushed the pyproj-tom branch 2 times, most recently from 58a6c82 to d4a400a Compare November 5, 2023 13:10
@mgorny
Copy link
Contributor Author

mgorny commented Nov 5, 2023

Ok, I think that's as far as we can reasonably get. Python < 3.7 is no longer supported by setuptools even.

@Knio
Copy link
Owner

Knio commented Nov 5, 2023

Thanks, this seems to work in CI, but I can't actually build a package locally to publish, as it just makes "UNKNOWN"

$ python3 -m build --no-isolation
* Getting build dependencies for sdist...
running egg_info
writing UNKNOWN.egg-info/PKG-INFO
writing dependency_links to UNKNOWN.egg-info/dependency_links.txt
writing top-level names to UNKNOWN.egg-info/top_level.txt
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt
...etc

any ideas?

$ python3 --version
Python 3.9.2
$ python3 -m build --version
build 1.0.3 (/usr/local/lib/python3.9/dist-packages/build)

@Knio Knio merged commit 4a66756 into Knio:master Nov 5, 2023
8 checks passed
@mgorny
Copy link
Contributor Author

mgorny commented Nov 5, 2023

Thanks!

@mgorny mgorny deleted the pyproj-tom branch November 5, 2023 20:26
@chenrui333
Copy link

Thanks for the PR, any chance cutting off a new release? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace deprecated imp module with importlib
4 participants