Skip to content

Commit cbf5df0

Browse files
authored
chore: release v4 (#338)
## 🧭 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) ```
1 parent e869b15 commit cbf5df0

File tree

3 files changed

+44
-5
lines changed

3 files changed

+44
-5
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,40 @@ jobs:
9595
source python-ci-run/bin/activate
9696
pip3 install --upgrade pip
9797
pip3 install tox
98+
python -m pip install -U build
9899
TOXENV=${{ matrix.toxenv }} ALGOLIA_APPLICATION_ID=${{ secrets.ALGOLIA_APPLICATION_ID }} ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} tox
100+
python -m build
101+
102+
release:
103+
name: Publish
104+
runs-on: ubuntu-22.04
105+
environment:
106+
name: pypi
107+
url: https://pypi.org/p/algoliasearch-django
108+
permissions:
109+
id-token: write
110+
needs:
111+
- build
112+
if: |
113+
always() &&
114+
!contains(needs.*.result, 'cancelled') &&
115+
!contains(needs.*.result, 'failure')
116+
steps:
117+
- uses: actions/checkout@v4
118+
119+
- name: Set up Python
120+
uses: actions/setup-python@v4
121+
with:
122+
python-version: 3.13
123+
124+
- name: deps and build
125+
run: |
126+
pip3 install --upgrade pip
127+
python -m pip install -U build
128+
python -m build
129+
130+
- name: Publish algoliasearch package to PyPI
131+
if: |
132+
github.ref == 'refs/heads/master' &&
133+
startsWith(github.event.head_commit.message, 'chore: release')
134+
uses: pypa/gh-action-pypi-publish@release/v1

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11

22
CHANGELOG
33

4+
2024-12-26 4.0.0
5+
* [MAJOR] drop support for python <3.8 [#336](https://github.com/algolia/algoliasearch-django/pull/336)
6+
* [MAJOR] drop support for django <4.0 [#336](https://github.com/algolia/algoliasearch-django/pull/336)
7+
* [MAJOR] remove method `clear_index` in favor of `clear_objects` [#336](https://github.com/algolia/algoliasearch-django/pull/336)
8+
49
2023-04-27 3.0.0
510
* [MAJOR] drop python 2.7, update tox and CI run env (#331)
611
* [FEAT] Add support for Python 3.9, 3.10 and 3.11 (#329)

tox.ini

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ twine = >=5.1,<6.0
3030
wheel = >=0.45,<1.0
3131
ruff = >=0.7.4,<1.0
3232
pyright = >=1.1.389,<2.0
33+
setuptools = >=75.0,<76.0
3334

3435
[testenv:coverage]
3536
basepython = python3.13
@@ -52,18 +53,15 @@ commands =
5253
coverage report
5354
coveralls
5455

55-
[testenv:release]
56+
[testenv:build]
5657
basepython = python3.13
5758
deps =
5859
twine {[versions]twine}
5960
wheel {[versions]wheel}
60-
passenv =
61-
PYPI_USER
62-
PYPI_PASSWORD
61+
setuptools {[versions]setuptools}
6362
commands =
6463
python setup.py sdist bdist_wheel
6564
twine check dist/*
66-
twine upload -u {env:PYPI_USER} -p {env:PYPI_PASSWORD} --repository-url https://upload.pypi.org/legacy/ dist/*
6765

6866
[testenv:lint]
6967
deps =

0 commit comments

Comments
 (0)