Create pyproject.toml

This commit is contained in:
Sergey Petrov
2019-10-28 01:52:20 +03:00
parent aedc64e8bc
commit 8b4230dffa
4 changed files with 40 additions and 7 deletions
+3 -2
View File
@@ -6,8 +6,9 @@ local Pipeline(py_version) = {
name: "test", name: "test",
image: "python:" + py_version, image: "python:" + py_version,
commands: [ commands: [
"pip install .[tests]", "pip install poetry",
"pytest" "poetry install -v",
"poetry run pytest"
] ]
} }
] ]
+3
View File
@@ -44,3 +44,6 @@ coverage.xml
# Virtualenv # Virtualenv
venv/ venv/
# Poetry
poetry.lock
+30
View File
@@ -0,0 +1,30 @@
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool]
[tool.poetry]
name = "apns2"
version = "0.7.1"
description = "A python library for interacting with the Apple Push Notification Service via HTTP/2 protocol"
license = "MIT"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development :: Libraries"
]
authors = ["Sergey Petrov <me@pr0ger.prg>"]
[tool.poetry.dependencies]
python = ">=3.5"
cryptography = ">=1.7.2"
hyper = ">=0.7"
pyjwt = ">=1.4.0"
[tool.poetry.dev-dependencies]
pytest = "*"
freezegun = "*"
+4 -5
View File
@@ -2,8 +2,7 @@
envlist = py35, py36, py37, py38 envlist = py35, py36, py37, py38
[testenv] [testenv]
commands = pytest {posargs} whitelist_externals = poetry
commands =
extras = tests poetry install -v
poetry run pytest {posargs}
usedevelop=True