Skip to content

Bump twine from 5.0.0 to 6.1.0#135

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/twine-6.1.0
Closed

Bump twine from 5.0.0 to 6.1.0#135
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/twine-6.1.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 17, 2025

Bumps twine from 5.0.0 to 6.1.0.

Changelog

Sourced from twine's changelog.

Twine 6.1.0 (2025-01-17)

Features ^^^^^^^^

  • Twine now has preliminary built-in support for Trusted Publishing <https://docs.pypi.org/trusted-publishers/>_ as an authentication mechanism. ([#1194](https://github.com/pypa/twine/issues/1194) <https://github.com/pypa/twine/pull/1194>_)

Deprecations and Removals ^^^^^^^^^^^^^^^^^^^^^^^^^

  • Remove support for egg and wininst distribution types. These are not accepted by PyPI and not produced by any modern build-backends. ([#1195](https://github.com/pypa/twine/issues/1195) <https://github.com/pypa/twine/issues/1195>_)

  • Twine no longer supports .tar.bz2 source distributions. ([#1200](https://github.com/pypa/twine/issues/1200) <https://github.com/pypa/twine/pull/1200>_)

Misc ^^^^

  • packaging is used instead of pkginfo for parsing and validating metadata. This aligns metadata validation to the one performed by PyPI. packaging version 24.0 or later is required. Support for metadata version 2.4 requires packaging 24.2 or later. pkginfo is not a dependency anymore. ([#1180](https://github.com/pypa/twine/issues/1180) <https://github.com/pypa/twine/issues/1180>_)

  • Use "source" instead of None as pyversion for sdist uploads. This is what PyPI (and most likely other package indexes) expects. ([#1191](https://github.com/pypa/twine/issues/1191) <https://github.com/pypa/twine/issues/1191>_)

Twine 6.0.1 (2024-11-30)

Bugfixes ^^^^^^^^

  • Fixed a regression where twine check would fail to expand wildcards, e.g. twine check 'dist/*'. ([#1188](https://github.com/pypa/twine/issues/1188) <https://github.com/pypa/twine/issues/1188>_)

Misc ^^^^

  • [#1184](https://github.com/pypa/twine/issues/1184) <https://github.com/pypa/twine/issues/1184>_

... (truncated)

Commits
  • aa3a910 Update changelog for 6.1.0 (#1214)
  • 4406034 Merge pull request #1208 from dnicolodi/rm-setuptools
  • 2ca55db Simplify generation of test packages used in test_check
  • bffd296 Move build_archive() from test_sdist to common helpers module
  • fd0646e Merge pull request #1206 from dnicolodi/rm-binary-blobs-part1
  • ab4ec8c Merge pull request #1211 from pypa/dependabot/github_actions/actions/upload-a...
  • b562f74 build(deps): bump actions/upload-artifact from 4.5.0 to 4.6.0
  • b2832de Remove tests/fixtures/twine-1.5.0.zip
  • 970851d Remove tests/alt-fixtures/twine-1.5.0-py2.py3-none-any.whl
  • 2386ca5 build(deps): bump actions/upload-artifact from 4.4.3 to 4.5.0 (#1205)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by Sourcery

Chores:

  • Update twine dependency to v6.1.0

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [twine](https://github.com/pypa/twine) from 5.0.0 to 6.1.0.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](pypa/twine@5.0.0...6.1.0)

---
updated-dependencies:
- dependency-name: twine
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Feb 17, 2025
@sourcery-ai
Copy link

sourcery-ai bot commented Feb 17, 2025

Reviewer's Guide by Sourcery

This pull request bumps the Twine dependency from version 5.0.0 to 6.1.0. This includes changes such as removing support for egg, wininst, and .tar.bz2 distribution types, switching from pkginfo to packaging for metadata parsing and validation, and using "source" instead of None as pyversion for sdist uploads. The Pipfile and Pipfile.lock files were updated to reflect the new version.

Sequence diagram for uploading source distribution

sequenceDiagram
    participant User
    participant Twine
    participant PyPI

    User->>Twine: Upload sdist
    Twine->>Twine: Set pyversion to "source"
    Twine->>PyPI: Upload package with pyversion="source"
    PyPI-->>Twine: Success/Failure
    Twine-->>User: Upload status
Loading

Updated class diagram for metadata validation

classDiagram
    class MetadataValidator {
        <<interface>>
        +validate(metadata: dict): bool
    }

    class PackagingMetadataValidator {
        +validate(metadata: dict): bool
    }

    MetadataValidator <|.. PackagingMetadataValidator : implements

    note for MetadataValidator "Replaced pkginfo with packaging for metadata validation"
Loading

File-Level Changes

Change Details Files
The Twine dependency was bumped from version 5.0.0 to 6.1.0.
  • Updated the twine version specifier in Pipfile to allow versions less than 6.2.
  • The Pipfile.lock was updated to reflect the new Twine version and its dependencies.
Pipfile
Pipfile.lock
Removed support for egg, wininst, and .tar.bz2 distribution types.
  • Removed support for egg and wininst distribution types.
  • Removed support for .tar.bz2 source distributions.
Switched from pkginfo to packaging for metadata parsing and validation.
  • Replaced pkginfo with packaging for parsing and validating metadata.
  • packaging version 24.0 or later is now required.
  • Support for metadata version 2.4 requires packaging 24.2 or later.
  • pkginfo is no longer a dependency.
Used "source" instead of None as pyversion for sdist uploads.
  • Used "source" instead of None as pyversion for sdist uploads.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 5, 2025

Superseded by #195.

@dependabot dependabot bot closed this Sep 5, 2025
@dependabot dependabot bot deleted the dependabot/pip/twine-6.1.0 branch September 5, 2025 08:10
@codecov
Copy link

codecov bot commented Sep 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (34deea9) to head (b9e15e8).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@      Coverage Diff      @@
##   master   #135   +/-   ##
=============================
=============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants