Skip to content

Commit 8bec847

Browse files
Bumped up dependencies. Introduced local build automation, with make commands, aligned with remote CI.
1 parent 4050a70 commit 8bec847

3 files changed

Lines changed: 48 additions & 15 deletions

File tree

Makefile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.PHONY: setup lint test build clean all help
2+
3+
help:
4+
@echo "Available commands:"
5+
@echo " make lint - Run code quality checks"
6+
@echo " make test - Run tests with coverage"
7+
@echo " make build - Build package distributions"
8+
@echo " make clean - Remove build artifacts"
9+
@echo " make all - Run full CI workflow"
10+
11+
# Install all dependencies
12+
setup:
13+
python -m pip install --upgrade pip
14+
pip install -e ".[dev]"
15+
16+
# Clean build artifacts
17+
clean:
18+
rm -rf dist/ build/ *.egg-info .coverage htmlcov/
19+
20+
# Run linting checks
21+
lint:
22+
black --check --verbose src/ tests/
23+
isort --check --diff src/ tests/
24+
pylint src/ tests/
25+
26+
# Run tests with coverage
27+
test:
28+
pytest --cov=wiley_tdm --cov-report=xml --cov-report=html
29+
30+
# Build package
31+
build:
32+
python -m build
33+
twine check dist/*
34+
35+
# Run all checks
36+
all: setup clean lint test build

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ classifiers = [
2626

2727
[project.optional-dependencies]
2828
lint = [
29-
"black>=23.0.0",
30-
"pylint>=3.0.0",
31-
"isort>=5.12.0",
32-
"pytest>=7.4.0",
29+
"black>=25.1.0",
30+
"pylint>=3.3.1",
31+
"isort>=6.0.1",
32+
"pytest>=8.3.5",
3333
]
3434
test = [
35-
"pytest>=7.4.0",
36-
"pytest-cov>=4.1.0",
35+
"pytest>=8.3.5",
36+
"pytest-cov>=6.1.1",
3737
]
3838
build = [
39-
"build>=1.0.0",
40-
"twine>=4.0.0"
39+
"build>=1.0.3",
40+
"twine>=6.1.0"
4141
]
4242
dev = [
4343
"wiley-tdm[lint,test,build]", # Inherit test and build dependencies

scripts/install.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,11 @@ cd "$TDM_HOME"
5454
python3 -m venv venv
5555
source venv/bin/activate
5656

57-
# Install the package in editable mode (build not required)
58-
pip install -e ".[test]"
57+
# Install dependencies
58+
pip install -e ".[dev]"
5959

60-
# Show installed package
61-
pip list | grep wiley-tdm
62-
63-
# Run tests
64-
pytest
60+
# Peform local build, including tests
61+
make all
6562

6663
# Deactivate virtual environment
6764
deactivate

0 commit comments

Comments
 (0)