aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-04-11 18:33:27 +0200
committermrbean-bremen <mrbean-bremen@users.noreply.github.com>2023-04-11 20:37:21 +0200
commit1906fde13c29de1ca4c232177490c39aae197aa8 (patch)
treeb7cb3c939557528b8acb87096548aac835fff8a7
parent955a7c0e29e403eb8784b8c929b8b07b40b0aa35 (diff)
downloadpyfakefs-1906fde13c29de1ca4c232177490c39aae197aa8.tar.gz
Include test fixtures (via package data) in artefacts
Enable installing package data in order to install the test fixture. This is necessary to fix test failures when running tests from sdist or the installed package: FAILED pyfakefs/tests/patched_packages_test.py::TestPatchedPackages::test_read_excel - FileNotFoundError: [Errno 2] No such file or directory: '/tmp/portage/dev-python/pyfakefs-5.2.1/work/pyfakefs-5.2.1/pyfakefs/tests...
-rw-r--r--CHANGES.md6
-rw-r--r--setup.cfg1
2 files changed, 7 insertions, 0 deletions
diff --git a/CHANGES.md b/CHANGES.md
index fc8bfd6..4278df7 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,6 +1,12 @@
# pyfakefs Release Notes
The released versions correspond to PyPI releases.
+## Unreleased
+
+### Fixes
+* The test fixture is now included in the source distribution and installed
+ with the package.
+
## [Version 5.2.1](https://pypi.python.org/pypi/pyfakefs/5.2.1) (2023-04-11)
Support for latest Python 3.12 version.
diff --git a/setup.cfg b/setup.cfg
index 04fd295..b73371a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -52,6 +52,7 @@ packages = find:
install_requires =
python_requires = >=3.7
test_suite = pyfakefs.tests
+include_package_data = True
[options.packages.find]
exclude = docs