Skip to content

Commit

Permalink
try without optional dependencies, Ubuntu 22.04's pip does not unders…
Browse files Browse the repository at this point in the history
…tand them

WARNING: unknown 0.0.0 does not provide the extra 'test'
  • Loading branch information
martinpitt committed Mar 16, 2024
1 parent 9f5b10f commit 1dc7733
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y make python3-pyflakes python3-pycodestyle python3-pip
sudo pip install .[test]
sudo pip install .
- name: Run lint tests
run: make check
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y make python3-pyflakes python3-pycodestyle python3-pip python3-pytest
sudo pip install .[test]
sudo pip install .
# HACK: Ubuntu 22.04 has podman 3.4, which isn't compatible with podman-remote 4 in our tasks container
# This PPA is a backport of podman 4.3 from Debian 12; drop this when moving `runs-on:` to ubuntu-24.04
Expand Down
10 changes: 3 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,16 @@ classifiers = [
]

dependencies = [
"pyyaml",
]

version = "1"

[project.optional-dependencies]
test = [
"ruff",
"mypy",
"pytest",
"pytest_container",
"pyyaml",
"types-PyYAML",
]

version = "1"

[tool.setuptools]
packages = []

Expand Down

0 comments on commit 1dc7733

Please sign in to comment.