diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 81579cb..ef3b2be 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,15 @@ version: 2 updates: + - package-ecosystem: pip + directory: / + schedule: + interval: weekly + commit-message: + prefix: "[python]" + labels: + - dependencies + - d:python + - package-ecosystem: github-actions directory: / schedule: diff --git a/.gitignore b/.gitignore index b77bd9e..92b0475 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,7 @@ -*.egg -*.egg-info/ -*.pyc -.cache/ .coverage -.eggs/ .nox/ -.pytest_cache/ .tox/ __pycache__/ -build/ dist/ docs/_build/ pip-wheel-metadata/ -venv/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 5dd8d36..24f573f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ In Development - Dropped support for Python 3.6 - Support Python 3.11 and 3.12 - Moved to wheelodex organization +- Migrated from setuptools to hatch v1.7.1 (2022-04-08) diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 80174ec..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -include CHANGELOG.* CONTRIBUTORS.* LICENSE tox.ini -graft docs -prune docs/_build -graft test -global-exclude *.py[cod] diff --git a/pyproject.toml b/pyproject.toml index b3491a3..99b4e5a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,73 @@ [build-system] -requires = ["setuptools >= 46.4.0"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "wheel-inspect" +dynamic = ["version"] +description = "Extract information from wheels" +readme = "README.rst" +requires-python = "~=3.7" +license = "MIT" +license-files = { paths = ["LICENSE"] } +authors = [ + { name = "John Thorvald Wodder II", email = "wheel-inspect@varonathe.org" } +] + +keywords = [ + "*.dist-info", + "dist-info", + "package metadata", + "packages", + "pep427", + "wheel", +] + +classifiers = [ + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "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", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", + "License :: OSI Approved :: MIT License", + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: System :: Software Distribution", +] + +dependencies = [ + "attrs >= 18.1", + "entry-points-txt ~= 0.1.0", + "headerparser ~= 0.4.0", + "packaging >= 17.1", + "readme_renderer >= 24.0", + "wheel-filename ~= 1.1", +] + +[project.scripts] +wheel2json = "wheel_inspect.__main__:main" + +[project.urls] +"Source Code" = "https://github.com/wheelodex/wheel-inspect" +"Bug Tracker" = "https://github.com/wheelodex/wheel-inspect/issues" + +[tool.hatch.version] +path = "src/wheel_inspect/__init__.py" + +[tool.hatch.build.targets.sdist] +include = [ + "/docs", + "/src", + "/test", + "CHANGELOG.*", + "CONTRIBUTORS.*", + "tox.ini", +] + +[tool.hatch.envs.default] +python = "3" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 596773b..0000000 --- a/setup.cfg +++ /dev/null @@ -1,59 +0,0 @@ -[metadata] -name = wheel-inspect -version = attr:wheel_inspect.__version__ -description = Extract information from wheels -long_description = file:README.rst -long_description_content_type = text/x-rst -author = John Thorvald Wodder II -author_email = wheel-inspect@varonathe.org -license = MIT -license_files = LICENSE -url = https://github.com/wheelodex/wheel-inspect - -keywords = - *.dist-info - dist-info - package metadata - packages - pep427 - wheel - -classifiers = - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3 - 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 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: Implementation :: CPython - Programming Language :: Python :: Implementation :: PyPy - License :: OSI Approved :: MIT License - Intended Audience :: Developers - Topic :: Software Development :: Libraries :: Python Modules - Topic :: System :: Software Distribution - -project_urls = - Source Code = https://github.com/wheelodex/wheel-inspect - Bug Tracker = https://github.com/wheelodex/wheel-inspect/issues - -[options] -packages = find: -package_dir= - =src -python_requires = ~=3.7 -install_requires = - attrs >= 18.1 - entry-points-txt ~= 0.1.0 - headerparser ~= 0.4.0 - packaging >= 17.1 - readme_renderer >= 24.0 - wheel-filename ~= 1.1 - -[options.packages.find] -where=src - -[options.entry_points] -console_scripts = - wheel2json = wheel_inspect.__main__:main