Skip to content

Commit

Permalink
Use pyproject.toml for package configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ayalash committed Nov 10, 2023
1 parent ed4a6d7 commit 2d98033
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 50 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ doc: env
env: .env/.up-to-date


.env/.up-to-date: setup.py Makefile setup.cfg
.env/.up-to-date: Makefile pyproject.toml
python3 -m venv .env
.env/bin/pip install -e .[testing,doc]
touch $@
Expand Down
50 changes: 50 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[build-system]
requires = ["hatchling>=0.25.1", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "backslash"
description = "Client library for the Backslash test reporting service"
readme = "README.md"
requires-python = ">=3.7"
license = { text = "BSD 3-Clause License" }

classifiers = ["Programming Language :: Python :: 3.7"]
dependencies = [
"GitPython",
"Logbook",
"munch",
"requests",
"sentinels",
"URLObject",
"vintage",
]

dynamic = ["version"]

authors = [{ name = "Rotem Yaari", email = "vmalloc@gmail.com" }]

[project.urls]
"Homepage" = "http://getslash.github.io/"
"GitHub" = "https://github.com/getslash/backslash"

[project.optional-dependencies]
testing = [
"slash>=1.5.0",
"Flask",
"Flask-Loopback",
"pylint",
"pytest>4.0",
"pytest-cov>=2.6",
"URLObject",
"weber-utils",
]
doc = ["alabaster", "releases", "Sphinx"]

[tool.hatch.version]
source = "vcs"

[tool.pytest]
testpaths = "tests"
timeout_method = "signal"
addopts = "-ra -W error::DeprecationWarning"
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

33 changes: 0 additions & 33 deletions setup.cfg

This file was deleted.

9 changes: 0 additions & 9 deletions setup.py

This file was deleted.

0 comments on commit 2d98033

Please sign in to comment.