Skip to content

Commit 651ee27

Browse files
authored
feat/update code to use uv (#47)
1 parent d9a854a commit 651ee27

36 files changed

+1700
-773
lines changed

.github/workflows/ci.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,19 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v3
2222

23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v5
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v5
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

28+
- name: Set up Python
29+
run: uv python install
30+
2831
- name: Install dependencies
29-
run: make install-lint
32+
run: make install-dependencies
3033

31-
- name: Run check-python
32-
run: make check-python
34+
- name: Run check-ruff
35+
run: make check-ruff
3336

3437
shfmt:
3538
runs-on: ubuntu-latest
@@ -48,13 +51,16 @@ jobs:
4851
steps:
4952
- uses: actions/checkout@v3
5053

51-
- name: Set up Python ${{ matrix.python-version }}
52-
uses: actions/setup-python@v5
54+
- name: Install uv
55+
uses: astral-sh/setup-uv@v5
5356
with:
5457
python-version: ${{ matrix.python-version }}
5558

59+
- name: Set up Python
60+
run: uv python install
61+
5662
- name: Install dependencies
57-
run: make install
63+
run: make install-dependencies
5864

5965
- name: Run tests
6066
run: make test

.github/workflows/release.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,22 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Set up Python ${{ env.PYTHON_VERSION }}
17-
uses: actions/setup-python@v4
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v5
1819
with:
19-
python-version: ${{ env.PYTHON_VERSION }}
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Set up Python
23+
run: uv python install
24+
25+
- name: Install dependencies
26+
run: make install-dependencies
27+
2028
- name: Build artifact
2129
run: |
22-
make install-release
23-
python setup.py sdist
24-
python setup.py bdist_wheel
30+
uv run python -m build
31+
2532
- name: Publish package
2633
uses: pypa/gh-action-pypi-publish@release/v1
2734
with:

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,5 @@ cython_debug/
165165

166166
# Visual studio temps
167167
.vs/
168-
.vscode/
168+
.vscode/
169+
coverage.json

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.27
2+
3+
* **Update repo to us `uv`**
4+
15
## 0.0.26
26

37
* **Bump `unstructured-ingest` to 0.5.23**

LICENSE

-201
This file was deleted.

0 commit comments

Comments
 (0)