Open johanneskastl opened 2 years ago
First of all, using py2pack
for upgrading already existing package is rather bad idea. Just use the existing SPEC file, increase Version
, download new tarball (using osc service disabledrun download_files
), update *.changes
(using osc vc
), and you can run osc build
to test the result.
First of all, using
py2pack
for upgrading already existing package is rather bad idea. Just use the existing SPEC file, increaseVersion
, download new tarball (usingosc service disabledrun download_files
), update*.changes
(usingosc vc
), and you can runosc build
to test the result.
This error also happens on new packages.
I tried to create hatch_vcs (or hatch-vcs), and had the same error.
hatch-vcs
Yup, another setup.py-less package https://github.com/ofek/hatch-vcs
I've created a PR in metaextract
project that should fix this issue: https://github.com/toabctl/metaextract/pull/16
But hatch_vcs
will continue failing because it looks like the pyproject.toml
file in the current release is broken, it'll be fixed in future releases with this commit: https://github.com/ofek/hatch-vcs/commit/c5388d67192d9bf88191927a35f51705121784a1
There's a new release of metaextract
that comes with pyproject
support, so updating that, now py2pack
should work with this kind of packages.
The current solution in metaextract only works correctly with packages that uses setuptools as build system. For packages that uses flit, hatch poetry or something else, can work, but it generates a lot of warnings and it's not able to get data from dynamic of custom fields.
Maybe it's a good idea to explore the possibility of extend metaextract with support for the most common build systems, or maybe we can just try to get all the metadata from the package itself instead of using the setup.py
.
I'll explore different solutions, so maybe this can be improved to work with all these modern python build systems.
When trying to update jsonschema to the latest version, py2pack errors out:
How to handle these cases, where apparently upstream changed the packaging setup?