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

Remove "upload" and "register" commands. #1898

Merged
merged 1 commit into from
Nov 3, 2019

Conversation

pganssle
Copy link
Member

@pganssle pganssle commented Oct 31, 2019

Summary of changes

The upload and register commands were deprecated over a year ago, in July 2018 (PR #1410, discussed in issue #1381). It is time to actively remove them in favor of twine.

I think the most controversial part of this might be that I've added setuptools.errors. It wasn't clear what the best error class to use would be. distutils will use raise SystemExit for a missing command; that didn't seem quite like the right thing to do, but I'm willing to be convinced otherwise.

CC @pypa/setuptools-developers @di

Pull Request Checklist

  • Changes have tests
  • News fragment added in changelog.d. See documentation for details

Copy link
Sponsor Member

@di di left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(deprecated over a year ago, in July 2018)

I think we could be a little more helpful with the docs but otherwise LGTM.

docs/setuptools.txt Show resolved Hide resolved
@pganssle pganssle force-pushed the remove_upload_register branch 4 times, most recently from 1995daf to e5b43bd Compare November 2, 2019 15:45
@pganssle
Copy link
Member Author

pganssle commented Nov 2, 2019

Oops, turns out that if you name your classes UploadTest instead of TestUpload it doesn't get detected by pytest. I guess that's why they were originally named Test(Upload|Register)Test...

Yet another time when I am appreciative that we include the tests in the coverage, and that we enforce diff coverage...

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.
@pganssle
Copy link
Member Author

pganssle commented Nov 3, 2019

OK, merging this, which means that next release should be a breaking one!

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.

None yet

3 participants