Skip to content

Commit 2d98033

Browse files
committed
Use pyproject.toml for package configuration
1 parent ed4a6d7 commit 2d98033

File tree

5 files changed

+51
-50
lines changed

5 files changed

+51
-50
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ doc: env
1212
env: .env/.up-to-date
1313

1414

15-
.env/.up-to-date: setup.py Makefile setup.cfg
15+
.env/.up-to-date: Makefile pyproject.toml
1616
python3 -m venv .env
1717
.env/bin/pip install -e .[testing,doc]
1818
touch $@

pyproject.toml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[build-system]
2+
requires = ["hatchling>=0.25.1", "hatch-vcs"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "backslash"
7+
description = "Client library for the Backslash test reporting service"
8+
readme = "README.md"
9+
requires-python = ">=3.7"
10+
license = { text = "BSD 3-Clause License" }
11+
12+
classifiers = ["Programming Language :: Python :: 3.7"]
13+
dependencies = [
14+
"GitPython",
15+
"Logbook",
16+
"munch",
17+
"requests",
18+
"sentinels",
19+
"URLObject",
20+
"vintage",
21+
]
22+
23+
dynamic = ["version"]
24+
25+
authors = [{ name = "Rotem Yaari", email = "[email protected]" }]
26+
27+
[project.urls]
28+
"Homepage" = "http://getslash.github.io/"
29+
"GitHub" = "https://github.com/getslash/backslash"
30+
31+
[project.optional-dependencies]
32+
testing = [
33+
"slash>=1.5.0",
34+
"Flask",
35+
"Flask-Loopback",
36+
"pylint",
37+
"pytest>4.0",
38+
"pytest-cov>=2.6",
39+
"URLObject",
40+
"weber-utils",
41+
]
42+
doc = ["alabaster", "releases", "Sphinx"]
43+
44+
[tool.hatch.version]
45+
source = "vcs"
46+
47+
[tool.pytest]
48+
testpaths = "tests"
49+
timeout_method = "signal"
50+
addopts = "-ra -W error::DeprecationWarning"

requirements.txt

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

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)