]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
start poetry and pyenv support
authorBob Halley <halley@dnspython.org>
Fri, 1 May 2020 15:32:57 +0000 (08:32 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 1 May 2020 15:32:57 +0000 (08:32 -0700)
.gitignore
Makefile
pyproject.toml [new file with mode: 0644]

index 72f2e97e25e4ac714547f350915bf91a0eabd0ef..91cf047ef6d04338aa678030182dd7f24dc661d2 100644 (file)
@@ -11,3 +11,5 @@ tests/*.out
 dnspython.egg-info/
 .eggs/
 .mypy_cache/
+.python-version
+poetry.lock
index d0993e0903239643da790ea2e6792ff73c8790b2..d3550cdd23e637ab8aa77fd5abbcea469966f48b 100644 (file)
--- 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 (file)
index 0000000..9ab6cc7
--- /dev/null
@@ -0,0 +1,21 @@
+[tool.poetry]
+name = "dnspython"
+version = "2.0.0"
+description = "DNS toolkit"
+authors = ["Bob Halley <halley@dnspython.org>"]
+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"