Skip to content

Commit

Permalink
chore: use pep621 with hatchling
Browse files Browse the repository at this point in the history
  • Loading branch information
Wurstnase committed Jul 2, 2023
1 parent 4d94f64 commit bf23a11
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 78 deletions.
8 changes: 0 additions & 8 deletions .coveragerc

This file was deleted.

4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

68 changes: 68 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "token-bucket"
dynamic = ["version"]
description = "Very fast implementation of the token bucket algorithm."
readme = "README.rst"
license = "Apache-2.0"
requires-python = ">=3.6"
authors = [{ name = "kgriffs", email = "[email protected]" }]
keywords = [
"bucket",
"cloud",
"http",
"https",
"limiting",
"rate",
"throttling",
"token",
"web",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Natural Language :: English",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = []

[project.urls]
Homepage = "https://github.com/falconry/token-bucket"

[tool.hatch.version]
path = "token_bucket/version.py"

[tool.hatch.build]
packages = ["token_bucket"]

[tool.coverage.run]
branch = true
source = ["token_bucket"]
parallel = true

[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
]
11 changes: 0 additions & 11 deletions setup.cfg

This file was deleted.

55 changes: 0 additions & 55 deletions setup.py

This file was deleted.

1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ envlist = blue,

[testenv]
deps = -r{toxinidir}/requirements/tests
package = editable
commands = coverage run -m pytest {posargs:tests}

[testenv:nocover]
Expand Down

0 comments on commit bf23a11

Please sign in to comment.