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

Support creating stub-only packages #475

Closed
1 task done
rominf opened this issue Oct 6, 2018 · 6 comments
Closed
1 task done

Support creating stub-only packages #475

rominf opened this issue Oct 6, 2018 · 6 comments

Comments

@rominf
Copy link

rominf commented Oct 6, 2018

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

Issue

MyPy documentation explains how to create stub-only packages. It would be nice if Poetry supported stub-only packages. Current behaviour:

$ fd
ordered_set-stubs
pyproject.toml
LICENSE
README.md
ordered_set-stubs/__init__.pyi
$ poetry build
Skipping virtualenv creation, as specified in config file.
Building ordered_set-stubs (0.1.0)
                                                      
[ValueError]                           
No file/folder found for package ordered-set-stubs  
                                                      
build [-f|--format FORMAT]
@sdispater
Copy link
Member

It's already supported. Just add the following to the [tool.poetry] section.

[tool.poetry]
# Basic package information

packages = [
    {include = "ordered_set-stubs"}
]

Then, if you run poetry build you should have stub-only distributions.

@sdispater
Copy link
Member

You can have more information in the documentation: https://poetry.eustace.io/docs/pyproject/#packages

@rominf
Copy link
Author

rominf commented Oct 7, 2018

Thank you, @sdispater, it worked. Sorry didn't figured out myself.

@rominf rominf closed this as completed Oct 7, 2018
@fsenart
Copy link

fsenart commented Jan 16, 2020

@sdispater right after version 1.0.0, in version 1.0.1, stub-only packages are no longer supported. One gets an ... is not a package. error. @rominf this issue should be reopened.

@hoefling
Copy link
Contributor

hoefling commented Feb 8, 2020

Broken in c401850

laurentS added a commit to laurentS/neomodel-stubs that referenced this issue Apr 3, 2020
See python-poetry/poetry#475 (comment)
This is not sufficient, as there is a bug in poetry (next commit)
Copy link

github-actions bot commented Mar 3, 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 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants