-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
area/build-systemRelated to PEP 517 packaging (see poetry-core)Related to PEP 517 packaging (see poetry-core)kind/bugSomething isn't working as expectedSomething isn't working as expected
Milestone
Description
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name:Ubuntu 18.04
- Poetry version: Poetry 0.12.17
- Link of a Gist with the contents of your pyproject.toml file:
Issue
I have defined a file to be excluded from the build in my pyproject.toml. When running poetry build this file is excluded in the sdist and wheel. When running poetry build -f wheel the file is included, running poetry build -f sdist the file is excluded.
Way to reproduce:
$ poetry new issue
$ cd issue
$ poetry install
$ touch issue/exclude_me.py
Add issue/exclude_me.py to the pyproject.toml
[tool.poetry]
name = "issue"
version = "0.1.0"
description = ""
authors = ["Fin Swimmer"]
exclude = ["issue/exclude_me.py"]
Run poetry build -vvv:
Using virtualenv: /home/finswimmer/.cache/pypoetry/virtualenvs/issue-py3.6
Building issue (0.1.0)
- Building sdist
- Adding: issue/__init__.py
- Adding: pyproject.toml
- Built issue-0.1.0.tar.gz
- Building wheel
- Adding: /tmp/tmpvo4lwtdk/issue-0.1.0/issue/__init__.py
- Built issue-0.1.0-py3-none-any.whl
Run poetry build -vvv -f wheel:
Using virtualenv: /home/finswimmer/.cache/pypoetry/virtualenvs/issue-py3.6
Building issue (0.1.0)
- Building wheel
- Adding: /home/finswimmer/issue/issue/__init__.py
- Adding: /home/finswimmer/issue/issue/exclude_me.py
- Built issue-0.1.0-py3-none-any.whl
Run poetry build -vvv -f sdist:
Using virtualenv: /home/finswimer/.cache/pypoetry/virtualenvs/issue-py3.6
Building issue (0.1.0)
- Building sdist
- Adding: issue/__init__.py
- Adding: pyproject.toml
- Built issue-0.1.0.tar.gz
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/build-systemRelated to PEP 517 packaging (see poetry-core)Related to PEP 517 packaging (see poetry-core)kind/bugSomething isn't working as expectedSomething isn't working as expected