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 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
Original file line number Diff line number Diff line change 11
22CHANGELOG
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+
492023-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)
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ twine = >=5.1,<6.0
3030wheel = >=0.45,<1.0
3131ruff = >=0.7.4,<1.0
3232pyright = >=1.1.389,<2.0
33+ setuptools = >=75.0,<76.0
3334
3435[testenv:coverage]
3536basepython = python3.13
@@ -52,18 +53,15 @@ commands =
5253 coverage report
5354 coveralls
5455
55- [testenv:release ]
56+ [testenv:build ]
5657basepython = python3.13
5758deps =
5859 twine {[versions]twine}
5960 wheel {[versions]wheel}
60- passenv =
61- PYPI_USER
62- PYPI_PASSWORD
61+ setuptools {[versions]setuptools}
6362commands =
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]
6967deps =
You can’t perform that action at this time.
0 commit comments