Poetry: include= and exclude= missing from poetry-schema.json

Created on 7 Jun 2018  路  3Comments  路  Source: python-poetry/poetry

Hi, great work on Poetry! I might be missing something since that's my first try adopting Poetry.

I see code in poetry.py and packages/package.py around includes and excludes. I see it documented in https://poetry.eustace.io/docs/pyproject/#include-and-exclude. But since they are missing in the JSON schema, attempts to use either end with:

[InvalidProjectFile]
Additional properties are not allowed ('include' was unexpected)
Configuration Feature Packaging

Most helpful comment

Thanks for your interest in Poetry!

Sorry about the confusion, the inclue/exclude sections are definitely planned but are not yet completely implemented.

It should land in release 0.11.0. I will keep you posted.

All 3 comments

Thanks for your interest in Poetry!

Sorry about the confusion, the inclue/exclude sections are definitely planned but are not yet completely implemented.

It should land in release 0.11.0. I will keep you posted.

This is now supported in release 0.11.0a3. Note that this has changed a bit and include is only to specify non package/module files (like change logs or any other file you want to include in the final distribution).

If you want to specify packages or modules that do not follow the poetry's recommended structure you can do so via the packages聽property.

See https://poetry.eustace.io/docs/pyproject/#packages and https://poetry.eustace.io/docs/pyproject/#include-and-exclude

This now supported, see the links above.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Euphorbium picture Euphorbium  路  3Comments

jackemuk picture jackemuk  路  3Comments

AWegnerGitHub picture AWegnerGitHub  路  3Comments

jhrmnn picture jhrmnn  路  3Comments

ulope picture ulope  路  3Comments