2020-06-26 15:19:34 +00:00
|
|
|
[build-system]
|
2020-07-07 13:59:42 +00:00
|
|
|
requires = ["poetry>=1.0.9,<2.0"]
|
|
|
|
build-backend = "poetry.masonry.api"
|
|
|
|
|
|
|
|
[tool.poetry]
|
|
|
|
name = "pyvarint"
|
|
|
|
version = "0.0.1a2"
|
2020-07-09 08:13:01 +00:00
|
|
|
description = "Varints, a method of serializing integers using one or more bytes"
|
2020-07-07 13:59:42 +00:00
|
|
|
authors = ["decentral1se <hi@decentral1.se>"]
|
|
|
|
maintainers = ["decentral1se <hi@decentral1.se>"]
|
|
|
|
license = "GPLv3"
|
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://github.com/hyperpy/pyvarint"
|
|
|
|
keywords = ["hypercore", "hypercore-protocol"]
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
|
|
|
python = "^3.6"
|
|
|
|
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
|
|
black = "^19.10b0"
|
|
|
|
flake8 = "^3.8.3"
|
|
|
|
isort = "^5.0.2"
|
2020-06-26 15:19:34 +00:00
|
|
|
|
|
|
|
[tool.black]
|
|
|
|
line-length = 80
|
|
|
|
target-version = ["py38"]
|
2020-07-07 13:59:42 +00:00
|
|
|
include = '\.pyi?$'
|
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
include_trailing_comma = true
|
|
|
|
known_first_party = "pyvarint"
|
|
|
|
known_third_party = "pytest"
|
|
|
|
line_length = 80
|
|
|
|
multi_line_output = 3
|
|
|
|
skip = ".venv,.tox"
|
|
|
|
|
|
|
|
[tool.tox]
|
|
|
|
legacy_tox_ini = """
|
|
|
|
[tox]
|
|
|
|
envlist =
|
|
|
|
{py36,py37,py38}
|
|
|
|
lint
|
|
|
|
sort
|
|
|
|
format
|
|
|
|
type
|
|
|
|
skip_missing_interpreters = True
|
|
|
|
isolated_build = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
|
|
|
pytest
|
|
|
|
pytest-cov
|
|
|
|
pytest-mock
|
|
|
|
commands = pytest test/ --cov={toxinidir}/pyvarint/ --no-cov-on-fail {posargs}
|
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
skipdist = True
|
|
|
|
deps = flake8
|
|
|
|
commands = flake8 {posargs:--max-line-length 80} pyvarint/ test/
|
|
|
|
|
|
|
|
[testenv:sort]
|
|
|
|
skipdist = True
|
|
|
|
deps = isort
|
|
|
|
commands = isort {posargs:-c} pyvarint/ test/
|
|
|
|
|
|
|
|
[testenv:format]
|
|
|
|
skipdist = True
|
|
|
|
deps = black
|
|
|
|
commands = black {posargs:--check} pyvarint/ test/
|
|
|
|
|
|
|
|
[testenv:type]
|
|
|
|
skipdist = True
|
|
|
|
deps = mypy
|
|
|
|
commands = mypy {posargs:--ignore-missing-imports} pyvarint/ test/
|
|
|
|
"""
|