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

Assure scm versioning is pypa compatible #364

Merged
merged 1 commit into from
Nov 4, 2020
Merged

Assure scm versioning is pypa compatible #364

merged 1 commit into from
Nov 4, 2020

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Nov 4, 2020

This fixes the issue of releasing test.pypi.org containers that were not tagged by making the versioning compatible with publishing requirements (taken from other places where I am using it, mainly avoids using + in version and instead produces something like 2.1.2.dev47 which is accepted.

Related: #322 (comment)

@ssbarnea ssbarnea requested a review from gnikonorov November 4, 2020 10:09
@ssbarnea ssbarnea added packaging Packaging category bug This issue/PR relates to a bug. labels Nov 4, 2020
@ssbarnea ssbarnea requested a review from BeyondEvil November 4, 2020 10:16
"pip >= 19.3.1",
"setuptools >= 42",
"setuptools_scm[toml] >= 3.5.0",
"setuptools_scm_git_archive >= 1.1",
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, why do we need to add all these requirements for this change?

Copy link
Member

@gnikonorov gnikonorov left a comment

Choose a reason for hiding this comment

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

Looks good to me, but can you please answer my question about the additions to requires in pyproject.toml?

@ssbarnea
Copy link
Member Author

ssbarnea commented Nov 4, 2020

TBH, I am not sure if all these are required but if they are not yet, they will soon be. Based on how pip is called and its own version it can decide to use very different methods for installing. This addresses some other issues people may encounter. Keep in mind that these are build time requirements, something very different that runtime requirements.

@ssbarnea ssbarnea merged commit 4f2cf9c into master Nov 4, 2020
@ssbarnea ssbarnea deleted the fix/packaging branch February 7, 2023 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug. packaging Packaging category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants