Skip to content

Commit

Permalink
Remove pip and virtualenv usage
Browse files Browse the repository at this point in the history
  • Loading branch information
staticdev committed Jan 26, 2025
1 parent b3760ab commit f041d8e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 36 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/constraints.txt

This file was deleted.

11 changes: 2 additions & 9 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,8 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pipx install --pip-args=--constraint=.github/workflows/poetry-constraints.txt poetry
poetry --version
- name: Install UV
uses: astral-sh/setup-uv@v5

- name: Install dependencies
run: poetry install
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,8 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/poetry-constraints.txt poetry
poetry --version
- name: Install UV
uses: astral-sh/setup-uv@v5

- name: Install dependencies
run: poetry install
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@ jobs:
with:
python-version: "3.12"

- name: Upgrade pip
- name: Install UV dependencies
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
uv sync --all-extras --frozen
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/poetry-constraints.txt poetry
poetry --version
- name: Install UV
uses: astral-sh/setup-uv@v5

- name: Check if there is a parent commit
id: check-parent-commit
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,8 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/poetry-constraints.txt poetry
poetry --version
- name: Install UV
uses: astral-sh/setup-uv@v5

- name: Install dependencies
run: poetry install
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ palette = {scheme = "isort"}
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[dependency-groups]
dev = [
"hatch>=1.14.0",
]

[tool.mypy]
python_version = 3.9
strict = true
Expand Down

0 comments on commit f041d8e

Please sign in to comment.