Skip to content

Commit

Permalink
Move project configuration to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
singingwolfboy committed Oct 6, 2022
1 parent 9d870a2 commit d6acd70
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 109 deletions.
23 changes: 0 additions & 23 deletions .coveragerc

This file was deleted.

7 changes: 0 additions & 7 deletions .isort.cfg

This file was deleted.

89 changes: 89 additions & 0 deletions pyproject.toml
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__.:",
]
9 changes: 0 additions & 9 deletions pytest.ini

This file was deleted.

53 changes: 0 additions & 53 deletions setup.cfg

This file was deleted.

17 changes: 0 additions & 17 deletions setup.py

This file was deleted.

0 comments on commit d6acd70

Please sign in to comment.