-
-
Notifications
You must be signed in to change notification settings - Fork 175
/
pyproject.toml
106 lines (97 loc) · 2.79 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
96
97
98
99
100
101
102
103
104
105
106
# Update dependencies:
#
# - python3 -m pip install --user --upgrade pip-tools build
# - git clean -fdx # remove all untracked files!
# - (pip-compile --upgrade -o requirements.txt requirements.in)
#
# Prepare a release:
#
# - git pull --rebase
# - Remove untracked files/dirs: git clean -fdx
# - maybe update version in pyperformance/__init__.py and doc/conf.py
# - set release date in doc/changelog.rst
# - git commit -a -m "prepare release x.y"
# - run tests: tox --parallel auto
# - git push
# - check the CI status:
# https://github.com/python/pyperformance/actions
#
# Release a new version with GitHub (preferred):
#
# - go to the GitHub release tab: https://github.com/python/pyperformance/releases
# - click "Draft a new release" and fill the contents
# - finally click the "Publish release" button! Done!
# - monitor the publish status: https://github.com/python/pyperformance/actions/workflows/publish.yml
#
# Release a new version manually:
#
# - git tag VERSION
# - git push --tags
# - Remove untracked files/dirs: git clean -fdx
# - python -m build
# - twine upload dist/*
#
# After the release:
#
# - set version to n+1: pyperformance/__init__.py and doc/conf.py
# - git commit -a -m "post-release"
# - git push
[build-system]
requires = ["setuptools >= 61"]
build-backend = "setuptools.build_meta"
[project]
name = "pyperformance"
dynamic = ["version"]
license = {text = "MIT"}
description = "Python benchmark suite"
readme = "README.rst"
urls = {Homepage = "https://github.com/python/pyperformance"}
authors= [{name = "Collin Winter"}, {name= "Jeffrey Yasskin"}]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python',
]
requires-python = ">=3.9"
dependencies = [
"pyperf",
"tomli; python_version < '3.11'",
"packaging",
]
[project.optional-dependencies]
dev = [
'tox',
'mypy==1.2.0',
'tomli', # Needed even on 3.11+ for typechecking with mypy
]
[project.scripts]
pyperformance = "pyperformance.cli:main"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages]
find = {} # Scanning implicit namespaces is active by default
[tool.setuptools.dynamic]
version = {attr = "pyperformance.__version__"}
[tool.mypy]
python_version = "3.9"
pretty = true
enable_error_code = "ignore-without-code"
disallow_any_generics = true
strict_concatenate = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
files = [
'pyperformance/',
]
exclude = [
'pyperformance/data-files/',
'pyperformance/tests/'
]
[[tool.mypy.overrides]]
module = "pyperf"
ignore_missing_imports = true