Skip to content

Commit

Permalink
chore: release v4 (#338)
Browse files Browse the repository at this point in the history
## 🧭 What and Why

🎟 Related Issue: https://algolia.atlassian.net/browse/DI-3248

### Changes included:

```
2024-12-26 4.0.0
  * [MAJOR] drop support for python <3.8 [#336](#336)
  * [MAJOR] drop support for django <4.0 [#336](#336)
  * [MAJOR] remove method `clear_index` in favor of `clear_objects` [#336](#336)
```
  • Loading branch information
shortcuts authored Dec 26, 2024
1 parent e869b15 commit cbf5df0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 5 deletions.
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

0 comments on commit cbf5df0

Please sign in to comment.