Skip to content

Commit

Permalink
Start migration to Poetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Jul 5, 2021
1 parent dc6e24e commit 69815e4
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bandit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[bandit]
exclude: /test
exclude: /tests
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ repos:
rev: 1.7.0
hooks:
- id: bandit
exclude: ^test/
exclude: ^tests/
6 changes: 3 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[tool.poetry]
name = "fido2"
version = "1.0.0-dev0"
description = ""
authors = ["Dain Nilsson <[email protected]>"]

[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"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 69815e4

Please sign in to comment.