vkottler / vmklib

Simplify project workflows by standardizing use of GNU Make.
MIT License
1 stars 0 forks source link

Deprecation Warnings #12

Closed vkottler closed 2 years ago

vkottler commented 2 years ago

Example 1

cd /home/vkottler/Documents/git/vkottler-workspace/datazen && \
        /home/vkottler/Documents/git/vkottler-workspace/datazen/venv3.7/bin/python /home/vkottler/Documents/git/vkottler-workspace/datazen/setup.py sdist
/home/vkottler/Documents/git/vkottler-workspace/datazen/venv3.7/lib/python3.7/site-packages/setuptools/dist.py:726: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead
  % (opt, underscore_opt)

Example 2

/home/vkottler/Documents/git/vkottler-workspace/datazen/venv3.7/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
running install
running install_lib

Need to figure out what they want here. I tried hard when setting up this project to hopefully obtain some immunity to this kind of thing but in the Python ecosystem this seems genuinely impossible. We have #7 open because newer PEP's try to (somehow?) establish some notional framework to package building that still manages to be too generic to make much sense (it prescribes something for authors of build tools to go out and build, why?).

Maybe we need to look at modern distutils docs to see what (if any) updates have been made. As far as I know the pyproject.toml world requires non-standard tooling to achieve "editable" package installs or can't do it at all.

vkottler commented 2 years ago

Pip docs: https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/

vkottler commented 2 years ago

Classifiers:

Should add classifiers as an optional key for package schema

vkottler commented 2 years ago

We added build-based packaging on https://github.com/vkottler/vmklib/releases/tag/v0.8.0, need to convert other packages to the new config setup and see if this has resolved any of the deprecation warnings

vkottler commented 2 years ago

Added support to the template: https://github.com/vkottler/python-package-template/commit/259cb3871eb143b4aa48c25dd3577239408b5b49, everything can be updated with this going forward