Python package includes tests
Closed this issue · 3 comments
bancek commented
setup.py
packages everything in src
directory which includes tests
directory. tests
is now polluting PYTHONPATH.
Example:
$ python3.7 -m venv env
$ . env/bin/activate
$ ls env/lib/python3.7/site-packages/tests
ls: env/lib/python3.7/site-packages/tests: No such file or directory
$ pip install artifacts-keyring
$ ls env/lib/python3.7/site-packages/tests
__init__.py __pycache__ test_backend.py
omokoh commented
Hey,
What is the impact of this issue?
Can you share more detail on the issue you are having?
bancek commented
It is causing issues with certain project folder structures.
Example:
PROJECT ROOT
- src
--- services
- tests
--- e2e
----- tests
------- services
If you add tests/e2e
to PYTHONPATH
it might clash with tests
with from artifacts-keyring
(depends if you append or prepend it) and besides it's really bad to pollute PYTHONPATH
with random packages.
github-actions commented
In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community.