You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,16 +79,19 @@ hsm.close()
79
79
----
80
80
81
81
=== Development
82
-
For development of the library, `poetry` is used. To set up the dev
83
-
environment, run this command in the root directory of the repository:
82
+
This project uses https://docs.astral.sh/uv/[uv] for development.
83
+
Follow the uv Getting Started guide to install and configure it.
84
84
85
-
$ poetry install -E http -E usb
85
+
When `uv` is installed and configured you can set up the dev environment for this project by running the following command in the root directory of the repository:
86
+
87
+
$ uv sync --all-extras
86
88
87
89
==== Pre-commit checks
88
90
This project uses https://pre-commit.com to run several checks on the code
89
-
prior to committing. To enable the hooks, run this command in the root
91
+
prior to committing. To enable the hooks, run these commands in the root
90
92
directory of the repository:
91
93
94
+
$ uv tool install pre-commit
92
95
$ pre-commit install
93
96
94
97
Once the hooks are installed, they will run automatically on any changed files
@@ -102,15 +105,15 @@ authentication key enabled (as is the case after performing a factory reset).
102
105
103
106
WARNING: The YubiHSM under test will be factory reset by the tests!
104
107
105
-
$ poetry run pytest
108
+
$ uv run pytest
106
109
107
110
See pytest documentation for instructions on running a specific test.
108
111
109
112
By default the tests will connect to a yubihsm-connector running with the
110
113
default settings on http://localhost:12345. To change this, use the `--backend`
111
114
argument, eg:
112
115
113
-
$ poetry run pytest --backend "yhusb://"
116
+
$ uv run pytest --backend "yhusb://"
114
117
115
118
Access to the device requires proper permissions, so either use sudo or setup a
0 commit comments