-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[deps/ci] QA reformat, updated CI, updated deps
- Formatted code with black - Updated CI configuration (consistent with other OpenWISP repos) - PostgreSQL 15 for testing - Upgraded psycopg2~=2.9.0 - Dropped support for EOL Python and Django versions - Dropped support for Python 3.6 and 3.7 - Dropped support for Django 2.2, 3.0, 3.1 and 4.0 - Dropped support for djangorestframework < 3.12 - Pinned djangorestframework>=3.12,<3.15 and django-filters~=23.5 - Added Django 5.0, Django 5.1 & DRF 3.15.X to tox conf - Added GitHub workflow for publishing PyPI packages --------- Signed-off-by: Gagan Deep <[email protected]>
- Loading branch information
Showing
20 changed files
with
302 additions
and
192 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Publish Python Package to Pypi.org | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
pypi-publish: | ||
name: Release Python Package on Pypi.org | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/djangorestframework-gis | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
pip install -U pip | ||
pip install build | ||
- name: Build package | ||
run: python -m build | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/[email protected] |
Oops, something went wrong.