update project build tooling

This commit is contained in:
Istvan Ruzman
2022-02-21 14:54:08 +01:00
parent 804063a507
commit 1b3cfe8f1c
7 changed files with 92 additions and 1014 deletions

View File

@@ -1,15 +1,15 @@
[build-system]
requires = ["poetry>=1.0"]
build-backend = "poetry.masonry.api"
requires = ["flit_core>=3.5,<4"]
build-backend = "flit_core.buildapi"
[tool.poetry]
[project]
name = "pyrad3"
version = "0.1.0"
version = "0.2.0"
readme = "README.rst"
description = "RADIUS tools"
requires-python = ">=3.8"
keywords = ["AAA", "authentication", "authorization", "accounting", "RADIUS"]
authors = ["Istvan Ruzman <istvan@ruzman.eu>"]
authors = [{name = "Istvan Ruzman", email = "istvan@ruzman.eu"}]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
@@ -28,38 +28,29 @@ classifiers = [
"Topic :: System :: Networking",
"Topic :: System :: Systems Administration :: Authentication/Directory",
]
include = [
"LICENSE-APACHE",
"LICENSE-MIT",
]
[tool.poetry.urls]
[project.urls]
repository = "https://github.com/pyradius/pyrad3"
[tool.poetry.dependencies]
python = "^3.7"
[tool.poetry.dev-dependencies]
black = { version = "*", allow-prereleases = true }
bandit = "^1.6"
pep8-naming = "^0.11"
pytest = "^6"
pytest-black = "^0.3.10"
pytest-cov = "^2.10.1"
pytest-flake8 = "^1.0"
pytest-isort = "^1.1.0"
pytest-mypy = "^0.7"
pytest-pylint = "^0.17"
[project.optional-dependencies]
dev = [
"black >= 22.1",
"bandit >= 1.7",
"pep8-naming >= 0.12",
"pytest >= 7",
"pytest-black >= 0.3.10",
"pytest-cov >= 3.0",
"pytest-flake8 >= 1.0",
"pytest-isort >= 3.0",
"pytest-mypy >= 0.9",
"pytest-pylint >= 1.1.2",
]
[tool.black]
line-length = 90
include = '\.py'
target-version = ["py37", "py38", "py39"]
target-version = ["py38", "py39"]
[tool.isort]
combine_as_imports = true
@@ -68,6 +59,14 @@ line_length = 90
multi_line_output = 3
use_parentheses = true
[tool.mypy]
strict_optional = true
check_untyped_defs = true
allow_redefinition = true
[tool.bandit]
skips = ["B101"]
[tool.pylint.master]
ignore = "tests,examples"