summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHood Chatham <roberthoodchatham@gmail.com>2021-12-22 02:13:50 -0800
committerGitHub <noreply@github.com>2021-12-22 12:13:50 +0200
commit5846dacf8d4d48ad9278ded327cbb5f0917a238b (patch)
tree6e037a324271f7a903ccd212d038e67a2194cfbb /tests
parent0acd203cd896afec7f715aa2ff5980a403459a3b (diff)
downloadwheel-git-5846dacf8d4d48ad9278ded327cbb5f0917a238b.tar.gz
Support unpacking wheels that contain files with commas in their names (#427)
The csv module is now being used to read RECORD. Co-authored-by: Alex Grönholm <alex.gronholm@nextday.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py2
-rw-r--r--tests/testdata/commasinfilenames.dist/mypackage/__init__.py0
-rw-r--r--tests/testdata/commasinfilenames.dist/mypackage/data/1,2,3.txt0
-rw-r--r--tests/testdata/commasinfilenames.dist/mypackage/data/__init__.py0
-rw-r--r--tests/testdata/commasinfilenames.dist/setup.py12
-rw-r--r--tests/testdata/commasinfilenames.dist/testrepo-0.1.0/mypackage/__init__.py0
6 files changed, 13 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 7c3698c..d9821b8 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -12,7 +12,7 @@ import pytest
@pytest.fixture(scope='session')
def wheels_and_eggs(tmpdir_factory):
"""Build wheels and eggs from test distributions."""
- test_distributions = "complex-dist", "simple.dist", "headers.dist"
+ test_distributions = "complex-dist", "simple.dist", "headers.dist", "commasinfilenames.dist"
if sys.version_info >= (3, 6):
# Only Python 3.6+ can handle packaging unicode file names reliably
# across different platforms
diff --git a/tests/testdata/commasinfilenames.dist/mypackage/__init__.py b/tests/testdata/commasinfilenames.dist/mypackage/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/testdata/commasinfilenames.dist/mypackage/__init__.py
diff --git a/tests/testdata/commasinfilenames.dist/mypackage/data/1,2,3.txt b/tests/testdata/commasinfilenames.dist/mypackage/data/1,2,3.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/testdata/commasinfilenames.dist/mypackage/data/1,2,3.txt
diff --git a/tests/testdata/commasinfilenames.dist/mypackage/data/__init__.py b/tests/testdata/commasinfilenames.dist/mypackage/data/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/testdata/commasinfilenames.dist/mypackage/data/__init__.py
diff --git a/tests/testdata/commasinfilenames.dist/setup.py b/tests/testdata/commasinfilenames.dist/setup.py
new file mode 100644
index 0000000..8cf9e4e
--- /dev/null
+++ b/tests/testdata/commasinfilenames.dist/setup.py
@@ -0,0 +1,12 @@
+from setuptools import setup
+
+setup(
+ name='testrepo',
+ version='0.1',
+ packages=["mypackage"],
+ description='A test package with commas in file names',
+ include_package_data=True,
+ package_data={
+ "mypackage.data": ["*"]
+ },
+)
diff --git a/tests/testdata/commasinfilenames.dist/testrepo-0.1.0/mypackage/__init__.py b/tests/testdata/commasinfilenames.dist/testrepo-0.1.0/mypackage/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/testdata/commasinfilenames.dist/testrepo-0.1.0/mypackage/__init__.py