From 928763186328e4f22bde2b5abe4b8e7af4592730 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Sun, 9 Jan 2022 18:00:32 +0000 Subject: [PATCH] update pyproject.toml in line with #1022 --- pyproject.toml | 43 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 40144a6d1..d3a71437a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ authors = [ readme = 'README.md' repository = 'https://github.com/exa-networks/exabgp' homepage = 'https://github.com/exa-networks/exabgp' +documentation = 'https://github.com/Exa-Networks/exabgp/wiki' license = 'BSD-3-Clause' keywords = ['bgp', 'ddos-protection', 'health-check', 'flowspec', 'bgp-ls', 'mpls', 'vpls'] classifiers = [ @@ -28,7 +29,7 @@ classifiers = [ 'Programming Language :: Python :: 3.7', 'Topic :: Internet', ] - +include = ["*.txt", "*.rst"] # packages = [ # { include = "my_package" }, # { include = "my_other_package", format = "sdist" }, @@ -47,11 +48,22 @@ pyang = "^2.3.2" pyangbind="^0.8.1" # Optional dependencies (development) +[tool.poetry.dev-dependencies] +bandit = "^1.7.0" +black = "^20.8b1" +coverage = "^5.4" +coveralls = "^2.1.2" +dephell = "^0.8.3" +flake8 = "^3.8.3" +flake8-bugbear = "^20.11.1" +flakehell = "^0.9.0" +isort = "^5.7.0" +nose = "^1.3.7" +pex = { version="^2.1.28", python = ">=3.6,<3.10" } +psutil = "^5.7.2" pudb = "^2019.2" -flake8 = { version="^3.8.3", optional = true } -coveralls = { version="2.1.2", optional = true } -nose = { version="1.3.7", optional = true } -psutil = { version="5.7.2", optional = true } +pytest = "^6.2.2" +wheel = "^0.35.1" [tool.poetry.extras] debug = ["pudb"] @@ -59,11 +71,29 @@ developer = ["pudb", "flake8", "coveralls", "nose", "psutil"] [tool.poetry.scripts] exabgp = 'exabgp.application.main:main' +exabgp-cli = 'exabgp.application.cli:main' +exabgp-healthcheck = 'exabgp.application.healthcheck:main' [tool.black] line-length = 120 target-version = ['py36', 'py37', 'py38'] skip_string_normalization = '1' +include = '\.pyi?$' +exclude = ''' +/( + \.eggs + | \.git + | \.hg + | \.mypy_cache + | \.tox + | \.venv + | _build + | buck-out + | build + | dist + | tests/data +)/ +''' [tool.flakehell] max-line-length = 120 @@ -77,6 +107,9 @@ flake8-bandit = ["-*", "+S1??"] "flake8-*" = ["+*"] flake8-docstrings = ["-*"] +# [tool.dephell.main] +# from = 'poetry' +# to = 'requirements.txt' [flake8] max-line-length = 120