Support creating stub-only packages
See original GitHub issue- 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]
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Support creating stub-only packages · Issue #475 - GitHub
Issue MyPy documentation explains how to create stub-only packages. It would be nice if Poetry supported stub-only packages.
Read more >Using installed packages - mypy 0.991 documentation
If you want to create a stub-only package for an existing library, the simplest way is to contribute stubs to the typeshed repository,...
Read more >PEP 561 – Distributing and Packaging Type Information
This PEP aims to support all three scenarios and make them simple to ... Note that for stub-only packages adding a py.typed marker...
Read more >MockSettings (Mockito 4.2.0 API) - javadoc.io
//Creates mock with different default answer & name Foo mock ... A stub-only mock does not record method invocations, thus saving memory but...
Read more >How to test software: mocking, stubbing, and contract testing
Mocking means creating a fake version of an external or internal service ... means creating a stand-in, but a stub only mocks the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.It’s already supported. Just add the following to the
[tool.poetry]
section.Then, if you run
poetry build
you should have stub-only distributions.