Migrate pipenv to uv #48
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Problems
(1) DeprecationWarning: pkg_resources is deprecated as an API
Currently, nifcloud-cli:v1.15.0 image has occurs
DeprecationWarning.To fix, we should migrate
pyproject.tomlor enablePIP_USE_PEP517=1.see pypa/setuptools#3981 (comment)
(2) Modern package manager
pyproject.tomlis popular configuration file. Anduvis a modern package manager and supportspyproject.toml.Notice
sphinxhas been downgraded from==5.3.0to==5.1.1coloramaversion that dependency ofawscli==1.29.1.uvis not support task runner.pipenvsupports[scripts]config onPipfileuv run pytest tests/unit --capture=sys)Test
Resultis OKResult
~ $ pip show -v nifcloud-cli Name: nifcloud-cli Version: 1.15.0 Summary: NIFCLOUD Command-Line Tools Home-page: https://github.com/nifcloud/nifcloud-cli Author: Fujitsu Author-email: License: Apache-2.0 Location: /usr/local/lib/python3.11/site-packages Requires: awscli, nifcloud, pyyaml Required-by: Metadata-Version: 2.2 Installer: uv Classifiers: Development Status :: 5 - Production/Stable Intended Audience :: Developers Intended Audience :: System Administrators Natural Language :: English License :: OSI Approved :: Apache Software License Programming Language :: Python Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 Entry-points: Project-URLs: Homepage, https://github.com/nifcloud/nifcloud-cli