File tree Expand file tree Collapse file tree 3 files changed +44
-5
lines changed Expand file tree Collapse file tree 3 files changed +44
-5
lines changed Original file line number Diff line number Diff line change 95
95
source python-ci-run/bin/activate
96
96
pip3 install --upgrade pip
97
97
pip3 install tox
98
+ python -m pip install -U build
98
99
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
Original file line number Diff line number Diff line change 1
1
2
2
CHANGELOG
3
3
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
+
4
9
2023-04-27 3.0.0
5
10
* [MAJOR] drop python 2.7, update tox and CI run env (#331)
6
11
* [FEAT] Add support for Python 3.9, 3.10 and 3.11 (#329)
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ twine = >=5.1,<6.0
30
30
wheel = >=0.45,<1.0
31
31
ruff = >=0.7.4,<1.0
32
32
pyright = >=1.1.389,<2.0
33
+ setuptools = >=75.0,<76.0
33
34
34
35
[testenv:coverage]
35
36
basepython = python3.13
@@ -52,18 +53,15 @@ commands =
52
53
coverage report
53
54
coveralls
54
55
55
- [testenv:release ]
56
+ [testenv:build ]
56
57
basepython = python3.13
57
58
deps =
58
59
twine {[versions]twine}
59
60
wheel {[versions]wheel}
60
- passenv =
61
- PYPI_USER
62
- PYPI_PASSWORD
61
+ setuptools {[versions]setuptools}
63
62
commands =
64
63
python setup.py sdist bdist_wheel
65
64
twine check dist/*
66
- twine upload -u {env:PYPI_USER} -p {env:PYPI_PASSWORD} --repository-url https://upload.pypi.org/legacy/ dist/*
67
65
68
66
[testenv:lint]
69
67
deps =
You can’t perform that action at this time.
0 commit comments