Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
dbe2c380
Commit
dbe2c380
authored
Dec 24, 2019
by
finswimmer
Committed by
Sébastien Eustace
Dec 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: don't exclude files that are explicit included in wheel (#1336) (#1750)
parent
6c3d357a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
1 deletions
+6
-1
poetry/masonry/builders/wheel.py
+3
-1
tests/masonry/builders/fixtures/exclude_nested_data_toml/my_package/data/data2.txt
+0
-0
tests/masonry/builders/fixtures/exclude_nested_data_toml/pyproject.toml
+1
-0
tests/masonry/builders/test_sdist.py
+1
-0
tests/masonry/builders/test_wheel.py
+1
-0
No files found.
poetry/masonry/builders/wheel.py
View file @
dbe2c380
...
@@ -153,7 +153,9 @@ class WheelBuilder(Builder):
...
@@ -153,7 +153,9 @@ class WheelBuilder(Builder):
else
:
else
:
rel_file
=
file
.
relative_to
(
self
.
_path
)
rel_file
=
file
.
relative_to
(
self
.
_path
)
if
self
.
is_excluded
(
rel_file
.
as_posix
()):
if
self
.
is_excluded
(
rel_file
.
as_posix
())
and
isinstance
(
include
,
PackageInclude
):
continue
continue
if
file
.
suffix
==
".pyc"
:
if
file
.
suffix
==
".pyc"
:
...
...
tests/masonry/builders/fixtures/exclude_nested_data_toml/my_package/data/data2.txt
0 → 100644
View file @
dbe2c380
tests/masonry/builders/fixtures/exclude_nested_data_toml/pyproject.toml
View file @
dbe2c380
...
@@ -10,6 +10,7 @@ license = "MIT"
...
@@ -10,6 +10,7 @@ license = "MIT"
readme
=
"README.rst"
readme
=
"README.rst"
exclude
=
[
"**/data/"
,
"**/*/item*"
]
exclude
=
[
"**/data/"
,
"**/*/item*"
]
include
=
["my_package/data/data2.txt"]
homepage
=
"https://python-poetry.org/"
homepage
=
"https://python-poetry.org/"
repository
=
"https://github.com/python-poetry/poetry"
repository
=
"https://github.com/python-poetry/poetry"
...
...
tests/masonry/builders/test_sdist.py
View file @
dbe2c380
...
@@ -436,6 +436,7 @@ def test_src_excluded_nested_data():
...
@@ -436,6 +436,7 @@ def test_src_excluded_nested_data():
assert
"my-package-1.2.3/my_package/data/sub_data/data2.txt"
not
in
names
assert
"my-package-1.2.3/my_package/data/sub_data/data2.txt"
not
in
names
assert
"my-package-1.2.3/my_package/data/sub_data/data3.txt"
not
in
names
assert
"my-package-1.2.3/my_package/data/sub_data/data3.txt"
not
in
names
assert
"my-package-1.2.3/my_package/data/data1.txt"
not
in
names
assert
"my-package-1.2.3/my_package/data/data1.txt"
not
in
names
assert
"my-package-1.2.3/my_package/data/data2.txt"
in
names
assert
"my-package-1.2.3/my_package/puplic/publicdata.txt"
in
names
assert
"my-package-1.2.3/my_package/puplic/publicdata.txt"
in
names
assert
"my-package-1.2.3/my_package/public/item1/itemdata1.txt"
not
in
names
assert
"my-package-1.2.3/my_package/public/item1/itemdata1.txt"
not
in
names
assert
(
assert
(
...
...
tests/masonry/builders/test_wheel.py
View file @
dbe2c380
...
@@ -93,6 +93,7 @@ def test_wheel_excluded_nested_data():
...
@@ -93,6 +93,7 @@ def test_wheel_excluded_nested_data():
assert
"my_package/data/sub_data/data2.txt"
not
in
z
.
namelist
()
assert
"my_package/data/sub_data/data2.txt"
not
in
z
.
namelist
()
assert
"my_package/data/sub_data/data3.txt"
not
in
z
.
namelist
()
assert
"my_package/data/sub_data/data3.txt"
not
in
z
.
namelist
()
assert
"my_package/data/data1.txt"
not
in
z
.
namelist
()
assert
"my_package/data/data1.txt"
not
in
z
.
namelist
()
assert
"my_package/data/data2.txt"
in
z
.
namelist
()
assert
"my_package/puplic/publicdata.txt"
in
z
.
namelist
()
assert
"my_package/puplic/publicdata.txt"
in
z
.
namelist
()
assert
"my_package/public/item1/itemdata1.txt"
not
in
z
.
namelist
()
assert
"my_package/public/item1/itemdata1.txt"
not
in
z
.
namelist
()
assert
"my_package/public/item1/subitem/subitemdata.txt"
not
in
z
.
namelist
()
assert
"my_package/public/item1/subitem/subitemdata.txt"
not
in
z
.
namelist
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment