-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Implement private projects #1537
Comments
I think this proposal is nice. I set the following for packages that should not be made public. [tool.poetry]
exclude = ["**/*"] With this workaround, even if This workaround is not good. I think you need an option to make it impossible to publish. |
Overall this is trivial to implement. The more important question here is the API / user experience. I'd be happy to push out a PR for this with some agreement from core devs on API. I have written down a host of options, there may be others as well. Option 1: Borrow Rust Cargo's manifest
|
its really dangerous i cant disable this cuz' 👇 if i have pypi configured globally then if i accidently run please disable the publish command by default or let it recide in scripts, then we can also overwrite it if needed!!! EDIT: i may have sounded very alarmist, but i still think its an issue |
I've implemented basic solution similar to @alkasm Option 5. |
Bumping this issue. Can we get any guidance or suggestions from the poetry team? Would be happy to work on this but again, I don't know the right UX vision for poetry's behavior here. |
you can add the "Private :: Do Not Upload" trove classifier pypi/warehouse#5440 |
I really appreciate folks adding that, I love the new Still, I think |
|
|
The current project could not be installed: [Errno 3] No such file or directory: README.rst The current project could not be installed: No file/folder found for package website - python-poetry/poetry#1132 - python-poetry/poetry#1537 - python-poetry/poetry#2458 - https://discuss.python.org/t/projects-that-arent-meant-to-generate-a-wheel-and-pyproject-toml/29684
Feature Request
Currently poetry doesn't support disabling publishing of package to remote repository. Add
publish
key similar topublish
key present over cargo manifest for rust crates.publish
key can have two types of value either bool or list of repository name. Thepublish
field can be used to prevent a package from being published to a remote repository (like PYPI) by mistake, for instance to keep a package private in a company. If bool is present and is false then package cannot be published to any remote repository. Similarly if list of remote repository name is present then package can only be published to those remote repository.The text was updated successfully, but these errors were encountered: