| 1 | [project] |
| 2 | name = "inflate64" |
| 3 | requires-python = ">=3.9" |
| 4 | description = "deflate64 compression/decompression library" |
| 5 | readme = "README.rst" |
| 6 | license = {text = "LGPL-2.1-or-later"} |
| 7 | authors = [ |
| 8 | {name = "Hiroshi Miura", email = "[email protected]"}, |
| 9 | ] |
| 10 | classifiers = [ |
| 11 | "Development Status :: 5 - Production/Stable", |
| 12 | "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", |
| 13 | "Operating System :: MacOS :: MacOS X", |
| 14 | "Operating System :: Microsoft :: Windows", |
| 15 | "Operating System :: POSIX", |
| 16 | "Operating System :: POSIX :: Linux", |
| 17 | "Programming Language :: Python", |
| 18 | "Programming Language :: Python :: 3", |
| 19 | "Programming Language :: Python :: 3.9", |
| 20 | "Programming Language :: Python :: 3.10", |
| 21 | "Programming Language :: Python :: 3.11", |
| 22 | "Programming Language :: Python :: 3.12", |
| 23 | "Programming Language :: Python :: 3.13", |
| 24 | "Programming Language :: Python :: 3.14", |
| 25 | "Programming Language :: Python :: 3 :: Only", |
| 26 | "Programming Language :: Python :: Implementation :: CPython", |
| 27 | "Topic :: Software Development :: Libraries :: Python Modules", |
| 28 | ] |
| 29 | keywords = ['deflate64', 'compression'] |
| 30 | dynamic = ["version"] |
| 31 | [project.optional-dependencies] |
| 32 | test = [ |
| 33 | "pytest", |
| 34 | ] |
| 35 | docs = [ |
| 36 | "sphinx>=5.0", |
| 37 | "sphinx_rtd_theme", |
| 38 | "docutils", |
| 39 | ] |
| 40 | check = [ |
| 41 | "mypy>=1.10.0", |
| 42 | "mypy_extensions>=0.4.1", |
| 43 | "check-manifest", |
| 44 | "flake8", |
| 45 | "flake8-black", |
| 46 | "flake8-deprecated", |
| 47 | "flake8-isort", |
| 48 | "pygments", |
| 49 | "readme-renderer", |
| 50 | "twine", |
| 51 | ] |
| 52 | |
| 53 | [build-system] |
| 54 | requires = ["setuptools>=45", "setuptools_scm[toml]>=6.0.1"] |
| 55 | build-backend = "setuptools.build_meta" |
| 56 | |
| 57 | [tool.setuptools_scm] |
| 58 | local_scheme = "no-local-version" |
| 59 | |
| 60 | [project.urls] |
| 61 | Source = "https://github.com/miurahr/inflate64" |
| 62 | Homepage = "https://inflate64.readthedocs.io/" |
| 63 | Documentation = "https://inflate64.readthedocs.io/en/stable/" |
| 64 | "Bug Tracker" = "https://github.com/miurahr/inflate64/issues" |
| 65 | Changelog = "https://inflate64.readthedocs.io/en/latest/changelog.html" |
| 66 | |
| 67 | [tool.black] |
| 68 | line-length = 125 |
| 69 | target-version = ['py39'] |
| 70 | |
| 71 | [tool.coverage.paths] |
| 72 | source = ["src", "*/site-packages"] |
| 73 | |
| 74 | [tool.coverage.run] |
| 75 | branch = true |
| 76 | parallel = true |
| 77 | omit = ["tests/*"] |
| 78 | |
| 79 | [tool.coverage.report] |
| 80 | show_missing = true |
| 81 | exclude_lines = ["if __name__ == .__main__.:", "pragma: no-cover", "@abstract", "def __repr__"] |
| 82 | ignore_errors = true |
| 83 | |
| 84 | [tool.mypy] |
| 85 | ignore_missing_imports = true |
| 86 | warn_redundant_casts = true |
| 87 | warn_unused_ignores = false |
| 88 | strict_optional = true |
| 89 | show_column_numbers = true |
| 90 | files = "*.py" |
| 91 | |
| 92 | [tool.isort] |
| 93 | known_first_party = ["inflate64", "_inflate64"] |
| 94 | known_third_party = ["docutils","flake8","pyannotate_runtime","pytest","pytz","setuptools","sphinx","yaml"] |
| 95 | multi_line_output = 3 |
| 96 | include_trailing_comma = true |
| 97 | force_grid_wrap = 0 |
| 98 | use_parentheses = true |
| 99 | ensure_newline_before_comments = true |
| 100 | line_length = 125 |
| 101 | |
| 102 | [tool.pytest.ini_options] |
| 103 | minversion = "6.0" |
| 104 | testpaths = ["tests"] |
| 105 | python_files = "test*.py" |
| 106 | norecursedirs = [".git", "_build", "tmp", ".eggs"] |
| 107 | |
| 108 | [tool.cibuildwheel] |
| 109 | manylinux-x86_64-image = "manylinux_2_28" |
| 110 | manylinux-aarch64-image = "manylinux_2_28" |
| 111 | manylinux-ppc64le-image = "manylinux_2_28" |
| 112 | manylinux-s390x-image = "manylinux_2_28" |
| 113 | manylinux-pypy_x86_64-image = "manylinux_2_28" |
| 114 | manylinux-pypy_aarch64-image = "manylinux_2_28" |
| 115 | |
| 116 | musllinux-x86_64-image = "musllinux_1_2" |
| 117 | musllinux-aarch64-image = "musllinux_1_2" |
| 118 | musllinux-ppc64le-image = "musllinux_1_2" |
| 119 | musllinux-s390x-image = "musllinux_1_2" |
| 120 | |
| 121 | [tool.cibuildwheel.linux] |
| 122 | archs = ["auto64", "aarch64"] |
| 123 | |
| 124 | [tool.cibuildwheel.macos] |
| 125 | archs = ["auto64", "universal2"] |
| 126 | |
| 127 | [tool.tox] |
| 128 | legacy_tox_ini = """ |
| 129 | [tox] |
| 130 | envlist = check, py{39,310,311,312,313,314}, docs |
| 131 | |
| 132 | [testenv] |
| 133 | passenv = PYTEST_ADDOPTS |
| 134 | extras = test |
| 135 | commands = |
| 136 | python -m pytest -vv -s |
| 137 | |
| 138 | [testenv:check] |
| 139 | basepython = python3.12 |
| 140 | extras = check |
| 141 | ignore_errors=true |
| 142 | commands = |
| 143 | check-manifest {toxinidir} |
| 144 | flake8 src tests |
| 145 | |
| 146 | [testenv:docs] |
| 147 | basepython = python3.12 |
| 148 | extras = docs |
| 149 | commands = |
| 150 | sphinx-build {posargs:-E} -b html docs build/html |
| 151 | """ |