Skip to content

Commit def7e23

Browse files
committed
Migrate to pyproject.toml
1 parent 3822903 commit def7e23

File tree

6 files changed

+58
-41
lines changed

6 files changed

+58
-41
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.0.1
4+
5+
- Migrate to pyproject.toml
6+
37
## 1.0.0
48

59
- Initial version

pyproject.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
requires = ["setuptools>=62.3"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "pyring_buffer"
7+
version = "1.0.1"
8+
license = {text = "MIT"}
9+
description = "A pure Python ring buffer for bytes"
10+
readme = "README.md"
11+
authors = [
12+
{name = "Michael Hansen", email = "[email protected]"}
13+
]
14+
keywords = ["ring", "circular", "buffer"]
15+
classifiers = [
16+
"Development Status :: 3 - Alpha",
17+
"Intended Audience :: Developers",
18+
"Topic :: Text Processing :: Linguistic",
19+
"License :: OSI Approved :: MIT License",
20+
"Programming Language :: Python :: 3.8",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
]
27+
requires-python = ">=3.8.0"
28+
29+
[project.urls]
30+
"Source Code" = "http://github.com/rhasspy/pyring-buffer"
31+
32+
[tool.setuptools]
33+
platforms = ["any"]
34+
zip-safe = true
35+
include-package-data = true
36+
37+
[tool.setuptools.packages.find]
38+
include = ["pyring_buffer"]
39+
exclude = ["tests", "tests.*"]

requirements_dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ isort==5.11.3
44
mypy==0.991
55
pylint==2.15.9
66
pytest==7.4.3
7+
build==1.2.2

script/package

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ _PROGRAM_DIR = _DIR.parent
88
_VENV_DIR = _PROGRAM_DIR / ".venv"
99

1010
context = venv.EnvBuilder().ensure_directories(_VENV_DIR)
11-
subprocess.check_call([context.env_exe, _PROGRAM_DIR / "setup.py", "bdist_wheel"])
11+
subprocess.check_call([context.env_exe, "-m", "build", "--wheel", "--sdist"])

setup.py

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

tox.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[tox]
2+
env_list =
3+
py{38,39,310,311,312,313}
4+
minversion = 4.12.1
5+
6+
[testenv]
7+
description = run the tests with pytest
8+
package = wheel
9+
wheel_build_env = .pkg
10+
deps =
11+
pytest>=6
12+
commands =
13+
pytest {tty:--color=yes} {posargs}

0 commit comments

Comments
 (0)