Comments (1)
Hmm just found that I had patch aadapted from Fedora which has been ranaming pip-run to pip_run and removing pip-run.py.
After remove those two modyficztions pytest is now OK.
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pip-run-9.1.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pip-run-9.1.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pip-run-9.1.0, configfile: pytest.ini
collected 31 items
pip_run/commands.py ... [ 9%]
pip_run/deps.py .. [ 16%]
pip_run/read-deps.py . [ 19%]
pip_run/scripts.py . [ 22%]
pip_run/text.py . [ 25%]
pip_run/tests/test_deps.py ...... [ 45%]
pip_run/tests/test_launch.py ..x.. [ 61%]
pip_run/tests/test_scripts.py ............ [100%]
============================================================================= warnings summary =============================================================================
pip_run/tests/test_scripts.py::TestNotebookDepsReader::test_one_code_block
/home/tkloczko/rpmbuild/BUILD/pip-run-9.1.0/pip_run/scripts.py:100: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-tkloczko/pytest-694/test_one_code_block0/test_one_code_block.ipynb' mode='r' encoding='UTF-8'>
doc = json.load(open(script_path))
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
pip_run/tests/test_scripts.py::TestNotebookDepsReader::test_multiple_code_blocks
/home/tkloczko/rpmbuild/BUILD/pip-run-9.1.0/pip_run/scripts.py:100: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-tkloczko/pytest-694/test_multiple_code_blocks0/test_multiple_code_blocks.ipynb' mode='r' encoding='UTF-8'>
doc = json.load(open(script_path))
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
pip_run/tests/test_scripts.py::TestNotebookDepsReader::test_code_and_markdown
/home/tkloczko/rpmbuild/BUILD/pip-run-9.1.0/pip_run/scripts.py:100: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-tkloczko/pytest-694/test_code_and_markdown0/test_code_and_markdown.ipynb' mode='r' encoding='UTF-8'>
doc = json.load(open(script_path))
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
pip_run/tests/test_scripts.py::TestNotebookDepsReader::test_jupyter_directives
/home/tkloczko/rpmbuild/BUILD/pip-run-9.1.0/pip_run/scripts.py:100: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-tkloczko/pytest-694/test_jupyter_directives0/test_jupyter_directives.ipynb' mode='r' encoding='UTF-8'>
doc = json.load(open(script_path))
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================= short test summary info ==========================================================================
XFAIL pip_run/tests/test_launch.py::test_with_path_overlay - cleanup can't occur with execv; #4
================================================================ 30 passed, 1 xfailed, 4 warnings in 7.42s =================================================================
I just found that pip_run/tests is installed so I'll leave this ticked opened as seems still something should be done.
Test suite should be excluded from list of files added to .whl archive.
from pip-run.
Related Issues (20)
- Error in sitecustomize
- `FileNotFoundError: [Errno 2] No such file or directory` on cache dir when using PIP_RUN_MODE=persist HOT 1
- Implied arg split not working as expected HOT 1
- `OSError: [Errno 63] File name too long` thrown for long Python arguments (e.g. long command string) HOT 2
- CoverageWarning: Couldn't parse '...' HOT 1
- Support executables installed to `bin`. HOT 1
- Tests failing on Python 3.12 HOT 7
- Allow executing an installed binary HOT 2
- IndexError when no commands supplied
- Req with url-spec matched as "already installed" HOT 1
- Improve support for standalone scripts with shebang lines and possible "reinvocation" HOT 4
- Module "jaraco" has no attribute "env" HOT 6
- test_pkg_loaded_from_url depends on legacy pip behavior
- Support parsing PIP_RUN_RETENTION_STRATEGY from a script HOT 3
- Consider renaming PIP_RUN_MODE HOT 1
- Improved sophistication of environment strategies HOT 2
- What is "py" in the README.md? HOT 3
- New mode - in-memory install HOT 5
- Pre-install pip-run in the GitHub Actions runner images HOT 4
- PEP 723 compatibility HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pip-run.