2019-11-08 13:47:37 +01:00
[ tool . poetry ]
name = "generic"
2021-10-24 21:42:10 -04:00
version = "1.0.1"
2019-11-08 13:47:37 +01:00
description = "Generic programming library for Python"
authors = [
"Andrey Popp <8mayday@gmail.com>" ,
2019-11-09 09:51:11 +01:00
"Arjan Molenaar <gaphor@gmail.com>"
]
maintainers = [
2019-11-08 13:49:40 +01:00
"Arjan Molenaar <gaphor@gmail.com>" ,
"Dan Yeaw <dan@yeaw.me>"
2019-11-08 13:47:37 +01:00
]
2019-11-09 09:51:11 +01:00
2019-11-08 13:47:37 +01:00
license = "BSD License"
readme = "README.md"
homepage = "https://generic.readthedocs.io/"
repository = "https://github.com/gaphor/generic"
documentation = "https://generic.readthedocs.io/"
keywords = [ "generic" , "multi dispatch" , "dispatch" , "event" ]
classifiers = [
"Development Status :: 5 - Production/Stable" ,
"Intended Audience :: Developers" ,
"Intended Audience :: Information Technology" ,
"License :: OSI Approved :: BSD License" ,
"Programming Language :: Python" ,
]
[ tool . poetry . dependencies ]
2021-10-16 11:52:04 -04:00
python = "^3.8"
2019-11-08 13:47:37 +01:00
[ tool . poetry . dev-dependencies ]
2022-03-16 19:55:39 -04:00
pytest = "^7.1"
2021-05-17 19:32:54 -04:00
pytest-cov = "^2.12"
2022-02-28 21:29:17 -05:00
pytest-runner = "^6.0"
2022-01-31 19:23:28 -05:00
black = { version = "^22.1" , python = "^3.7" }
2022-03-16 21:00:17 -04:00
mypy = "0.941"
2022-01-19 18:53:50 -05:00
pre-commit = "^2.17"
2019-11-08 13:47:37 +01:00
bw_sphinxtheme = "^0.1.8"
2021-07-14 21:17:45 -04:00
tox = "^3.24"
2019-11-08 13:47:37 +01:00
[ build-system ]
2020-10-19 21:50:05 -04:00
requires = [ "poetry-core>=1.0.0" ]
build-backend = "poetry.core.masonry.api"
2019-11-23 15:20:45 -05:00
[ tool . tox ]
legacy_tox_ini = "" "
[ tox ]
isolated_build = true
2021-10-16 11:52:04 -04:00
envlist = clean , py38 , py39 , py310 , report
2019-11-23 15:20:45 -05:00
2020-10-24 14:52:07 -04:00
[ gh-actions ]
python =
2020-10-24 15:32:50 -04:00
3.8 : py38
2020-10-24 14:52:07 -04:00
3.9 : py39
2021-10-16 11:52:04 -04:00
3.10 : py310
2020-10-24 14:52:07 -04:00
2019-11-23 15:20:45 -05:00
[ testenv ]
2020-10-24 14:48:37 -04:00
commands =
pytest --cov --cov-append --cov-report = term-missing { posargs }
deps =
pytest
pytest-cov
depends =
2021-10-16 11:52:04 -04:00
{ py38 , py39 , py310 } : clean
report : py38 , py39 , py310
2020-10-24 14:48:37 -04:00
[ testenv : report ]
2020-10-24 15:10:42 -04:00
deps = coverage [ toml ]
2019-11-23 15:20:45 -05:00
skip_install = true
commands =
2020-10-24 14:48:37 -04:00
coverage report
coverage html
[ testenv : clean ]
2020-10-24 15:10:42 -04:00
deps = coverage [ toml ]
2020-10-24 14:48:37 -04:00
skip_install = true
commands = coverage erase
2019-11-23 15:20:45 -05:00
"" "
2020-08-28 22:08:26 -04:00
2020-10-19 21:50:49 -04:00
[ tool . pytest . ini_options ]
testpaths = [
"tests" ,
"docs" ,
]
2020-10-24 14:20:07 -04:00
addopts = "--doctest-modules --doctest-glob='*.rst'"
2020-10-19 21:50:49 -04:00
2020-08-28 22:08:26 -04:00
[ tool . isort ]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
known_third_party = [ "pytest" ]
skip = ".venv,build,dist"
2020-10-24 15:10:42 -04:00
[ tool . coverage . run ]
source = [ "generic" ]