-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move project configuration to pyproject.toml
- Loading branch information
1 parent
9d870a2
commit d6acd70
Showing
6 changed files
with
89 additions
and
109 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
[build-system] | ||
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[project] | ||
name = "PyPDF2" | ||
authors = [{ name = "Mathieu Fenniak", email = "[email protected]" }] | ||
maintainers = [{ name = "Martin Thoma", email = "[email protected]" }] | ||
description = "A pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files" | ||
readme = "README.md" | ||
dynamic = ["version"] | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.6" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Operating System :: OS Independent", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Typing :: Typed", | ||
] | ||
dependencies = [ | ||
"typing_extensions >= 3.10.0.0; python_version < '3.10'", | ||
"dataclasses; python_version < '3.7'", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://pypdf2.readthedocs.io/en/latest/" | ||
Source = "https://github.com/py-pdf/PyPDF2" | ||
"Bug Reports" = "https://github.com/py-pdf/PyPDF2/issues" | ||
Changelog = "https://pypdf2.readthedocs.io/en/latest/meta/CHANGELOG.html" | ||
|
||
[project.optional-dependencies] | ||
crypto = ["PyCryptodome"] | ||
|
||
[tool.mutmut] | ||
backup = false | ||
runner = "./mutmut-test.sh" | ||
tests_dir = "tests/" | ||
|
||
[tool.check-wheel-contents] | ||
package = "./PyPDF2" | ||
|
||
[tool.pytest.ini_options] | ||
filterwarnings = ["error"] | ||
markers = [ | ||
"external: Tests which use files from https://github.com/py-pdf/sample-files", | ||
] | ||
testpaths = ["tests"] | ||
norecursedirs = ["tests/pdf_cache"] | ||
|
||
[tool.isort] | ||
line_length = 79 | ||
indent = ' ' | ||
multi_line_output = 3 | ||
length_sort = 0 | ||
include_trailing_comma = true | ||
known_third_party = ["pytest", "setuptools"] | ||
|
||
[tool.coverage.run] | ||
source = ["PyPDF2"] | ||
branch = true | ||
|
||
[tool.coverage.report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = [ | ||
# Have to re-enable the standard pragma | ||
"pragma: no cover", | ||
"@overload", | ||
|
||
# Don't complain about missing debug-only code: | ||
"def __repr__", | ||
"def __str__", | ||
"if self\\.debug", | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
"if 0:", | ||
"if __name__ == .__main__.:", | ||
] |
This file was deleted.
Oops, something went wrong.