missing metadata in setup.py
#32
-
When packaging this for MacPorts I realized that it is installed under Please note the
can you please add this required meta-data? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 19 replies
-
Can you please detail exactly how you're trying to package it for macports? This likely is an issue of incorrect packaging on your side than ours. |
Beta Was this translation helpful? Give feedback.
-
We download the source file from PyPI and use the typical The missing a required metadata field in I'd appreciate if you'd considering fixing this on your side; otherwise we'd have to carry this simple patch forward ourselves. |
Beta Was this translation helpful? Give feedback.
-
The sane and modern way you'd do python packaging in MacPorts is to do:
Note we're not saying you must use pip, you're free to roll your own wheel installer; however, don't use the old and no longer supported setuptools way to install your python packages. All Python package installations should first generate a wheel and then install that wheel. The wheel format is well formalized in https://www.python.org/dev/peps/pep-0427/. How to generate a wheel is well defined in PEP-517 and PEP-518. |
Beta Was this translation helpful? Give feedback.
-
Your point that you don't support installing with setup.py has been clearly made, but is there any reason not to add |
Beta Was this translation helpful? Give feedback.
The sane and modern way you'd do python packaging in MacPorts is to do:
run build to generate a wheel - https://github.com/pypa/build (or roll your own PEP-517+518 compatible wheel builder)
install the generated wheel via one of:
python setup.py install
is how things worked 5 years ago, but that was a constant cause of issues (point in case here) so we created PEP-518 and PEP-517 to solve those. Going ahead this new methodology is the (only) recommended and supported way.Note we're not saying you must use pip, you're free to roll your own wheel installer; however, don't use the old and no longer …