diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e3411a9..4b78e19 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,23 +9,13 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + - name: Set up Python + uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -e .[testing] - - name: Test with pytest - run: | - pytest --cov=pytest_httpx --cov-fail-under=100 --cov-report=term-missing --runpytest=subprocess + python-version: '3.12' - name: Create packages run: | python -m pip install wheel setuptools diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bd49a71..dc4ccc1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,17 +9,19 @@ jobs: strategy: matrix: python-version: ['3.9', '3.10', '3.11', '3.12'] + pytest-major-version: ['7', '8'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install -e .[testing] + python -m pip install pytest~=${{ matrix.pytest-major-version }}.0 - name: Test run: | pytest --cov=pytest_httpx --cov-fail-under=100 --cov-report=term-missing --runpytest=subprocess diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 53f937b..43c0278 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ repos: - repo: https://github.com/psf/black - rev: 23.12.0 + rev: 24.1.1 hooks: - id: black \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 612b795..22e9829 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.29.0] - 2024-01-29 +### Added +- Add support for [`pytest`](https://docs.pytest.org)==8.\* ([`pytest`](https://docs.pytest.org)==7.\* is still supported for now). (many thanks to [`Yossi Rozantsev`](https://github.com/Apakottur)) + ## [0.28.0] - 2023-12-21 ### Changed - Requires [`httpx`](https://www.python-httpx.org)==0.26.\* @@ -301,7 +305,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - First release, should be considered as unstable for now as design might change. -[Unreleased]: https://github.com/Colin-b/pytest_httpx/compare/v0.28.0...HEAD +[Unreleased]: https://github.com/Colin-b/pytest_httpx/compare/v0.29.0...HEAD +[0.29.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.28.0...v0.29.0 [0.28.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.27.0...v0.28.0 [0.27.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.26.0...v0.27.0 [0.26.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.25.0...v0.26.0 diff --git a/LICENSE b/LICENSE index 3738ea5..cab2d30 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Colin Bounouar +Copyright (c) 2024 Colin Bounouar Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pytest_httpx/version.py b/pytest_httpx/version.py index 2640171..dc6a83d 100644 --- a/pytest_httpx/version.py +++ b/pytest_httpx/version.py @@ -3,4 +3,4 @@ # Major should be incremented in case there is a breaking change. (eg: 2.5.8 -> 3.0.0) # Minor should be incremented in case there is an enhancement. (eg: 2.5.8 -> 2.6.0) # Patch should be incremented in case there is a bug fix. (eg: 2.5.8 -> 2.5.9) -__version__ = "0.28.0" +__version__ = "0.29.0" diff --git a/setup.py b/setup.py index 18f0295..f5bd6fd 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ packages=find_packages(exclude=["tests*"]), package_data={"pytest_httpx": ["py.typed"]}, entry_points={"pytest11": ["pytest_httpx = pytest_httpx"]}, - install_requires=["httpx==0.26.*", "pytest==7.*"], + install_requires=["httpx==0.26.*", "pytest>=7,<9"], extras_require={ "testing": [ # Used to run async test functions