[GH-ISSUE #195] mock classes missing from PyPI archive #108

Open
opened 2026-02-27 15:46:29 +03:00 by kerem · 3 comments
Owner

Originally created by @einsibjarni on GitHub (Dec 16, 2024).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/195

I'm the maintainer of the proxmoxer port in FreeBSD.

I was asked to add support for running tests on the port, but after much head scratching, I realized that the archive from PyPI (which ports in FreeBSD are encouraged to use instead of fetching from Github) is missing the tests/api_mock.py and tests/file_mock.py files.

Are they deliberately left out of the archive? If so, why these files but not the test_*.py files?

Originally created by @einsibjarni on GitHub (Dec 16, 2024). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/195 I'm the maintainer of the proxmoxer port in [FreeBSD](https://www.freshports.org/devel/py-proxmoxer). I was asked to add support for running tests on the port, but after much head scratching, I realized that the archive from PyPI (which ports in FreeBSD are encouraged to use instead of fetching from Github) is missing the tests/api_mock.py and tests/file_mock.py files. Are they deliberately left out of the archive? If so, why these files but not the test_*.py files?
Author
Owner

@morph027 commented on GitHub (Dec 16, 2024):

Duplicate of #126

<!-- gh-comment-id:2545924536 --> @morph027 commented on GitHub (Dec 16, 2024): Duplicate of #126
Author
Owner

@einsibjarni commented on GitHub (Dec 16, 2024):

I had actually forgotten about that issue, but since then, you've added the tests/ directory to the pypi archive, either deliberately or accidentally. If it was accidental, then so be it, but if it was deliberate, then it's missing the *_mock.py files and the tools/ directory

<!-- gh-comment-id:2545931601 --> @einsibjarni commented on GitHub (Dec 16, 2024): I had actually forgotten about that issue, but since then, you've added the tests/ directory to the pypi archive, either deliberately or accidentally. If it was accidental, then so be it, but if it was deliberate, then it's missing the *_mock.py files and the tools/ directory
Author
Owner

@jhollowe commented on GitHub (Feb 18, 2025):

We did not intentionally change the files that were added to the archives. However, I'm planning to rework the build workflow for proxmoxer so I'll try to include all the test files in the source dist tar that is uploaded to PyPI

<!-- gh-comment-id:2667177567 --> @jhollowe commented on GitHub (Feb 18, 2025): We did not intentionally change the files that were added to the archives. However, I'm planning to rework the build workflow for proxmoxer so I'll try to include all the test files in the source dist tar that is uploaded to PyPI
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#108
No description provided.