-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
pyproject.toml
96 lines (83 loc) · 2.09 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "uhashring"
dynamic = ["version"]
description = "Full featured consistent hashing python library compatible with ketama."
readme = "README.md"
license = "BSD-2-Clause"
requires-python = ">=3.8"
authors = [
{ name = "Ultrabug", email = "ultrabug@ultrabug.net" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = []
[project.urls]
Download = "https://github.com/ultrabug/uhashring/tags"
Homepage = "https://github.com/ultrabug/uhashring"
[tool.hatch.version]
path = "uhashring/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/uhashring",
]
[tool.hatch.envs.default.scripts]
all = [
"hatch run test:test",
"hatch run style:check",
]
[tool.hatch.envs.test]
dependencies = [
"pytest",
"python-memcached",
]
[tool.hatch.envs.test.scripts]
test = [
"pytest -xs",
]
[[tool.hatch.envs.test.matrix]]
python = ["py38", "py39", "py310", "py311", "pypy3"]
type = ["default"]
[tool.hatch.envs.style]
detached = true
dependencies = [
"black",
"isort",
"flake8",
]
[tool.hatch.envs.style.scripts]
lint = [
"flake8 uhashring",
]
check = [
"isort --check-only --diff uhashring",
"black -q --check --diff uhashring",
"lint",
]
format = [
"isort -q uhashring",
"black -q uhashring",
]
[tool.black]
line-length = 100
target-version = ["py311"]
skip-string-normalization = true
[tool.isort]
profile = "black"
line_length = 100