Skip to content

Commit

Permalink
fux
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 22, 2024
1 parent fa76331 commit c53e2cd
Show file tree
Hide file tree
Showing 18 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tests/.env
build
dist
*.egg-info
src/core/__version__.py
django_oapif/core/__version__.py

tests/benchmark/results

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions src/decorators.py → django_oapif/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
from django.contrib.gis.geos import GEOSGeometry
from django.db import models
from django.db.models.functions import Cast
from rest_framework import reverse, serializers, viewsets
from rest_framework_gis.serializers import GeoFeatureModelSerializer

from django_oapif.metadata import OAPIFMetadata
from django_oapif.mixins import OAPIFDescribeModelViewSetMixin
from django_oapif.urls import oapif_router
from rest_framework import reverse, serializers, viewsets
from rest_framework_gis.serializers import GeoFeatureModelSerializer

from .filters import BboxFilterBackend

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/mixins.py → django_oapif/mixins.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from django.contrib.gis.db.models import Extent
from django_oapif.urls import oapif_router
from pyproj import CRS, Transformer
from rest_framework.response import Response

from django_oapif.urls import oapif_router

from .parsers import GeojsonParser, JSONMergePatchParser


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ homepage = "https://github.com/opengisch/django-ogcapif"
repository = "https://github.com/opengisch/django-ogcapif"
tracker = "https://github.com/opengisch/django-ogcapif/issues"

[tool.setuptools]
packages = ["django_oapif"]

[tool.setuptools-git-versioning]
enabled = true
version_callback = "0.0.0.dev"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from django.core.management import call_command
from django.core.management.base import BaseCommand
from django.db import transaction

from tests.models import (
from django_oapif_tests.tests.models import (
Line_2056_10fields,
Line_2056_10fields_local_geom,
NoGeom_10fields,
Expand Down
3 changes: 2 additions & 1 deletion tests/django_oapif_tests/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
}


ALLOWED_HOSTS = ["localhost", "django_oapif_tests", os.getenv("OGCAPIF_HOST", "")]
ALLOWED_HOSTS = ["localhost", "django", os.getenv("OGCAPIF_HOST", "")]


# Application definition

INSTALLED_APPS = [
"django_oapif",
"django_oapif_tests.tests",
"django.contrib.admin",
"django.contrib.auth",
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
DJANGO_DEBUG: "true"
volumes:
# mounting the source code for live reloading
- ..:/usr/src
- ..:/usr/django_oapif
# mounting directory to hold unit tests outputs
- ./unit_tests_outputs/:/unit_tests_outputs
ports:
Expand Down

0 comments on commit c53e2cd

Please sign in to comment.