From 035598d16b21c5716b55ceb2583437219298ebbc Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 1 May 2020 08:32:57 -0700 Subject: [PATCH] start poetry and pyenv support --- .gitignore | 2 ++ Makefile | 12 +++++++----- pyproject.toml | 21 +++++++++++++++++++++ 3 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 pyproject.toml 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" -- 2.47.3