Skip to content

Commit 96007f2

Browse files
committed
Move from setup.py to pyproject.toml
1 parent 17ed751 commit 96007f2

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

pyproject.toml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "sortedcontainers"
7+
description = "Sorted Containers -- Sorted List, Sorted Dict, Sorted Set"
8+
authors = [
9+
{"name" = "Grant Jenks", "email" = "contact@grantjenks.com"},
10+
]
11+
readme = "README.md"
12+
requires-python = ">=3.2"
13+
keywords = ["django", "search"]
14+
license = {"text" = "Apache 2.0"}
15+
classifiers = [
16+
"Development Status :: 5 - Production/Stable",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: Apache Software License",
19+
"Natural Language :: English",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: Implementation :: CPython",
23+
"Programming Language :: Python :: Implementation :: PyPy",
24+
]
25+
dynamic = ["version"]
26+
27+
[project.urls]
28+
Documentation = "https://grantjenks.com/docs/sortedcontainers/"
29+
Source = "https://github.com/grantjenks/python-sortedcontainers"
30+
Tracker = "https://github.com/grantjenks/python-sortedcontainers/issues"
31+
32+
[tool.setuptools.dynamic]
33+
version = {attr = "djangoinstantsearch.__version__"}
34+
35+
[tool.setuptools.packages.find]
36+
where = ["src"]
37+
38+
[tool.pytest.ini_options]
39+
DJANGO_SETTINGS_MODULE = "www.settings"
40+
python_files = ["tests.py", "test_*.py", "*_tests.py"]
41+
addopts = "--cov www --cov interplexer --cov-report term"
42+
43+
[tool.ruff]
44+
format.quote-style = "single"
45+
46+
[tool.ruff.lint]
47+
ignore = [
48+
# E501 Line too long
49+
"E501",
50+
]
51+
select = [
52+
# pycodestyle
53+
"E",
54+
# Pyflakes
55+
"F",
56+
# pyupgrade
57+
"UP",
58+
# flake8-bugbear
59+
"B",
60+
# flake8-simplify
61+
"SIM",
62+
# isort
63+
"I",
64+
]

0 commit comments

Comments
 (0)