pyHik
pyHik copied to clipboard
Python build warnings and packaging for nixpkgs
Hello @mezz64 ,
I am adding pyhik package into the nixpkgs:
- https://github.com/NixOS/nixpkgs/pull/369691
I am getting these warnings when building the pyhik (version v0.3.2) package for Python v3.11 and also for Python v3.12. I think the problem is probably in the https://github.com/mezz64/pyHik/blob/master/setup.cfg file.
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2025-Mar-03, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
It would also make sense to add support e.g. for pyproject.toml.
These are warnings I am getting:
Executing setuptoolsBuildPhase
/nix/store/8vahjr1pq7n7y7djl7r6s8i1y0a9rbg4-python3.11-setuptools-75.3.0/lib/python3.11/site-packages/setuptools/dist.py:495: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2025-Mar-03, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
/nix/store/8vahjr1pq7n7y7djl7r6s8i1y0a9rbg4-python3.11-setuptools-75.3.0/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
I have limited time these days to maintain this library, but will happily review/approve a pull request if you'd like to submit changes to correct these items.