effigies / looseversion

A backwards/forwards-compatible fork of distutils.version.LooseVersion
Other
13 stars 1 forks source link

Distribute test module in pypi tarball? #9

Closed TheChymera closed 1 year ago

TheChymera commented 1 year ago

The test module seems to be excluded from the pypi tarball:

[deco]/tmp/lv ❱ wget https://github.com/effigies/looseversion/archive/refs/tags/1.0.2.tar.gz
--2023-01-05 03:11:18--  https://github.com/effigies/looseversion/archive/refs/tags/1.0.2.tar.gz
Resolving github.com... 140.82.114.4
Connecting to github.com|140.82.114.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/effigies/looseversion/tar.gz/refs/tags/1.0.2 [following]
--2023-01-05 03:11:18--  https://codeload.github.com/effigies/looseversion/tar.gz/refs/tags/1.0.2
Resolving codeload.github.com... 140.82.112.9
Connecting to codeload.github.com|140.82.112.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘1.0.2.tar.gz’

1.0.2.tar.gz                           [ <=>                                                             ]   7.95K  --.-KB/s    in 0s

2023-01-05 03:11:19 (30.9 MB/s) - ‘1.0.2.tar.gz’ saved [8144]

[deco]/tmp/lv ❱ tar xvf 1.0.2.tar.gz
looseversion-1.0.2/
looseversion-1.0.2/.github/
looseversion-1.0.2/.github/workflows/
looseversion-1.0.2/.github/workflows/package.yml
looseversion-1.0.2/.gitignore
looseversion-1.0.2/CHANGES
looseversion-1.0.2/LICENSE
looseversion-1.0.2/README.md
looseversion-1.0.2/looseversion.py
looseversion-1.0.2/pyproject.toml
looseversion-1.0.2/setup.cfg
looseversion-1.0.2/tests.py
looseversion-1.0.2/tox.ini
[deco]/tmp/lv ❱ wget https://files.pythonhosted.org/packages/5b/c8/6d304ae42f4088b66c1c94174831a1989659c0abe09d953e16ad43242ca7/looseversion-1.0.2.tar.gz
--2023-01-05 03:11:44--  https://files.pythonhosted.org/packages/5b/c8/6d304ae42f4088b66c1c94174831a1989659c0abe09d953e16ad43242ca7/looseversion-1.0.2.tar.gz
Resolving files.pythonhosted.org... 2a04:4e42:600::319, 2a04:4e42::319, 2a04:4e42:200::319, ...
Connecting to files.pythonhosted.org|2a04:4e42:600::319|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6072 (5.9K) [application/x-tar]
Saving to: ‘looseversion-1.0.2.tar.gz’

looseversion-1.0.2.tar.gz          100%[================================================================>]   5.93K  --.-KB/s    in 0s

2023-01-05 03:11:44 (19.6 MB/s) - ‘looseversion-1.0.2.tar.gz’ saved [6072/6072]

[deco]/tmp/lv ❱ tar xvf looseversion-1.0.2.tar.gz
looseversion-1.0.2/
looseversion-1.0.2/LICENSE
looseversion-1.0.2/PKG-INFO
looseversion-1.0.2/README.md
looseversion-1.0.2/looseversion.egg-info/
looseversion-1.0.2/looseversion.egg-info/PKG-INFO
looseversion-1.0.2/looseversion.egg-info/SOURCES.txt
looseversion-1.0.2/looseversion.egg-info/dependency_links.txt
looseversion-1.0.2/looseversion.egg-info/top_level.txt
looseversion-1.0.2/looseversion.py
looseversion-1.0.2/pyproject.toml
looseversion-1.0.2/setup.cfg

Would you be interested to include it in the future? I prefer to use the pypi sources for the gentoo packages, since sometimes people change release archive inplace on GH, which breaks the checksum verification for the package, which in addition to breaking the package, makes it look like a potential security concern.

effigies commented 1 year ago

Hmm. I thought I had added it. Will look into this.

effigies commented 1 year ago

It's packaging with python -m build. I'll just release and see if it's fixed...

effigies commented 1 year ago

Fixed in https://files.pythonhosted.org/packages/0e/e8/f18d7af585a2cc948a26b5e2dedc69729213d201525f79685050f6d621a5/looseversion-1.0.3.tar.gz.

TheChymera commented 1 year ago

Thank you, works like a charm :3 https://gitweb.gentoo.org/proj/sci.git/tree/dev-python/looseversion/looseversion-1.0.3.ebuild