Create some ports that are assigned to Django 3.1 instead Django 2.2

* Django 2.2 is currently the "default" version in the ports tree due its
  long term support until April 2022.  Thus ports that are assigned to that
  version will exist until then.

  The following ports are required to make the upgrade of net-mgmt/netbox to
  the 2.9 release possible because it requires Django 3.1 and provides no
  backwards compatibility for previous versions of Django.

  - www/py-dj31-django-rq
      (copied from r539662 to use the 2.3.2 release for now)
  - www/py-dj31-django-auth-ldap
  - www/py-dj31-django-cacheops
  - www/py-dj31-django-cors-headers
  - www/py-dj31-django-debug-toolbar
  - www/py-dj21-django-filter
  - www/py-dj31-django-js-asset
  - www/py-dj31-django-mptt
  - www/py-dj31-django-prometheus
  - www/py-dj31-django-redis
  - www/py-dj31-django-tables2
  - www/py-dj31-django-taggit
  - www/py-dj31-django-timezone-field
  - www/py-dj31-djangorestframework
  - www/py-dj31-drf-yasg

* Also limit the new ports to Python 3.6+ due the requirements of Django 3.1
  and add/update the related CONFLICTS_INSTALL entries.

Reviewed by:	sunpoet
Differential Revision:	https://reviews.freebsd.org/D27083
This commit is contained in:
Kai Knoblich 2020-11-10 08:47:03 +00:00
parent 20855cef38
commit a0f4c73ff7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=554817
62 changed files with 624 additions and 14 deletions

View File

@ -4348,6 +4348,7 @@
SUBDIR += py-distlib
SUBDIR += py-distorm
SUBDIR += py-distributed
SUBDIR += py-dj31-django-rq
SUBDIR += py-django-rq
SUBDIR += py-docker-py
SUBDIR += py-dockerpty

View File

@ -0,0 +1,37 @@
# Created by: René Ladan <rene@freebsd.org>
# $FreeBSD$
PORTNAME= django-rq
PORTVERSION= 2.3.2
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MASTER_SITES= CHEESESHOP
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Provides Django integration for RQ (Redis Queue)
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=2.0:www/py-django31@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}redis>=3:databases/py-redis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rq>=1.2:devel/py-rq@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}docutils>=0:textproc/py-docutils@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} \
redis-server:databases/redis
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-rq
# https://github.com/rq/django-rq/blob/master/Makefile
do-test:
cd ${WRKSRC} && coverage-${PYTHON_VER} run ${LOCALBASE}/bin/django-admin.py test django_rq --settings=django_rq.tests.settings --pythonpath=.
cd ${WRKSRC} && ${PYTHON_CMD} setup.py check --metadata --restructuredtext --strict
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1592419321
SHA256 (django-rq-2.3.2.tar.gz) = ee9aefba814ae00b6d6a566ed0cd2a0a090e0e42d90bb9c4f1c70d3cacb47a52
SIZE (django-rq-2.3.2.tar.gz) = 41038

View File

@ -0,0 +1,5 @@
Django integration with RQ, a Redis based Python queuing library. Django-RQ is a
simple app that allows you to configure your queues in django's settings.py and
easily use them in your project.
WWW: https://github.com/rq/django-rq

View File

@ -27,7 +27,7 @@ USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj22-django-rq
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-rq
# https://github.com/rq/django-rq/blob/master/Makefile
do-test:

View File

@ -1443,6 +1443,20 @@
SUBDIR += py-cssmin
SUBDIR += py-cssselect
SUBDIR += py-cssutils
SUBDIR += py-dj31-django-auth-ldap
SUBDIR += py-dj31-django-cacheops
SUBDIR += py-dj31-django-cors-headers
SUBDIR += py-dj31-django-debug-toolbar
SUBDIR += py-dj31-django-filter
SUBDIR += py-dj31-django-js-asset
SUBDIR += py-dj31-django-mptt
SUBDIR += py-dj31-django-prometheus
SUBDIR += py-dj31-django-redis
SUBDIR += py-dj31-django-tables2
SUBDIR += py-dj31-django-taggit
SUBDIR += py-dj31-django-timezone-field
SUBDIR += py-dj31-djangorestframework
SUBDIR += py-dj31-drf-yasg
SUBDIR += py-django
SUBDIR += py-django-allauth
SUBDIR += py-django-annoying

View File

@ -0,0 +1,36 @@
# Created by: Alexander Kriventsov <avk@vl.ru>
# $FreeBSD$
PORTNAME= django-auth-ldap
PORTVERSION= 2.2.0
CATEGORIES= www security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= LDAP integration for django.contrib.auth
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=1.11:www/py-django31@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ldap>=3.1:net/py-ldap@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
PORTDOCS= *
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-auth-ldap
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= ${PY_SPHINX}
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/build/sphinx/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
"! -name .buildinfo -and ! -name objects.inv")
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1604229069
SHA256 (django-auth-ldap-2.2.0.tar.gz) = 11af1773b08613339d2c3a0cec1308a4d563518f17b1719c3759994d0b4d04bf
SIZE (django-auth-ldap-2.2.0.tar.gz) = 53148

View File

@ -0,0 +1,6 @@
This is a Django authentication backend that authenticates against an LDAP
service. Configuration can be as simple as a single distinguished name template,
but there are many rich configuration options for working with users, groups,
and permissions.
WWW: https://github.com/django-auth-ldap/django-auth-ldap

View File

@ -0,0 +1,27 @@
# $FreeBSD$
PORTNAME= django-cacheops
PORTVERSION= 5.1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Slick ORM cache with automatic granular event-driven invalidation
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=2.1:www/py-django31@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}redis>=3.0.0:databases/py-redis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}funcy>=1.8<2.0:devel/py-funcy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.4.0:devel/py-six@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist distutils
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-cacheops
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1604141854
SHA256 (django-cacheops-5.1.tar.gz) = d5851cd7bf3087384a1fcecfa8dddb8f55030eedfd6fdf127225b75bca0f99dd
SIZE (django-cacheops-5.1.tar.gz) = 67776

View File

@ -0,0 +1,15 @@
A slick app that supports automatic or manual queryset caching and automatic
granular event-driven invalidation.
It uses redis as backend for ORM cache and redis or filesystem for simple
time-invalidated one.
And there is more to it:
* Decorators to cache any user function or view as a queryset or by time
* Extensions for django and jinja2 templates
* Transparent transaction support
* Dog-pile prevention mechanism
* A couple of hacks to make django faster
WWW: https://github.com/Suor/django-cacheops

View File

@ -0,0 +1,23 @@
# $FreeBSD$
PORTNAME= django-cors-headers
PORTVERSION= 3.4.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Handles server headers required for Cross-Origin Resource Sharing
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=2.0:www/py-django31@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-cors-headers
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1604142236
SHA256 (django-cors-headers-3.4.0.tar.gz) = f5218f2f0bb1210563ff87687afbf10786e080d8494a248e705507ebd92d7153
SIZE (django-cors-headers-3.4.0.tar.gz) = 78307

View File

@ -0,0 +1,4 @@
A Django App that adds CORS (Cross-Origin Resource Sharing) headers to
responses.
WWW: https://github.com/adamchainz/django-cors-headers

View File

@ -0,0 +1,26 @@
# Created by: Johannes Meixner <johannes@perceivon.net>
# $FreeBSD$
PORTNAME= django-debug-toolbar
PORTVERSION= 3.1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Configurable set of panels to display debug information
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=2.2:www/py-django31@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlparse>=0.2.0:databases/py-sqlparse@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-debug-toolbar
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1600794972
SHA256 (django-debug-toolbar-3.1.tar.gz) = 20d94839b81d8d97194a911fc248d78e9df9ed953016e575dc6bd4c717b99e6e
SIZE (django-debug-toolbar-3.1.tar.gz) = 115898

View File

@ -0,0 +1,5 @@
The Django Debug Toolbar is a configurable set of panels that display various
debug information about the current request/response and when clicked, display
more details about the panel's content.
WWW: https://github.com/jazzband/django-debug-toolbar

View File

@ -0,0 +1,23 @@
# $FreeBSD$
PORTNAME= django-filter
DISTVERSION= 2.3.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Dynamic filtering for querysets with Django
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=2.2:www/py-django31@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-filter
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1604142369
SHA256 (django-filter-2.3.0.tar.gz) = 11e63dd759835d9ba7a763926ffb2662cf8a6dcb4c7971a95064de34dbc7e5af
SIZE (django-filter-2.3.0.tar.gz) = 146448

View File

@ -0,0 +1,3 @@
A generic system for filtering Django QuerySets based on user selections.
WWW: https://github.com/carltongibson/django-filter

View File

@ -0,0 +1,24 @@
# $FreeBSD$
PORTNAME= django-js-asset
DISTVERSION= 1.2.2
PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Insert script tags with additional attributes for django.forms.Media
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>0:www/py-django31@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-js-asset
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1586294408
SHA256 (django-js-asset-1.2.2.tar.gz) = c163ae80d2e0b22d8fb598047cd0dcef31f81830e127cfecae278ad574167260
SIZE (django-js-asset-1.2.2.tar.gz) = 4436

View File

@ -0,0 +1,4 @@
Insert script tags with additional attributes (such as "id" and "data" for
CSP-compatible data injection) for the django.forms.Media package.
WWW: https://github.com/matthiask/django-js-asset

View File

@ -0,0 +1,26 @@
# Created by: Carlo Strub
# $FreeBSD$
PORTNAME= django-mptt
PORTVERSION= 0.11.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Utilities for implementing Modified Preorder Tree Traversal in Django
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=1.11:www/py-django31@${PY_FLAVOR}\
${PYTHON_PKGNAMEPREFIX}dj31-django-js-asset>0:www/py-dj31-django-js-asset@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-happenings \
${PYTHON_PKGNAMEPREFIX}django-mptt
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1586258697
SHA256 (django-mptt-0.11.0.tar.gz) = dfdb3af75ad27cdd4458b0544ec8574174f2b90f99bc2cafab6a15b4bc1895a8
SIZE (django-mptt-0.11.0.tar.gz) = 98300

View File

@ -0,0 +1,4 @@
Utilities for implementing Modified Preorder Tree Traversal with your Django
Models and working with trees of Model instances.
WWW: https://github.com/django-mptt/django-mptt

View File

@ -0,0 +1,36 @@
# $FreeBSD$
PORTNAME= django-prometheus
PORTVERSION= 2.0.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Export Django monitoring metrics for Prometheus.io
LICENSE= APACHE20
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=1.11:www/py-django31@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.7:net-mgmt/py-prometheus-client@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist distutils
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-prometheus
NO_ARCH= yes
OPTIONS_GROUP= DATABASE CACHE
OPTIONS_GROUP_DATABASE= MYSQL PGSQL
OPTIONS_GROUP_CACHE= MEMCACHED REDIS
MEMCACHED_DESC= Memcached distributed memory caching support
MEMCACHED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-memcached>=0:databases/py-python-memcached@${PY_FLAVOR}
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mysqlclient>=0:databases/py-mysqlclient@${PY_FLAVOR}
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=0:databases/py-psycopg2@${PY_FLAVOR}
REDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dj31-django-redis>=4.8:www/py-dj31-django-redis@${PY_FLAVOR}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1604180791
SHA256 (django-prometheus-2.0.0.tar.gz) = 8f25e86a3c310f40cf32cfa1b56a2b6df9cb2521e4cb794844958697d98fb3d1
SIZE (django-prometheus-2.0.0.tar.gz) = 20028

View File

@ -0,0 +1,16 @@
This library exports Django monitoring metrics for Prometheus.io.
It provides support to monitor the following databases types:
* SQLite (via Django)
* PostgreSQL
* MySQL
In addition, caches can also be monitored:
* memcached
* Redis
It's even possible to export metrics of Django models and migrations.
WWW: https://github.com/korfuri/django-prometheus

View File

@ -0,0 +1,31 @@
# $FreeBSD$
PORTNAME= django-redis
PORTVERSION= 4.12.1
CATEGORIES= www databases
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Full featured Redis cache/session backend for Django
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=2.2:www/py-django31@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}redis>=3.0.0:databases/py-redis@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hiredis>=0:databases/py-hiredis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-redis
NO_ARCH= yes
do-test:
@cd ${WRKSRC}/tests && ${PYTHON_CMD} runtests.py
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1593061804
SHA256 (django-redis-4.12.1.tar.gz) = 306589c7021e6468b2656edc89f62b8ba67e8d5a1c8877e2688042263daa7a63
SIZE (django-redis-4.12.1.tar.gz) = 23350

View File

@ -0,0 +1,17 @@
Django-redis is a BSD Licensed, full featured Redis cache/session
backend for Django.
Why use django-redis?
* Modular client system (pluggable clients).
* Master-Slave support in the default client.
* Used in production in several projects as cache and session storage.
* Supports infinite timeouts.
* Python 3 support in same code base.
* Facilities for raw access to Redis client/connection pool.
* Highly configurable (can emulate memcached exception behavior, for
example).
* Unix sockets supported by default.
* Pluggable parsers.
WWW: https://github.com/niwinz/django-redis

View File

@ -0,0 +1,30 @@
# Created by: Kozlov Sergey <kozlov.sergey.404@gmail.com>
# $FreeBSD$
PORTNAME= django-tables2
DISTVERSION= 2.3.1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Table/data-grid framework for Django
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=0:www/py-django31@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-tables2
NO_ARCH= yes
OPTIONS_DEFINE= TABLIB
TABLIB_DESC= Enable support for exporting table datasets
TABLIB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tablib>=0:textproc/py-tablib@${PY_FLAVOR}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1604181298
SHA256 (django-tables2-2.3.1.tar.gz) = 28da782f81f046c7d921246f43e7ba2df430cafe5a0e00a0f9dadef25a0e487d
SIZE (django-tables2-2.3.1.tar.gz) = 72954

View File

@ -0,0 +1,5 @@
django-tables2 simplifies the task of turning sets of data into HTML tables.
It has native support for pagination and sorting, does for HTML tables what
django.forms does for HTML forms.
WWW: https://github.com/jieter/django-tables2

View File

@ -0,0 +1,23 @@
# $FreeBSD$
PORTNAME= django-taggit
PORTVERSION= 1.3.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Reusable Django application for simple tagging
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=1.11:www/py-django31@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-taggit
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1604143312
SHA256 (django-taggit-1.3.0.tar.gz) = 4a833bf71f4c2deddd9745924eee53be1c075d7f0020a06f12e29fa3d752732d
SIZE (django-taggit-1.3.0.tar.gz) = 46986

View File

@ -0,0 +1,3 @@
django-taggit a simpler approach to tagging with Django.
WWW: https://github.com/jazzband/django-taggit

View File

@ -0,0 +1,24 @@
# $FreeBSD$
PORTNAME= django-timezone-field
DISTVERSION= 4.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Provides database and form fields for pytz timezone objects for Django
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=1.11:www/py-django31@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-timezone-field
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1585946621
SHA256 (django-timezone-field-4.0.tar.gz) = 7e3620fe2211c2d372fad54db8f86ff884098d018d56fda4dca5e64929e05ffc
SIZE (django-timezone-field-4.0.tar.gz) = 6866

View File

@ -0,0 +1,3 @@
Provides database and form fields for pytz timezone objects for Django.
WWW: https://github.com/mfogel/django-timezone-field

View File

@ -0,0 +1,25 @@
# $FreeBSD$
PORTNAME= djangorestframework
PORTVERSION= 3.12.1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Django REST framework
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=2.2:www/py-django31@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}djangorestframework3* \
${PYTHON_PKGNAMEPREFIX}djangorestframework
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1601765113
SHA256 (djangorestframework-3.12.1.tar.gz) = d54452aedebb4b650254ca092f9f4f5df947cb1de6ab245d817b08b4f4156249
SIZE (djangorestframework-3.12.1.tar.gz) = 810693

View File

@ -0,0 +1,6 @@
Django REST framework is a powerful and flexible toolkit that makes
it easy to build Web APIs.
Note: This is the 3.9.x branch which supports Django 1.11 and later
WWW: https://www.django-rest-framework.org/

View File

@ -0,0 +1,39 @@
# $FreeBSD$
PORTNAME= drf-yasg
DISTVERSION= 1.20.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj31-
MAINTAINER= kai@FreeBSD.org
COMMENT= Yet Another Swagger Generator
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.rst
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.0.6:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django31>=2.2.16:www/py-django31@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj31-djangorestframework>=3.10.3:www/py-dj31-djangorestframework@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}coreapi>=2.3.3:devel/py-coreapi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}coreschema>=0.0.4:devel/py-coreschema@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}inflection>=0.3.1:devel/py-inflection@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.15.34:devel/py-ruamel.yaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}uritemplate>=3.0.0:net/py-uritemplate@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist
CONFLICTS_INSTALL= ${PYTHON_PGKNAMEPREFIX}drf-yasg
NO_ARCH= yes
OPTIONS_DEFINE= VALIDATION
OPTIONS_DEFAULT= VALIDATION
VALIDATION_DESC= Enable built-in OpenAPI validation mechanisms
VALIDATION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}swagger-spec-validator>=2.1.0:devel/py-swagger-spec-validator@${PY_FLAVOR}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1604143828
SHA256 (drf-yasg-1.20.0.tar.gz) = d50f197c7f02545d0b736df88c6d5cf874f8fea2507ad85ad7de6ae5bf2d9e5a
SIZE (drf-yasg-1.20.0.tar.gz) = 1800321

View File

@ -0,0 +1,20 @@
Generate real Swagger/OpenAPI 2.0 specifications from a Django Rest
Framework API.
Features:
- full support for nested serializers and schemas
- response schemas and descriptions
- model definitions compatible with codegen tools
- customization hooks at all points in the spec generation process
- JSON and YAML format for spec
- bundles latest version of swagger-ui and redoc for viewing the generated
documentation
- schema view is cacheable out of the box
- generated Swagger schema can be automatically validated by
swagger-spec-validator or flex
- supports Django REST Framework API versioning with URLPathVersioning
and NamespaceVersioning (other DRF or custom versioning schemes are
not currently supported)
WWW: https://github.com/axnsan12/drf-yasg

View File

@ -21,8 +21,7 @@ USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
PORTDOCS= *
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj21-django-auth-ldap \
${PYTHON_PKGNAMEPREFIX}dj22-django-auth-ldap
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-auth-ldap
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= ${PY_SPHINX}

View File

@ -20,7 +20,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=2.1:www/py-django22@${PY_FLAVOR} \
USES= python:3.5+
USE_PYTHON= autoplist distutils
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj22-django-cacheops
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-cacheops
NO_ARCH= yes

View File

@ -18,6 +18,6 @@ USES= python:3.5+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj22-django-cors-headers
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-cors-headers
.include <bsd.port.mk>

View File

@ -21,6 +21,6 @@ USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj22-django-debug-toolbar
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-debug-toolbar
.include <bsd.port.mk>

View File

@ -18,7 +18,6 @@ USES= python:3.5+
USE_PYTHON= distutils autoplist
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj21-django-filter \
${PYTHON_PKGNAMEPREFIX}dj22-django-filter
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-filter
.include <bsd.port.mk>

View File

@ -19,6 +19,6 @@ USES= python:3.5+
USE_PYTHON= distutils autoplist
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj22-django-js-asset
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-js-asset
.include <bsd.port.mk>

View File

@ -21,6 +21,6 @@ USE_PYTHON= autoplist distutils
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-happenings \
${PYTHON_PKGNAMEPREFIX}dj22-django-mptt
${PYTHON_PKGNAMEPREFIX}dj31-django-mptt
.include <bsd.port.mk>

View File

@ -18,7 +18,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=1.11:www/py-django22@${PY_FLAVOR}
USES= python:3.5+
USE_PYTHON= autoplist distutils
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj22-django-prometheus
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-prometheus
NO_ARCH= yes

View File

@ -21,6 +21,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hiredis>=0:databases/py-hiredis@${PY_FLAVOR
USES= python:3.5+
USE_PYTHON= autoplist concurrent distutils
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-redis
NO_ARCH= yes
do-test:

View File

@ -18,6 +18,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=0:www/py-django22@${PY_FLAVOR}
USES= python:3.5+
USE_PYTHON= distutils autoplist
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-tables2
NO_ARCH= yes
OPTIONS_DEFINE= TABLIB

View File

@ -18,6 +18,6 @@ USES= python:3.5+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj22-django-taggit
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-taggit
.include <bsd.port.mk>

View File

@ -19,6 +19,6 @@ USES= python:3.5+
USE_PYTHON= distutils autoplist
NO_ARCH= yes
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj22-django-timezone-field
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-timezone-field
.include <bsd.port.mk>

View File

@ -20,7 +20,7 @@ USES= python:3.5+
USE_PYTHON= distutils autoplist
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}djangorestframework3* \
${PYTHON_PKGNAMEPREFIX}dj22-djangorestframework
${PYTHON_PKGNAMEPREFIX}dj31-djangorestframework
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -26,6 +26,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=2.2.16:www/py-django22@${PY_FLAVOR
USES= python:3.5+
USE_PYTHON= distutils autoplist
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}py-dj31-drf-yasg
NO_ARCH= yes
OPTIONS_DEFINE= VALIDATION