From 7c0ee164827f77ad7695dd311d3eda682a73c7d8 Mon Sep 17 00:00:00 2001 From: Brian Rutledge Date: Tue, 16 Mar 2021 20:17:44 -0400 Subject: [PATCH] Remove packaging requirement Per https://github.com/pypa/twine/pull/745#issuecomment-800687328 --- mypy.ini | 3 --- setup.cfg | 1 - tests/test_repository.py | 1 - twine/cli.py | 1 - 4 files changed, 6 deletions(-) diff --git a/mypy.ini b/mypy.ini index 81394f10..e91099ed 100644 --- a/mypy.ini +++ b/mypy.ini @@ -22,9 +22,6 @@ strict_equality = True ; https://github.com/tartley/colorama/issues/206 ignore_missing_imports = True -[mypy-packaging] -ignore_missing_imports = True - [mypy-pkginfo] ; https://bugs.launchpad.net/pkginfo/+bug/1876591 ignore_missing_imports = True diff --git a/setup.cfg b/setup.cfg index 46f8fe2b..f338bdae 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,7 +38,6 @@ install_requires= readme_renderer >= 21.0 requests >= 2.20 requests-toolbelt >= 0.8.0, != 0.9.0 - packaging >= 16.2 tqdm >= 4.14 importlib_metadata >= 3.6 keyring >= 15.1 diff --git a/tests/test_repository.py b/tests/test_repository.py index 91c0d19a..0c0098c7 100644 --- a/tests/test_repository.py +++ b/tests/test_repository.py @@ -95,7 +95,6 @@ def test_make_user_agent_string(default_repo): "requests-toolbelt/", "pkginfo/", "importlib_metadata/", - "packaging/", ) assert all(p in user_agent for p in packages) diff --git a/twine/cli.py b/twine/cli.py index cf3efdf2..5f7162db 100644 --- a/twine/cli.py +++ b/twine/cli.py @@ -25,7 +25,6 @@ def list_dependencies_and_versions() -> List[Tuple[str, str]]: deps = ( "importlib_metadata", - "packaging", "pkginfo", "requests", "requests-toolbelt",