Skip to content

Commit

Permalink
py-django3: added version 3.0.3
Browse files Browse the repository at this point in the history
What’s new in Django 3.0

MariaDB support
ASGI support
Exclusion constraints on PostgreSQL
Filter expressions
Enumerations for model field choices
  • Loading branch information
adam committed Feb 17, 2020
1 parent 7fa6a97 commit 0d98bcf
Show file tree
Hide file tree
Showing 7 changed files with 5,103 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1434 2020/01/29 21:52:26 adam Exp $
# $NetBSD: Makefile,v 1.1435 2020/02/17 20:23:21 adam Exp $
#

COMMENT= Packages related to the World Wide Web
Expand Down Expand Up @@ -680,6 +680,7 @@ SUBDIR+= py-django-timezone-field
SUBDIR+= py-django-treebeard
SUBDIR+= py-django14
SUBDIR+= py-django2
SUBDIR+= py-django3
SUBDIR+= py-djangocms-admin-style
SUBDIR+= py-djangocms-attributes-field
SUBDIR+= py-djangocms-audio
Expand Down
2 changes: 2 additions & 0 deletions www/py-django3/ALTERNATIVES
@@ -0,0 +1,2 @@
bin/django-admin @PREFIX@/bin/django-admin-@PYVERSSUFFIX@
bin/django-admin.py @PREFIX@/bin/django-admin-@PYVERSSUFFIX@.py
3 changes: 3 additions & 0 deletions www/py-django3/DESCR
@@ -0,0 +1,3 @@
Django is a high-level Python Web framework that encourages rapid development
and clean, pragmatic design. Django was designed to make common Web-development
tasks fast and easy.
10 changes: 10 additions & 0 deletions www/py-django3/MESSAGE
@@ -0,0 +1,10 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2020/02/17 20:23:21 adam Exp $

Django also requires a database backend.

For PostgreSQL, install databases/py-psycopg2 package.
For MySQL/MariaDB, install databases/py-mysqldb or databases/py-mysql-connector package.
For SQLite, install databases/py-sqlite3 package.
For Oracle, install databases/py-cx_Oracle package.
===========================================================================
32 changes: 32 additions & 0 deletions www/py-django3/Makefile
@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.1 2020/02/17 20:23:21 adam Exp $

DISTNAME= Django-3.0.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= www python
MASTER_SITES= https://www.djangoproject.com/m/releases/${PKGVERSION_NOREV:R}/
MASTER_SITES+= ${MASTER_SITE_PYPI:=D/Django/}

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.djangoproject.com/
COMMENT= Django, a high-level Python Web framework
LICENSE= modified-bsd

DEPENDS+= ${PYPKGPREFIX}-asgiref>=3.2:../../www/py-asgiref
DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
DEPENDS+= ${PYPKGPREFIX}-sqlparse>=0.2.2:../../databases/py-sqlparse

USE_LANGUAGES= # none

PYTHON_VERSIONS_INCOMPATIBLE= 27

REPLACE_PYTHON+= django/bin/django-admin.py
REPLACE_PYTHON+= django/conf/project_template/manage.py-tpl

post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} django-admin django-admin-${PYVERSSUFFIX} && \
${MV} django-admin.py django-admin-${PYVERSSUFFIX}.py || ${TRUE}

.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

0 comments on commit 0d98bcf

Please sign in to comment.