pyproject.toml lists six>=1.10.0,<2.0 as a runtime dependency, but six is not imported anywhere in the codebase. Since the project requires Python ≥3.10, six (a Python 2/3 compatibility library) is unnecessary.
Problem
In pyproject.toml:
dependencies = [
"python-baseconv>=1.2.0,<2.0",
"six>=1.10.0,<2.0", # ← Not used anywhere
"morphys>=1.0,<2.0",
]
Searching the codebase for six imports:
$ grep -r "import six\|from six" multibase/
# No results
The six library was needed for Python 2/3 compatibility (e.g., six.ensure_str(), six.integer_types). Since pyproject.toml requires python >= 3.10, all six functionality is available natively.
Proposed Solution
Remove six from dependencies in pyproject.toml:
dependencies = [
"python-baseconv>=1.2.0,<2.0",
"morphys>=1.0,<2.0",
]
Verify no test or doc references remain:
grep -r "six" multibase/ tests/ docs/
Related
- File:
pyproject.toml
- Python version requirement:
>=3.10
pyproject.tomllistssix>=1.10.0,<2.0as a runtime dependency, butsixis not imported anywhere in the codebase. Since the project requires Python ≥3.10,six(a Python 2/3 compatibility library) is unnecessary.Problem
In
pyproject.toml:Searching the codebase for
siximports:The
sixlibrary was needed for Python 2/3 compatibility (e.g.,six.ensure_str(),six.integer_types). Sincepyproject.tomlrequirespython >= 3.10, allsixfunctionality is available natively.Proposed Solution
Remove
sixfromdependenciesinpyproject.toml:Verify no test or doc references remain:
grep -r "six" multibase/ tests/ docs/Related
pyproject.toml>=3.10