mirror of https://github.com/Yubico/python-fido2
Start migration to Poetry.
This commit is contained in:
parent
dc6e24e7f8
commit
69815e4017
|
@ -11,4 +11,4 @@ repos:
|
|||
rev: 1.7.0
|
||||
hooks:
|
||||
- id: bandit
|
||||
exclude: ^test/
|
||||
exclude: ^tests/
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"]
|
Loading…
Reference in New Issue