Summary
========
Features included in this change:
Shovel version 0.5.0
Fixes #49
Fixes #50
Fixes setup.py to be compatible with setuptools 59.x and greater
Covert testing to nose2
pur -r requiremenst.txt to upgrade other requirements to recent versions
Deprecate Python 2.x logic in setup.py and some test cases
Additional Info
Many folks using shovel that have upgraded to setuptools 59.x are broken because of this error:
pip install --user shovel
Collecting shovel
Using cached shovel-0.4.0.tar.gz (15 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in shovel setup command: use_2to3 is invalid.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
This change resolves the setuptools compatibility issue in the setup.py and will fix many users of shovel whether they are installing via a CI/CD system or via pip using a requirements file.
Test Plan
Run nose2 -v:
----------------------------------------------------------------------
Ran 39 tests in 0.066s
Summary ======== Features included in this change:
setup.py
to be compatible with setuptools 59.x and greaterpur -r requiremenst.txt
to upgrade other requirements to recent versionssetup.py
and some test casesAdditional Info
Many folks using shovel that have upgraded to setuptools 59.x are broken because of this error:
This change resolves the setuptools compatibility issue in the
setup.py
and will fix many users of shovel whether they are installing via a CI/CD system or via pip using a requirements file.Test Plan
OK
python setup.py build running build running build_py creating build creating build/lib creating build/lib/shovel copying shovel/parser.py -> build/lib/shovel copying shovel/runner.py -> build/lib/shovel copying shovel/init.py -> build/lib/shovel copying shovel/args.py -> build/lib/shovel copying shovel/help.py -> build/lib/shovel copying shovel/tasks.py -> build/lib/shovel running egg_info writing shovel.egg-info/PKG-INFO writing dependency_links to shovel.egg-info/dependency_links.txt writing entry points to shovel.egg-info/entry_points.txt writing top-level names to shovel.egg-info/top_level.txt reading manifest file 'shovel.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'shovel.egg-info/SOURCES.txt'
pip3 install -e ./ Defaulting to user installation because normal site-packages is not writeable Obtaining file:///home/ss/repos/shovel Preparing metadata (setup.py) ... done Installing collected packages: shovel Attempting uninstall: shovel Found existing installation: shovel 0.5.0 Uninstalling shovel-0.5.0: Successfully uninstalled shovel-0.5.0 Running setup.py develop for shovel Successfully installed shovel-0.5.0