Skip to content

Commit

Permalink
Merge branch 'gsoc24-rebased' into notification-batching-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanus3133 committed Aug 28, 2024
2 parents 50829b7 + 070e36c commit deffe97
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pypi.yml
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/openwisp-ipam
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]
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openwisp-utils[qa,selenium] @ https://github.com/openwisp/openwisp-utils/tarball/master
openwisp-utils[qa,selenium]~=1.1.0
django-cors-headers~=4.4.0
django-redis~=5.4.0
channels_redis~=4.2.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
django-notifications-hq~=1.8.3
channels~=3.0.2
openwisp-users @ https://github.com/openwisp/openwisp-users/tarball/master
openwisp-utils[rest,celery] @ https://github.com/openwisp/openwisp-utils/tarball/master
openwisp-utils[rest,celery]~=1.1.0
markdown~=3.6.0
1 change: 1 addition & 0 deletions tests/openwisp2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'allauth.account.middleware.AccountMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
Expand Down

0 comments on commit deffe97

Please sign in to comment.