Skip to content

Commit

Permalink
Include test fixtures (via package data) in artefacts
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
mgorny authored and mrbean-bremen committed Apr 11, 2023
1 parent 955a7c0 commit 1906fde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1906fde

Please sign in to comment.