Skip to content

Commit

Permalink
Merge requirements.txt into pyproject.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierog committed Jan 16, 2025
1 parent 2d62054 commit 39655cc
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 39 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/freebsd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ jobs:
python3.11 -m venv .venv
. .venv/bin/activate
pip install --upgrade pip
# Remove problematic python packages:
# - bpython: unnecessary, depends on greenlet and thus on a recent C++ compiler
# - ruff: depends on a Rust compiler
# - twine: unnecessary, depends on a Rust compiler
sed -i '' '/bpython/d; /ruff/d; /twine/d' requirements.txt
pip install -r requirements.txt
pip install -e .[bsd-ci]
# no ruff, no ruff check
mypy src/moulti
pylint src/moulti
pip install -e .
# This runs all tests except:
# - test_diff_with_delta (requires delta 0.18.x)
pytest -v
3 changes: 1 addition & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ jobs:
with:
python-version: ${{matrix.python-version}}
cache: pip
- run: pip install -r requirements.txt
- run: pip install -e .[ci]
- run: ruff check src/moulti
- run: mypy src/moulti
- run: pylint src/moulti
- run: ruff check tests
- run: pip install -e .
# This runs all tests except:
# - test_diff_with_delta (requires delta 0.18.x)
- run: pytest -v
8 changes: 1 addition & 7 deletions .github/workflows/netbsd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,10 @@ jobs:
python3.11 -m venv .venv
. .venv/bin/activate
pip install --upgrade pip
# Remove problematic python packages:
# - bpython: unnecessary, depends on greenlet and thus on a recent C++ compiler
# - ruff: depends on a Rust compiler
# - twine: unnecessary, depends on a Rust compiler
sed -i '/bpython/d; /ruff/d; /twine/d' requirements.txt
pip install -r requirements.txt
pip install -e .[bsd-ci]
# no ruff, no ruff check
mypy src/moulti
pylint src/moulti
pip install -e .
# This runs all tests except:
# - test_diff_with_delta (requires delta 0.18.x)
pytest -v
8 changes: 1 addition & 7 deletions .github/workflows/openbsd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ jobs:
python3.11 -m venv .venv
. .venv/bin/activate
pip install --upgrade pip
# Remove problematic python packages:
# - bpython: unnecessary, depends on greenlet and thus on a recent C++ compiler
# - ruff: depends on a Rust compiler
# - twine: unnecessary, depends on a Rust compiler
sed -i '/bpython/d; /ruff/d; /twine/d' requirements.txt
pip install -r requirements.txt
pip install -e .[bsd-ci]
# no ruff, no ruff check
mypy src/moulti
pylint src/moulti
pip install -e .
# This runs all tests except:
# - test_diff_with_delta (requires delta 0.18.x)
pytest -v
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,43 @@ classifiers = [
"Topic :: Utilities",
]

[project.optional-dependencies]
tinker = [
"bpython",
"textual-dev",
]
check-py = [
"mypy",
"pylint",
]
check-rust = [
"ruff",
]
check = [
"moulti[check-py,check-rust]",
]
test = [
"pytest",
"pytest-asyncio",
"pytest-forked",
"pytest-textual-snapshot @ git+https://github.com/textualize/pytest-textual-snapshot@19b2607c93b898cc67c6f9299f6236af5e994375",
"pytest-xdist",
]
release = [
"build",
"twine",
]
dev = [
"moulti[tinker,check,test,release]",
]
ci = [
"moulti[check,test]",
]
# Installing ruff on *BSD systems requires a Rust compiler + time + energy:
bsd-ci = [
"moulti[check-py,test]",
]

[project.urls]
Homepage = "https://github.com/xavierog/moulti/?tab=readme-ov-file#moulti"
Documentation = "https://github.com/xavierog/moulti/blob/master/Documentation.md"
Expand Down
16 changes: 0 additions & 16 deletions requirements.txt

This file was deleted.

0 comments on commit 39655cc

Please sign in to comment.