Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: Bug report
about: Open a bug report
title: "[bug] "
labels: bug
assignees: ''

assignees: ""
---

**Describe the bug**
A clear and concise description of the bug or unexpected behavior.

**Steps To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,7 +24,8 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**System Informatioon:**
- OS: [e.g. Ubuntu 24.04 LTS]
- Python Version: [e.g. Python 3.11.2]
- Django Version: [e.g. Django 4.2.5]
- Browser and Browser Version (if applicable): [e.g. Chromium v126.0.6478.126]

- OS: [e.g. Ubuntu 24.04 LTS]
- Python Version: [e.g. Python 3.11.2]
- Django Version: [e.g. Django 4.2.5]
- Browser and Browser Version (if applicable): [e.g. Chromium v126.0.6478.126]
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Feature request
about: Suggest an idea for this project
title: "[feature] "
labels: enhancement
assignees: ''

assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Question
about: Please use the Discussion Forum to ask questions
title: "[question] "
labels: question
assignees: ''

assignees: ""
---

Please use the [Discussion Forum](https://github.com/openwisp/django-rest-framework-gis/discussions) to ask questions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,45 +30,45 @@ jobs:
matrix:
env:
# DRF 3.14
- python: '3.9'
- python: "3.9"
TOXENV: py39-django42-djangorestframework314
- python: '3.10'
- python: "3.10"
TOXENV: py310-django42-djangorestframework314
- python: '3.11'
- python: "3.11"
TOXENV: py311-django42-djangorestframework314
# DRF 3.15
- python: '3.10'
- python: "3.10"
TOXENV: py310-django50-djangorestframework315
- python: '3.11'
- python: "3.11"
TOXENV: py311-django50-djangorestframework315
- python: '3.12'
- python: "3.12"
TOXENV: py312-django50-djangorestframework315
- python: '3.13'
- python: "3.13"
TOXENV: py313-django50-djangorestframework315
- python: '3.10'
- python: "3.10"
TOXENV: py310-django51-djangorestframework315
- python: '3.11'
- python: "3.11"
TOXENV: py311-django51-djangorestframework315
- python: '3.12'
- python: "3.12"
TOXENV: py312-django51-djangorestframework315
# DRF 3.16
- python: '3.11'
- python: "3.11"
TOXENV: py311-django50-djangorestframework316
- python: '3.12'
- python: "3.12"
TOXENV: py312-django50-djangorestframework316
- python: '3.11'
- python: "3.11"
TOXENV: py311-django51-djangorestframework316
- python: '3.12'
- python: "3.12"
TOXENV: py312-django51-djangorestframework316
- python: '3.13'
- python: "3.13"
TOXENV: py313-django51-djangorestframework315
- python: '3.10'
- python: "3.10"
TOXENV: py310-django52-djangorestframework315
- python: '3.11'
- python: "3.11"
TOXENV: py311-django52-djangorestframework315
- python: '3.12'
- python: "3.12"
TOXENV: py312-django52-djangorestframework315
- python: '3.13'
- python: "3.13"
TOXENV: py313-django52-djangorestframework315
steps:
- uses: actions/checkout@v4
Expand All @@ -79,7 +79,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.env.python }}
cache: 'pip'
cache: "pip"
cache-dependency-path: |
**/requirements*.txt

Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
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]
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- 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]
57 changes: 27 additions & 30 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,33 @@
version: "3.7"


services:
test:
build:
context: .
dockerfile: Dockerfile
depends_on:
- postgres
environment:
- DJANGO_SETTINGS_MODULE=settings
volumes:
- root_dir:/root
- ./rest_framework_gis:/project/rest_framework_gis
- ./tests:/project/tests
- ./README.rst:/project/README.rst
- ./setup.py:/project/setup.py
command: sh -c "pip install -e . && python ./tests/manage.py test tests/django_restframework_gis_tests && ./run-qa-checks"

test:
build:
context: .
dockerfile: Dockerfile
depends_on:
- postgres
environment:
- DJANGO_SETTINGS_MODULE=settings
volumes:
- root_dir:/root
- ./rest_framework_gis:/project/rest_framework_gis
- ./tests:/project/tests
- ./README.rst:/project/README.rst
- ./setup.py:/project/setup.py
command: sh -c "pip install -e . && python ./tests/manage.py test tests/django_restframework_gis_tests && ./run-qa-checks"

postgres:
image: postgis/postgis:15-3.4-alpine
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: django_restframework_gis
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data

postgres:
image: postgis/postgis:15-3.4-alpine
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: django_restframework_gis
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data

volumes:
postgres_data:
root_dir:
postgres_data:
root_dir: