Skip to content

Commit 0d98bcf

Browse files
author
adam
committed
py-django3: added version 3.0.3
What’s new in Django 3.0 MariaDB support ASGI support Exclusion constraints on PostgreSQL Filter expressions Enumerations for model field choices
1 parent 7fa6a97 commit 0d98bcf

File tree

7 files changed

+5103
-1
lines changed

7 files changed

+5103
-1
lines changed

www/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.1434 2020/01/29 21:52:26 adam Exp $
1+
# $NetBSD: Makefile,v 1.1435 2020/02/17 20:23:21 adam Exp $
22
#
33

44
COMMENT= Packages related to the World Wide Web
@@ -680,6 +680,7 @@ SUBDIR+= py-django-timezone-field
680680
SUBDIR+= py-django-treebeard
681681
SUBDIR+= py-django14
682682
SUBDIR+= py-django2
683+
SUBDIR+= py-django3
683684
SUBDIR+= py-djangocms-admin-style
684685
SUBDIR+= py-djangocms-attributes-field
685686
SUBDIR+= py-djangocms-audio

www/py-django3/ALTERNATIVES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin/django-admin @PREFIX@/bin/django-admin-@PYVERSSUFFIX@
2+
bin/django-admin.py @PREFIX@/bin/django-admin-@PYVERSSUFFIX@.py

www/py-django3/DESCR

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Django is a high-level Python Web framework that encourages rapid development
2+
and clean, pragmatic design. Django was designed to make common Web-development
3+
tasks fast and easy.

www/py-django3/MESSAGE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
===========================================================================
2+
$NetBSD: MESSAGE,v 1.1 2020/02/17 20:23:21 adam Exp $
3+
4+
Django also requires a database backend.
5+
6+
For PostgreSQL, install databases/py-psycopg2 package.
7+
For MySQL/MariaDB, install databases/py-mysqldb or databases/py-mysql-connector package.
8+
For SQLite, install databases/py-sqlite3 package.
9+
For Oracle, install databases/py-cx_Oracle package.
10+
===========================================================================

www/py-django3/Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# $NetBSD: Makefile,v 1.1 2020/02/17 20:23:21 adam Exp $
2+
3+
DISTNAME= Django-3.0.3
4+
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
5+
CATEGORIES= www python
6+
MASTER_SITES= https://www.djangoproject.com/m/releases/${PKGVERSION_NOREV:R}/
7+
MASTER_SITES+= ${MASTER_SITE_PYPI:=D/Django/}
8+
9+
MAINTAINER= pkgsrc-users@NetBSD.org
10+
HOMEPAGE= https://www.djangoproject.com/
11+
COMMENT= Django, a high-level Python Web framework
12+
LICENSE= modified-bsd
13+
14+
DEPENDS+= ${PYPKGPREFIX}-asgiref>=3.2:../../www/py-asgiref
15+
DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
16+
DEPENDS+= ${PYPKGPREFIX}-sqlparse>=0.2.2:../../databases/py-sqlparse
17+
18+
USE_LANGUAGES= # none
19+
20+
PYTHON_VERSIONS_INCOMPATIBLE= 27
21+
22+
REPLACE_PYTHON+= django/bin/django-admin.py
23+
REPLACE_PYTHON+= django/conf/project_template/manage.py-tpl
24+
25+
post-install:
26+
cd ${DESTDIR}${PREFIX}/bin && \
27+
${MV} django-admin django-admin-${PYVERSSUFFIX} && \
28+
${MV} django-admin.py django-admin-${PYVERSSUFFIX}.py || ${TRUE}
29+
30+
.include "../../lang/python/application.mk"
31+
.include "../../lang/python/egg.mk"
32+
.include "../../mk/bsd.pkg.mk"

0 commit comments

Comments
 (0)