Skip to content

Commit 865c5be

Browse files
committed
Getting rid of setup.py
1 parent 867a09b commit 865c5be

File tree

8 files changed

+66
-61
lines changed

8 files changed

+66
-61
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 120

MANIFEST.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
include *.rst
22
include *.txt
33

4-
exclude Makefile
4+
exclude Makefile .flake8
55
recursive-exclude tests *
66

7+
8+
# added by check-manifest
9+
include *.yaml

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ all: devenv check test
1212

1313
# The fullrelease script is a part of zest.releaser, which is the last
1414
# package installed, so if it exists, the devenv is installed.
15-
devenv: $(bin_dir)fullrelease setup.cfg
15+
devenv: $(bin_dir)fullrelease
1616

1717
$(bin_dir):
1818
virtualenv ve --python python3.9

pyproject.toml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "svg.path"
7+
version = "6.4.dev0"
8+
description = "SVG path objects and parser"
9+
classifiers = [
10+
"Development Status :: 5 - Production/Stable",
11+
"Intended Audience :: Developers",
12+
"License :: OSI Approved :: MIT License",
13+
"Operating System :: OS Independent",
14+
"Programming Language :: Python",
15+
"Programming Language :: Python :: 3",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3 :: Only",
21+
"Programming Language :: Python :: Implementation :: PyPy",
22+
"Topic :: Multimedia :: Graphics",
23+
]
24+
keywords = ["svg", "path", "maths"]
25+
authors = [{name = "Lennart Regebro", email = "regebro@gmail.com"}]
26+
license = {text = "MIT"}
27+
urls = {Homepage = "https://github.com/regebro/svg.path"}
28+
dynamic = ["readme"]
29+
requires-python = ">=3.8"
30+
31+
[project.optional-dependencies]
32+
test = [
33+
"pytest",
34+
"pytest-cov",
35+
"Pillow",
36+
"black",
37+
"flake8",
38+
"pyroma",
39+
"check-manifest",
40+
"zest.releaser[recommended]",
41+
]
42+
43+
[tool.setuptools]
44+
zip-safe = true
45+
include-package-data = true
46+
package-dir = {"" = "src"}
47+
48+
[tool.setuptools.packages.find]
49+
where = ["src"]
50+
namespaces = false
51+
52+
[tool.setuptools.dynamic]
53+
readme = {file = ["README.rst", "CONTRIBUTORS.txt", "CHANGES.txt"]}
54+
55+
[tool.distutils.bdist_wheel]
56+
universal = 1
57+
58+
[tool.pytest.ini_options]
59+
testpaths = ["tests"]

setup.cfg

Lines changed: 0 additions & 56 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/test_boundingbox_image.png

6.37 KB
Loading

tests/test_image.png

7.74 KB
Loading

0 commit comments

Comments
 (0)