-
Notifications
You must be signed in to change notification settings - Fork 140
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
remove setup.py
and migrate to a static pyproject.toml
#388
base: trunk
Are you sure you want to change the base?
Conversation
# What follows is an exact copy of the runtime dependencies, because (A) | ||
# incremental needs to be able to import `treq` to be able to import | ||
# `treq.__version__` (see `tools.setuptools.dynamic` below), and (B) the | ||
# `treq` module is set up such that everything is eagerly imported into the | ||
# top-level namespace and thus sucks in every other dependency that we | ||
# require. |
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 is odd, because incremental exec()
s the _version.py
directly by my reading.
[tool.setuptools.dynamic] | ||
version = {attr = "treq.__version__"} |
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.
Oh, I see, you've tried to use setuptools attr
and it's falling back to importing the module.
I don't see anything here equivalent to the use_incremental=True
argument to setup()
. It looks like we need to add support to incremental
for direct integration with setuptools, like setuptools_scm has:
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.
Yup.
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.
Filed twisted/incremental#90 for this so that we can fix it in incremental. Sad that this seems to be the main setuptools build extension entrypoint.
@glyph Do you have any plan to revive this now that Incremental supports |
Thanks for the heads up, I would definitely like for this to be landed. |
Remove
setup.py
and migrate project metadata to a staticpyproject.toml
.