Skip to content

Commit

Permalink
Update server demo to poetry 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Jan 29, 2025
1 parent 2d5fa6c commit 3db8511
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 21 deletions.
39 changes: 27 additions & 12 deletions examples/server/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 15 additions & 9 deletions examples/server/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
[tool.poetry]
[project]
name = "fido2-example-server"
version = "0.1.0"
description = "Example server for python-fido2"
authors = ["Dain Nilsson <dain@yubico.com>"]
authors = [
{ name = "Dain Nilsson", email = "<dain@yubico.com>" }
]
requires-python = ">=3.10, <4"
license = "Apache-2"
packages = [
{ include = "server" },
dependencies = [
"Flask (>=2.0, <3)",
"fido2",
]

[tool.poetry.dependencies]
python = "^3.10"
Flask = "^2.0"
fido2 = {path = "../.."}

[tool.poetry.dev-dependencies]
[tool.poetry]
requires-poetry = ">=2.0"
packages = [
{ include = "server" },
]

[build-system]
requires = ["poetry-core>=1.0.0"]
requires = ["poetry-core>=2.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
[project.scripts]
server = "server.server:main"

0 comments on commit 3db8511

Please sign in to comment.