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

the name of artifact #3356

Closed
1 task done
zillionare opened this issue Nov 12, 2020 · 4 comments
Closed
1 task done

the name of artifact #3356

zillionare opened this issue Nov 12, 2020 · 4 comments
Labels
area/docs Documentation issues/improvements

Comments

@zillionare
Copy link

  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

After run peotry build, I get whl file with name as xxx-0.7.0-py3-none-any.whl

I need to indicate that the package works on linux only, i.e, I need a name like:

xxx-0.7.0-py3-linux.whl

how should I get this? Found no documentation about specify sys.platform. I tried to put it under:

[build-system]
sys.platform='linux'

with no luck.

Thanks for help!

@zillionare zillionare added area/docs Documentation issues/improvements status/triage This issue needs to be triaged labels Nov 12, 2020
@sinoroc
Copy link

sinoroc commented Nov 12, 2020

As far as I know, the tags in the wheel name are meant to restrict the environment in which the wheel can be installed. If you want to restrict the environments your project is compatible with, you should specify the right trove classifiers.

Trove classifiers are mostly informal (as far as I remember). They won't really prevent someone on Windows to install your project, but it's on them to check the classifiers and the documentation of your project beforehand.

The wheel tags, are here to prevent to install in an environment where installation itself would most likely fail. Trove classifiers can inform (loosely) about what platforms it should run on, in other words it inform that the project would most likely fail at run-time (not at install-time) on other platforms.

Here is how to set them in a poetry project:

[tool.poetry]
# ...
classifiers = [
    "Operating System :: POSIX :: Linux",
]

@filmor
Copy link

filmor commented Nov 17, 2020

Classifiers are not an adequate replacement for precise build tags. This has been requested before in #2051, and I also require support for this. Right now, the logic is extremely simple (i.e. py3-any for packages that don't use a build script and a very precise one otherwise).

@sinoroc
Copy link

sinoroc commented Nov 17, 2020

Alright, should we close this ticket in favour of the other one?

Duplicate: #2051

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/docs Documentation issues/improvements
Projects
None yet
Development

No branches or pull requests

4 participants