Skip to content

Commit

Permalink
Migrate to PEP 621
Browse files Browse the repository at this point in the history
  • Loading branch information
hattya committed Dec 14, 2023
1 parent 5ba386c commit a9b1b4f
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 46 deletions.
7 changes: 0 additions & 7 deletions .coveragerc

This file was deleted.

61 changes: 60 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,65 @@
[build-system]
requires = [
"setuptools >= 42",
"setuptools >= 61.0",
"scmver",
]
build-backend = "setuptools.build_meta"

[project]
name = "zopflipy"
description = "A Python bindings for Zopfli"
readme = "README.rst"
authors = [
{name = "Akinori Hattori", email = "[email protected]"},
]
license = {"text" = "ALv2"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: C",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Archiving :: Compression",
]
requires-python = ">= 3.8"
dynamic = [
"version",
]

[project.urls]
Homepage = "https://github.com/hattya/zopflipy"

[tool.setuptools]
include-package-data = false
packages = ["zopfli"]

[tool.setuptools.package-data]
zopfli = [
"py.typed",
"*.pyi",
]

[tool.coverage.run]
branch = true

[tool.coverage.report]
partial_branches = [
"pragma: no partial",
"if sys.version_info",
]

[tool.mypy]
disable_error_code = [
"attr-defined",
"misc",
"override",
]
strict = true
36 changes: 0 additions & 36 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,43 +1,7 @@
[metadata]
name = zopflipy
description = A Python bindings for Zopfli
long_description = file: README.rst
author = Akinori Hattori
author_email = [email protected]
url = https://github.com/hattya/zopflipy
license = ALv2
license_files = LICENSE.txt
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: C
Programming Language :: C++
Programming Language :: Python :: 3
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
Topic :: Software Development :: Libraries :: Python Modules
Topic :: System :: Archiving :: Compression

[options]
python_requires = >= 3.8
packages = zopfli

[options.package_data]
zopfli = py.typed, *.pyi

[sdist]
formats = zip
group = users

[flake8]
extend-ignore = E129, E741
max-line-length = 160

[mypy]
strict = True
disable_error_code = attr-defined, misc, override
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ isolated_build = True

[testenv]
deps =
coverage
setuptools
coverage[toml] >= 5.0
setuptools >= 61.0
flake8 >= 3.6
flake8-bugbear
mypy
Expand Down

0 comments on commit a9b1b4f

Please sign in to comment.