-
Notifications
You must be signed in to change notification settings - Fork 31
Project metadata: Remove setup.py. Improve Python compatibility.
#759
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| [build-system] | ||
| requires = ["hatchling >= 1.26", "versioningit"] | ||
| requires = ["hatch", "hatchling", "versioningit"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [tool.hatch.build.targets.sdist] | ||
|
|
@@ -26,7 +26,7 @@ name = "crate" | |
| dynamic = ["version"] | ||
| description = "CrateDB Python Client" | ||
| authors = [{ name = "Crate.io", email = "[email protected]" }] | ||
| requires-python = ">=3.10" | ||
| requires-python = ">=3.6" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we lower this now? Afaik newer versions intentionally bumped this so that
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| readme = "README.rst" | ||
| license = "Apache-2.0" | ||
| classifiers = [ | ||
|
|
@@ -35,32 +35,40 @@ classifiers = [ | |
| "Operating System :: OS Independent", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.6", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| "Programming Language :: Python :: Implementation :: CPython", | ||
| "Programming Language :: Python :: Implementation :: PyPy", | ||
| "Programming Language :: SQL", | ||
| "Topic :: Database", | ||
| "Topic :: Internet :: WWW/HTTP", | ||
| "Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator", | ||
| "Topic :: System :: Networking", | ||
| ] | ||
| dependencies = [ | ||
| "importlib-metadata; python_version<'3.8'", | ||
| "orjson>=3.11.3", | ||
| "orjson", | ||
| "urllib3", | ||
| "verlib2>=0.3.1", | ||
| ] | ||
|
|
||
| [dependency-groups] | ||
| dev = [ | ||
| "certifi>=2025.10.5", | ||
| "backports.zoneinfo<1; python_version<'3.9'", | ||
| "certifi", | ||
| "coverage<8", | ||
| "mypy<1.20", | ||
| "poethepoet<1", | ||
| "pytest<10", | ||
| "pytz>=2025.2", | ||
| "pytz", | ||
| "ruff<0.15", | ||
| "setuptools>=80.9.0", | ||
| "stopit<1.2", | ||
| ] | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| zc.buildout==5.1.1 | ||
| zope.interface==8.2 | ||
| zope.interface>=8,<9 | ||
| zope.testrunner>=5,<9 |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implies that there's now a
hatchexecutable available in $PATH. Looks like this isn't mentioned inDEVELOP.rst- the whole file looks sort of outdated, together with the bootstrap.shCan we simplify that, so there's some sort of standard
uv venv venv; uv pip install -Ue ".[dev]"with no special custom logic?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hatch was introduced with GH-739, but updating the files you've mentioned apparently has been missed. Let's track this with a separate ticket so @surister can address it?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created a dedicated ticket. Thank you.
setuptoolsoruvbuild backend #766There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not fix it? Seems like things are sort of broken as they are in this PR
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch was merely thought cosmetic to remove
setup.pyas intended. GH-739 already made the project use Hatch, becausepyproject.tomltakes precedence even when using the traditionalsetuptoolsbuild backend like before. In this spirit, the project would already be broken right now?Switching to
setuptoolsagain requires more changes, because standardsetuptoolsuses a different format inpyproject.tomlthanhatch. Let's discuss here?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see the advantage of going from A (broken) -> B (this version - also broken) -> C (version that works) when we can do A (broken) -> C (not broken).
Also note that this doesn't require switching away from
hatch. It just needs to become a build time dependency that's documented. Could even make use ofuvx hatchif we already depend onuv(which should also be documented if that's the case, and isn't mentioned)Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi. Apologies that I still can't follow what is exactly broken here. Can you share an error message? Hatch is currently a build time dependency, and this works well.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be seeing the problem now: Is it
hatchlingvs.hatch? So, let's just addhatch, right! Fixed with 8a9a172.