Start migration to Poetry.

This commit is contained in:
Dain Nilsson 2021-01-20 15:03:10 +01:00
parent dc6e24e7f8
commit 69815e4017
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
21 changed files with 28 additions and 5 deletions

View File

@ -1,2 +1,2 @@
[bandit]
exclude: /test
exclude: /tests

View File

@ -11,4 +11,4 @@ repos:
rev: 1.7.0
hooks:
- id: bandit
exclude: ^test/
exclude: ^tests/

View File

@ -94,15 +94,15 @@ https://github.com/LudovicRousseau/pyscard/blob/master/INSTALL.md.
=== Development
For development of the library, we recommend using `pipenv`. To set up the dev
For development of the library, we recommend using `poetry`. To set up the dev
environment, run this command in the root directory of the repository:
pipenv install --dev
poetry install
==== Running tests
While many tests can run on their own, some require a connected U2F or FIDO2
device to run.
pipenv run test
poetry run pytest

23
pyproject.toml Normal file
View File

@ -0,0 +1,23 @@
[tool.poetry]
name = "fido2"
version = "1.0.0-dev0"
description = ""
authors = ["Dain Nilsson <dain@yubico.com>"]
[tool.poetry.dependencies]
python = "^3.6"
cryptography = "^2.1 || ^3.0"
dataclasses = {version = "^0.8", python = "<3.7"}
uhid-freebsd = {version = "^1.2.1", platform = "FreeBSD"}
pyscard = {version = "^1.9 || ^2.0.0", optional = true}
[tool.poetry.dev-dependencies]
pytest = "^6.0"
mock = "^4.0.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["tests"]