Skip to content

Commit f2cf2ce

Browse files
committed
chore: update dependencies, switch to uv package manager
1 parent ec17bd7 commit f2cf2ce

37 files changed

Lines changed: 558 additions & 504 deletions

.github/workflows/ci-workflow.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
15+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1616
os: [ubuntu-latest, macos-latest, windows-latest]
1717

1818
steps:
@@ -22,28 +22,29 @@ jobs:
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
allow-prereleases: true
25+
- name: Set up uv
26+
uses: astral-sh/setup-uv@v4
27+
with:
28+
enable-cache: true
2529
- name: Install dependencies
2630
run: |
27-
python -m pip install --upgrade pip
28-
pip install poetry
29-
poetry install
31+
uv sync --locked --dev
3032
- name: Configure Git user/email
3133
run: |
3234
git config --global user.email user@example.com
3335
git config --global user.name "Example User"
3436
- name: Run test suite
3537
run: |
36-
poetry run python -m pytest -v --cov=PyGitUp
38+
uv run pytest -v --cov=PyGitUp
3739
shell: bash
3840
- name: Verify dist package format
3941
run: |
40-
poetry build
41-
poetry run pip install twine
42-
poetry run twine check dist/*
42+
uv build
43+
uv tool run twine check dist/*
4344
if: matrix.os != 'windows-latest'
4445
- name: Upload coverage result
4546
if: github.repository_owner == 'msiemens'
4647
env:
4748
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
4849
run: |
49-
poetry run coveralls
50+
uv run coveralls

.github/workflows/publish-workflow.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ jobs:
1616
uses: actions/setup-python@v5
1717
with:
1818
python-version: '3.x'
19+
- name: Set up uv
20+
uses: astral-sh/setup-uv@v4
21+
with:
22+
enable-cache: true
1923
- name: Install dependencies
2024
run: |
21-
python -m pip install --upgrade pip
22-
pip install poetry
23-
poetry install
25+
uv sync --locked
2426
- name: Publish package
2527
env:
26-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
28+
UV_PUBLISH_TOKEN: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
2729
run: |
28-
poetry publish --build
30+
uv build
31+
uv publish
2932
- name: Create Release
3033
uses: actions/create-release@v1
3134
env:
@@ -34,4 +37,4 @@ jobs:
3437
tag_name: ${{ github.ref }}
3538
release_name: ${{ github.ref }}
3639
draft: false
37-
prerelease: false
40+
prerelease: false

PyGitUp/tests/test_ahead_of_upstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
repo_path = join(basepath, test_name + os.sep)
1313

1414

15-
def setup_function():
15+
def setup_module():
1616
master_path, master = init_master(test_name)
1717

1818
# Prepare master repo

PyGitUp/tests/test_detached.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
repo_path = join(basepath, test_name + os.sep)
1212

1313

14-
def setup_function():
14+
def setup_module():
1515
master_path, master = init_master(test_name)
1616

1717
# Prepare master repo

PyGitUp/tests/test_diverged.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
repo_path = join(basepath, test_name + os.sep)
1010

1111

12-
def setup_function():
12+
def setup_module():
1313
master_path, master = init_master(test_name)
1414

1515
# Prepare master repo

PyGitUp/tests/test_fast_forwarded.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
repo_path = join(basepath, test_name + os.sep)
1010

1111

12-
def setup_function():
12+
def setup_module():
1313
master_path, master = init_master(test_name)
1414

1515
# Prepare master repo

PyGitUp/tests/test_faster_fastforwarded.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
repo_path = join(basepath, test_name + os.sep)
1010

1111

12-
def setup_function():
12+
def setup_module():
1313
global master, repo
1414
master_path, master = init_master(test_name)
1515

PyGitUp/tests/test_fetch_fail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
repo_path = join(basepath, test_name + os.sep)
1212

1313

14-
def setup_function():
14+
def setup_module():
1515
master_path, master = init_master(test_name)
1616

1717
# Prepare master repo

PyGitUp/tests/test_fetch_large_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
REPO_PATH = join(basepath, TEST_NAME + sep)
1212

1313

14-
def setup_function():
14+
def setup_module():
1515
master_path, master = init_master(TEST_NAME)
1616

1717
# Prepare master repo

PyGitUp/tests/test_fetchall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
repo_path = join(basepath, test_name + os.sep)
1010

1111

12-
def setup_function():
12+
def setup_module():
1313
master_path, master = init_master(test_name)
1414
master_path2, master2 = init_master(test_name + '2')
1515

0 commit comments

Comments
 (0)