Skip to content

Commit 61e57d1

Browse files
committed
DEV: Use flit
1 parent 3de276f commit 61e57d1

File tree

3 files changed

+49
-52
lines changed

3 files changed

+49
-52
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ maint:
55

66
upload:
77
make clean
8-
python setup.py sdist bdist_wheel && twine upload -s dist/*
8+
flit publish
99

1010
clean:
1111
python setup.py clean --all

pyproject.toml

+48
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
[build-system]
2+
requires = ["flit_core >=3.2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[project]
6+
name = "pdfly"
7+
authors = [{ name = "Martin Thoma", email = "[email protected]" }]
8+
maintainers = [{ name = "Martin Thoma", email = "[email protected]" }]
9+
description = "A pure-python CLI application to manipulate PDF files"
10+
readme = "README.md"
11+
dynamic = ["version"]
12+
license = { file = "LICENSE" }
13+
requires-python = ">=3.6.1"
14+
15+
# https://pypi.org/pypi?%3Aaction=list_classifiers
16+
classifiers = [
17+
"Development Status :: 1 - Planning",
18+
"Environment :: Console",
19+
"Intended Audience :: Developers",
20+
"License :: OSI Approved :: MIT License",
21+
"Natural Language :: English",
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3 :: Only",
25+
"Programming Language :: Python :: 3.7",
26+
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
29+
]
30+
31+
dependencies = [
32+
"pypdf>=3.8.2",
33+
"typer>=0.9.0",
34+
"pillow",
35+
"pydantic",
36+
"rich",
37+
]
38+
39+
[project.urls]
40+
Source = "https://github.com/py-pdf/pdfly"
41+
42+
[project.scripts]
43+
pdfly = "pdfly.cli:entry_point"
44+
45+
[tool.pytest.ini_options]
46+
addopts = "--doctest-modules --cov=. --cov-report html:tests/reports/coverage-html --cov-report term-missing --ignore=docs/ --durations=3 --timeout=30"
47+
doctest_encoding = "utf-8"
48+
149
[tool.black]
250
line-length = 79
351

setup.cfg

-51
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,3 @@
1-
[metadata]
2-
# https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
3-
name = pdfly
4-
5-
author = Martin Thoma
6-
author_email = [email protected]
7-
maintainer = Martin Thoma
8-
maintainer_email = [email protected]
9-
10-
description = A pure-python CLI application to manipulate PDF files
11-
long_description = file: README.md
12-
long_description_content_type = text/markdown
13-
keywords = pdf, pure-python
14-
15-
url = https://github.com/py-pdf/pdfly
16-
license = BSD-3-Clause
17-
license_file = LICENSE
18-
19-
# https://pypi.org/pypi?%3Aaction=list_classifiers
20-
classifiers =
21-
Development Status :: 1 - Planning
22-
Environment :: Console
23-
Intended Audience :: Developers
24-
License :: OSI Approved :: MIT License
25-
Natural Language :: English
26-
Operating System :: OS Independent
27-
Programming Language :: Python :: 3
28-
Programming Language :: Python :: 3 :: Only
29-
Programming Language :: Python :: 3.7
30-
Programming Language :: Python :: 3.8
31-
Programming Language :: Python :: 3.9
32-
Programming Language :: Python :: 3.10
33-
34-
[options]
35-
python_requires = >=3.6.1
36-
install_requires =
37-
pypdf>=3.8.2
38-
typer>=0.9.0
39-
pillow
40-
pydantic
41-
rich
42-
43-
[options.entry_points]
44-
console_scripts =
45-
pdfly = pdfly.cli:entry_point
46-
47-
[tool:pytest]
48-
addopts = --doctest-modules --cov=. --cov-report html:tests/reports/coverage-html --cov-report term-missing --ignore=docs/ --durations=3 --timeout=30
49-
doctest_encoding = utf-8
50-
51-
521
[mutmut]
532
backup = False
543
runner = ./mutmut-test.sh

0 commit comments

Comments
 (0)