Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.14.0 release puts test files into global directories #36

Open
christian-heusel opened this issue Jun 15, 2024 · 0 comments
Open

0.14.0 release puts test files into global directories #36

christian-heusel opened this issue Jun 15, 2024 · 0 comments

Comments

@christian-heusel
Copy link
Contributor

Hello everybody! 👋🏻

It seems like the latest release puts tests files into global directories:

$ pacman -Qlp /home/custompkgs/b4-0.14.0-1-any.pkg.tar.zst | grep tests
b4 /usr/lib/python3.12/site-packages/tests/
b4 /usr/lib/python3.12/site-packages/tests/__init__.py
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/__init__.cpython-312.opt-1.pyc
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/__init__.cpython-312.pyc
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/conftest.cpython-312.opt-1.pyc
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/conftest.cpython-312.pyc
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/test___init__.cpython-312.opt-1.pyc
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/test___init__.cpython-312.pyc
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/test_ez.cpython-312.opt-1.pyc
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/test_ez.cpython-312.pyc
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/test_mbox.cpython-312.opt-1.pyc
b4 /usr/lib/python3.12/site-packages/tests/__pycache__/test_mbox.cpython-312.pyc
b4 /usr/lib/python3.12/site-packages/tests/conftest.py
b4 /usr/lib/python3.12/site-packages/tests/test___init__.py
b4 /usr/lib/python3.12/site-packages/tests/test_ez.py
b4 /usr/lib/python3.12/site-packages/tests/test_mbox.py

This has not been the case with the previous version. We're just doing a PEP517 based install (see this link for the full build instructions):

build() {
	cd "$pkgname-$pkgver"
	python -m build --wheel --no-isolation
}

package() {
	cd "$pkgname-$pkgver"
	python -m installer --destdir="$pkgdir" dist/*.whl
}
@christian-heusel christian-heusel changed the title 0.14 release puts test files into global directories 0.14.0 release puts test files into global directories Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant