Skip to content

Commit 48ca8ad

Browse files
committed
📝 Switch from pipenv to uv
* Remove pipenv * Add pre-commit-uv * Add CI/CD-Pipelines * Add dependency bot * Add Python Docker container with uv * Update security
1 parent e236291 commit 48ca8ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+710
-1018
lines changed

docs/clean-prep/bulwark.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"## 1. Installation\n",
1919
"\n",
2020
"```\n",
21-
"$ pipenv install bulwark\n",
21+
"$ uv add bulwark\n",
2222
"Installing bulwark…\n",
2323
"Adding bulwark to Pipfile's [packages]…\n",
2424
"✔ Installation Succeeded\n",

docs/clean-prep/string-matching.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"Alternativ könnt ihr die beiden Bibliotheken auch mit anderen Paketmanagern installieren, z.B.\n",
3030
"\n",
3131
"```console\n",
32-
"$ pipenv install fuzzywuzzy[speedup]\n",
32+
"$ uv add fuzzywuzzy[speedup]\n",
3333
"```"
3434
]
3535
},

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@
172172
),
173173
"sphinx": ("https://www.sphinx-doc.org/en/master", None),
174174
"nbsphinx": ("https://nbsphinx.readthedocs.io/en/0.4.2", None),
175-
"pipenv": ("https://pipenv.pypa.io/en/latest", None),
176175
"spack": ("https://spack-tutorial.readthedocs.io/en/latest", None),
177176
"ipyparallel": ("https://ipyparallel.readthedocs.io/en/latest", None),
178177
"bokeh": ("https://docs.bokeh.org/en/latest", None),

docs/data-processing/apis/fastapi/example.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Startet den Server mit dem folgenden Aufruf (hier wieder am Beispiel von
3737

3838
.. code-block:: console
3939
40-
$ pipenv run uvicorn main:app --reload
40+
$ uv run uvicorn main:app --reload
4141
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
4242
INFO: Started reloader process [89155] using statreload
4343
INFO: Started server process [89164]

docs/data-processing/apis/fastapi/install.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Anforderungen
1010

1111
.. code-block:: console
1212
13-
$ pipenv install fastapi
13+
$ uv add fastapi
1414
Adding fastapi to Pipfile's [packages]…
1515
✔ Installation Succeeded
1616
Locking [dev-packages] dependencies…
@@ -28,7 +28,7 @@ Für die Produktion benötigt ihr außerdem einen `ASGI
2828

2929
.. code-block:: console
3030
31-
$ pipenv install uvicorn
31+
$ uv add uvicorn
3232
Adding uvicorn to Pipfile's [packages]…
3333
✔ Installation Succeeded
3434
Locking [dev-packages] dependencies…
@@ -71,10 +71,10 @@ Sie können installiert werden, z.B. mit:
7171

7272
.. code-block:: console
7373
74-
$ pipenv install fastapi[ujson]
74+
$ uv add fastapi[ujson]
7575
7676
Alternativ könnt ihr alle installieren mit:
7777

7878
.. code-block:: console
7979
80-
$ pipenv install fastapi[all]
80+
$ uv add fastapi[all]

docs/data-processing/apis/grpc/example.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Generieren des gRPC-Codes
5858

5959
.. code-block:: console
6060
61-
$ pipenv install grpcio grpcio-tools
62-
$ pipenv run python -m grpc_tools.protoc --python_out=. --grpc_python_out=. accounts.proto
61+
$ uv add grpcio grpcio-tools
62+
$ uv run python -m grpc_tools.protoc --python_out=. --grpc_python_out=. accounts.proto
6363
6464
Dies erzeugt zwei Dateien:
6565

@@ -97,11 +97,11 @@ Client und Server starten
9797

9898
.. code-block:: console
9999
100-
$ pipenv run python accounts_server.py
100+
$ uv run python accounts_server.py
101101
102102
#. Starten des Client von einem anderen Terminal aus:
103103

104104
.. code-block:: console
105105
106-
$ pipenv run python accounts_client.py
106+
$ uv run python accounts_client.py
107107
Account created: tom

docs/data-processing/apis/grpc/test.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ gRPC lässt sich automatisiert testen z.B. mit `pytest-grpc
1515

1616
.. code-block:: console
1717
18-
$ pipenv install pytest-grpc
18+
$ uv add pytest-grpc
1919
Installing pytest-grpc…
2020
Adding pytest-grpc to Pipfile's [packages]…
2121
✔ Installation Succeeded
@@ -50,13 +50,13 @@ gRPC lässt sich automatisiert testen z.B. mit `pytest-grpc
5050

5151
.. code-block:: console
5252
53-
$ pipenv run pytest --fixtures tests/
53+
$ uv run pytest --fixtures tests/
5454
5555
oder direkt gegen den Python-Code:
5656

5757
.. code-block:: console
5858
59-
$ pipenv run pytest --fixtures tests/ --grpc-fake-server
59+
$ uv run pytest --fixtures tests/ --grpc-fake-server
6060
============================= test session starts ==============================
6161
platform darwin -- Python 3.7.3, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
6262
rootdir: /Users/veit/cusy/trn/Python4DataScience/docs/data/grpc

docs/data-processing/httpx/install-example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"Alternativ könnt ihr httpx auch mit anderen Paketmanagern installieren, z.B.\n",
2424
"\n",
2525
"``` bash\n",
26-
"$ pipenv install httpx\n",
26+
"$ uv add httpx\n",
2727
"```"
2828
]
2929
},

docs/data-processing/intake/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Intake lässt sich einfach für euren Jupyter-Kernel installieren mit:
1818

1919
.. code-block:: console
2020
21-
$ pipenv install intake
21+
$ uv add intake
2222
2323
Katalog mit Beispieldaten erstellen
2424
-----------------------------------
@@ -28,7 +28,7 @@ erstellen mit:
2828

2929
.. code-block:: console
3030
31-
$ pipenv run intake example
31+
$ uv run intake example
3232
Creating example catalog...
3333
Writing us_states.yml
3434
Writing states_1.csv

docs/data-processing/postgresql/ipython-sql.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Ihr könnt ipython-sql einfach in eurem Jupyter-Kernel installieren mit:
1515

1616
.. code-block:: console
1717
18-
$ pipenv install ipython-sql
18+
$ uv add ipython-sql
1919
2020
Erste Schritte
2121
--------------

0 commit comments

Comments
 (0)