From: Bob Halley Date: Fri, 1 May 2020 15:32:57 +0000 (-0700) Subject: start poetry and pyenv support X-Git-Tag: v2.0.0rc1~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=035598d16b21c5716b55ceb2583437219298ebbc;p=thirdparty%2Fdnspython.git start poetry and pyenv support --- diff --git a/.gitignore b/.gitignore index 72f2e97e..91cf047e 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ tests/*.out dnspython.egg-info/ .eggs/ .mypy_cache/ +.python-version +poetry.lock diff --git a/Makefile b/Makefile index d0993e09..d3550cdd 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,6 @@ # $Id: Makefile,v 1.16 2004/03/19 00:17:27 halley Exp $ PYTHON=python -PIP=pip -# set this to "--user" if you prefer -PIPMODE= all: ${PYTHON} ./setup.py build @@ -72,5 +69,10 @@ lint: lint3: lint typecheck: - ${PIP} show mypy >/dev/null 2>&1 || ${PIP} install ${PIPMODE} mypy - mypy examples tests + mypy examples tests dns + +potest: + poetry run python -m tests.utest + +potype: + poetry run python -m mypy examples tests dns/*.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..9ab6cc7e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,21 @@ +[tool.poetry] +name = "dnspython" +version = "2.0.0" +description = "DNS toolkit" +authors = ["Bob Halley "] +license = "ISC" + +[tool.poetry.dependencies] +python = "^3.5" +requests-toolbelt = "^0.9.1" +requests = "^2.23.0" +idna = "^2.1" +cryptography = "^2.6" + +[tool.poetry.dev-dependencies] +mypy = "^0.770" +pylint = "^2.5.0" + +[build-system] +requires = ["poetry>=0.12"] +build-backend = "poetry.masonry.api"