Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release v4 #338

Merged
merged 7 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,40 @@ jobs:
source python-ci-run/bin/activate
pip3 install --upgrade pip
pip3 install tox
python -m pip install -U build
TOXENV=${{ matrix.toxenv }} ALGOLIA_APPLICATION_ID=${{ secrets.ALGOLIA_APPLICATION_ID }} ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} tox
python -m build

release:
name: Publish
runs-on: ubuntu-22.04
environment:
name: pypi
url: https://pypi.org/p/algoliasearch-django
permissions:
id-token: write
needs:
- build
if: |
always() &&
!contains(needs.*.result, 'cancelled') &&
!contains(needs.*.result, 'failure')
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.13

- name: deps and build
run: |
pip3 install --upgrade pip
python -m pip install -U build
python -m build

- name: Publish algoliasearch package to PyPI
if: |
github.ref == 'refs/heads/master' &&
startsWith(github.event.head_commit.message, 'chore: release')
uses: pypa/gh-action-pypi-publish@release/v1
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

CHANGELOG

2024-12-26 4.0.0
* [MAJOR] drop support for python <3.8 [#336](https://github.com/algolia/algoliasearch-django/pull/336)
* [MAJOR] drop support for django <4.0 [#336](https://github.com/algolia/algoliasearch-django/pull/336)
* [MAJOR] remove method `clear_index` in favor of `clear_objects` [#336](https://github.com/algolia/algoliasearch-django/pull/336)

2023-04-27 3.0.0
* [MAJOR] drop python 2.7, update tox and CI run env (#331)
* [FEAT] Add support for Python 3.9, 3.10 and 3.11 (#329)
Expand Down
8 changes: 3 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ twine = >=5.1,<6.0
wheel = >=0.45,<1.0
ruff = >=0.7.4,<1.0
pyright = >=1.1.389,<2.0
setuptools = >=75.0,<76.0

[testenv:coverage]
basepython = python3.13
Expand All @@ -52,18 +53,15 @@ commands =
coverage report
coveralls

[testenv:release]
[testenv:build]
basepython = python3.13
deps =
twine {[versions]twine}
wheel {[versions]wheel}
passenv =
PYPI_USER
PYPI_PASSWORD
setuptools {[versions]setuptools}
commands =
python setup.py sdist bdist_wheel
twine check dist/*
twine upload -u {env:PYPI_USER} -p {env:PYPI_PASSWORD} --repository-url https://upload.pypi.org/legacy/ dist/*

[testenv:lint]
deps =
Expand Down