mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #126] PyPI package doesn't include tests #67
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @einsibjarni on GitHub (Nov 22, 2022).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/126
I just took over as maintainer of the freebsd port for proxmoxer.
The port fetches the pypi package, which doesnt include the tests/ directory.
Is it possible to include the tests i the pypi package? That way users on FreeBSD could run the tests directly from ports (
make tests).@morph027 commented on GitHub (Nov 22, 2022):
Sure, should be possible via https://setuptools.pypa.io/en/latest/userguide/datafiles.html
Do you wanto to create a PR?
@jhollowe commented on GitHub (Nov 23, 2022):
Is there a reason the port can't just fetch the git repo release tar as well or instead of pulling from PyPI?
There really isn't a reason to include a bunch of extra files and bytes in the PyPI package which 90% of users who download the package will never use. #39 removed the tests from the package.
@einsibjarni commented on GitHub (Nov 23, 2022):
The port can fetch the git repo, but guidelines for FreeBSD python ports states:
I'm not experienced enough in pypi packaging to know whether it's standard practice to exclude tests from pypi sdist, but these are the guidelines for FreeBSD.
I'll do some research and discuss it with FreeBSD people to get a better understanding of the possible issues and get back to this when I know more
@jhollowe commented on GitHub (Jan 17, 2023):
@einsibjarni any update from the FreeBSD side of things? Do you have an example of other packages that add in their tests which I can look at?
@einsibjarni commented on GitHub (Jan 17, 2023):
Hi John,
On 1/17/23 20:53, John Hollowell wrote:
Sure. I did a quick search in the ports tree and here are a couple of
packages which are fetched from PyPI and run pytest tests.
astroid
bitstring
execnet
fuzzy
While searching I found quite a few python ports that fetch the source
from github instead of pypi, despite FreeBSD ports guidelines saying the
source should be fetched from PyPI "unless there is specific reason not
to, and to work with upstream to fix it".
.einar
@jhollowe commented on GitHub (Jan 27, 2023):
Since there are other packages which are not including the tests, I'm going to say we do not need to either. The tests are not really a part of the "built" program but pre-build checks. As such, it doesn't make sense to me to ship the tests in the PyPI package when the test are easy enough to pull directly from GitHub in various formats (git clone, download a zip/tar, HTTP, etc).
@vishwin commented on GitHub (Jan 28, 2023):
FreeBSD python@ member here. The presence of individual cases of ports fetching from GitHub and not PyPI does not invalidate the strong recommendation overall (not just within Python ports) to use proper release distributions (usually source tarballs) over git tags (which include exact revision references). Chief amongst those reasons is our strict checksum requirement for distribution files, and git tags are not reliable for that. Additionally, the way we fetch tags from GitHub at all is through an undocumented interface that, while satisfying our strict checksum requirement for distribution files, GitHub strongly discourages anyone from using and can remove at any time.
If your development and verification processes include running tests, then the release distribution should also include tests so those who must only use release distributions can still run them. Please reconsider.