Skip to content

Commit b1aff44

Browse files
no-issue: Migrate to the pyproject.toml (#249)
* no-issue: Migrate to the pyproject.toml * Update pyproject.toml Co-authored-by: Eric Snow <[email protected]> * Support include-package-data = true * Add installing build Co-authored-by: Eric Snow <[email protected]>
1 parent d5c8e42 commit b1aff44

File tree

3 files changed

+73
-85
lines changed

3 files changed

+73
-85
lines changed

pyproject.toml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Update dependencies:
2+
#
3+
# - python3 -m pip install --user --upgrade pip-tools build
4+
# - git clean -fdx # remove all untracked files!
5+
# - (pip-compile --upgrade -o requirements.txt requirements.in)
6+
#
7+
# Prepare a release:
8+
#
9+
# - git pull --rebase
10+
# - Remove untracked files/dirs: git clean -fdx
11+
# - maybe update version in pyperformance/__init__.py and doc/conf.py
12+
# - set release date in doc/changelog.rst
13+
# - git commit -a -m "prepare release x.y"
14+
# - run tests: tox --parallel auto
15+
# - git push
16+
# - check the CI status:
17+
# https://github.com/python/pyperformance/actions
18+
#
19+
# Release a new version:
20+
#
21+
# - git tag VERSION
22+
# - git push --tags
23+
# - Remove untracked files/dirs: git clean -fdx
24+
# - python -m build
25+
# - twine upload dist/*
26+
#
27+
# After the release:
28+
#
29+
# - set version to n+1: pyperformance/__init__.py and doc/conf.py
30+
# - git commit -a -m "post-release"
31+
# - git push
32+
33+
[build-system]
34+
requires = ["setuptools >= 61"]
35+
build-backend = "setuptools.build_meta"
36+
37+
[project]
38+
name = "pyperformance"
39+
dynamic = ["version"]
40+
license = {text = "MIT"}
41+
description = "Python benchmark suite"
42+
readme = "README.rst"
43+
urls = {Homepage = "https://github.com/python/pyperformance"}
44+
authors= [{name = "Collin Winter"}, {name= "Jeffrey Yasskin"}]
45+
classifiers = [
46+
'Development Status :: 5 - Production/Stable',
47+
'Intended Audience :: Developers',
48+
'License :: OSI Approved :: MIT License',
49+
'Natural Language :: English',
50+
'Operating System :: OS Independent',
51+
'Programming Language :: Python :: 3',
52+
'Programming Language :: Python',
53+
]
54+
requires-python = ">=3.7"
55+
dependencies = ["pyperf", "toml", "packaging"]
56+
57+
[project.optional-dependencies]
58+
dev = [
59+
'tox',
60+
]
61+
62+
[project.scripts]
63+
pyperformance = "pyperformance.cli:main"
64+
65+
[tool.setuptools]
66+
include-package-data = true
67+
68+
[tool.setuptools.packages]
69+
find = {} # Scanning implicit namespaces is active by default
70+
71+
[tool.setuptools.dynamic]
72+
version = {attr = "pyperformance.__version__"}

setup.py

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

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tox]
22
envlist = py3, pypy3, doc, pep8
3+
isolated_build = True
34

45
[testenv]
56
commands = python runtests.py

0 commit comments

Comments
 (0)