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
Deprecate upload and register commands #1410
Conversation
setuptools/command/register.py
Outdated
# Make sure that we are using valid current name/version info | ||
self.run_command('egg_info') | ||
orig.register.run(self) | ||
self._deprecation_notice() |
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'm not sure I understand why the try/catch here.
Can we do this?
self._deprecation_notice()
self.run_command('egg_info')
orig.register.run(self)
Is it because run_command
and register.run
generate a bunch of text, and you want the deprecation warning to be printed after this text?
If so, maybe this would be better:
try:
self.run_command('egg_info')
orig.register.run(self)
except Exception:
raise
finally:
self._deprecation_notice()
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.
Yeah, exactly. I'll switch this to using finally
.
I'm +1 on this initiative, but I do think it would be nice in the documentation for Also, ideally this would have tests, though I'm not super familiar with the |
9e2d19b
to
44c420c
Compare
I kinda disagree with this, I don't think it should be |
ba9caeb
to
7edce73
Compare
I don't think it needs to block this particular PR if you don't want to do it, but the problem is that it has to be someone's job, so either Yes we can just say, "Go ahead and read the |
I think we can link to this in the setuptools documentation for |
I think the netlify deployment failure was an intermittent failure. I don't seem to have permissions to restart it, though. Close-and-reopen didn't seem to work. @ewdurbin Do you own the netlify account associated here? Do you know if you can give me and the other setuptools maintainers permissions on it? |
I think it would be reasonable for |
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.
Awesome, LGTM. We can do a later PR to add links to any potential "migrating from setuptools" section in twine
.
New in 20.1: Added keyring support. | ||
New in 40.0: Deprecated the upload command. |
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.
@pganssle Since there was a 40.0
release last night, we'll need to tweak this line before releasing. I took a guess at what version this would land in, but seeing as it's a minor change, this should probably be 40.1
.
The upload and register commands were deprecated over a year ago, in July 2019 (PR pypaGH-1410, discussed in issue pypaGH-1381). It is time to actively remove them in favor of twine.
The upload and register commands were deprecated over a year ago, in July 2019 (PR pypaGH-1410, discussed in issue pypaGH-1381). It is time to actively remove them in favor of twine.
The upload and register commands were deprecated over a year ago, in July 2019 (PR pypaGH-1410, discussed in issue pypaGH-1381). It is time to actively remove them in favor of twine.
The upload and register commands were deprecated over a year ago, in July 2018 (PR pypaGH-1410, discussed in issue pypaGH-1381). It is time to actively remove them in favor of twine.
The upload and register commands were deprecated over a year ago, in July 2018 (PR pypaGH-1410, discussed in issue pypaGH-1381). It is time to actively remove them in favor of twine.
The upload and register commands were deprecated over a year ago, in July 2018 (PR pypaGH-1410, discussed in issue pypaGH-1381). It is time to actively remove them in favor of twine.
The upload and register commands were deprecated over a year ago, in July 2018 (PR pypaGH-1410, discussed in issue pypaGH-1381). It is time to actively remove them in favor of twine.
The upload and register commands were deprecated over a year ago, in July 2018 (PR pypaGH-1410, discussed in issue pypaGH-1381). It is time to actively remove them in favor of twine.
Summary of changes
As discussed in #1381, this PR deprecates the
upload
andregister
commands by warning the user not to use these commands.Pull Request Checklist