Skip to content

use only pyproject configuration#1031

Merged
tomkralidis merged 3 commits intomasterfrom
pyproject
Mar 2, 2026
Merged

use only pyproject configuration#1031
tomkralidis merged 3 commits intomasterfrom
pyproject

Conversation

@tomkralidis
Copy link
Copy Markdown
Member

This PR:

  • moves to using pyproject.toml exclusively for project configuration
  • removes setup.py and related artifacts
  • note that in pyproject.toml we pin setuptools to <69 for Ubuntu 24.04 compatibility

This PR also contains some test updates (note that the changes in tests/test_wfs_generic.py are due to the remote WFS service error'ing out on DescribeFeatureType requests only in WFS 1.0.0 mode; test is removed given we support WFS 1.1.0 and 2.0.0 proper).

@geographika
Copy link
Copy Markdown
Contributor

@tomkralidis - I checked out this branch and built locally. All runs fine, but the wheel is missing all the subpackages of owslib. Image on the left is the new wheel, on the right the latest on pypi:

image

I tried adding the following, but for some reason the tests folder still gets added to the sdist .tar.gz (which didn't include it before).

#[tool.setuptools]
#packages = ["owslib"]

# find all subpackages automatically
[tool.setuptools.packages.find]
where = ["owslib"]

Some related long discussions at pypa/setuptools#3346 - maybe this is fixed in newer setuptools? Have you run into it before?

@tomkralidis
Copy link
Copy Markdown
Member Author

@geographika it turns out that MANIFEST.in helps here (removing tests/). Let me know if dist/ is now fixed on build.

@tomkralidis tomkralidis merged commit dba3d42 into master Mar 2, 2026
4 checks passed
@tomkralidis tomkralidis deleted the pyproject branch March 2, 2026 11:13
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.

3 participants