git: 5042b00226c3 - main - www/py-dj-database-url: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Feb 2022 10:42:56 UTC
The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=5042b00226c3e3fc908b0402f7ffefe66e4520d7 commit 5042b00226c3e3fc908b0402f7ffefe66e4520d7 Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2022-02-20 10:38:00 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2022-02-20 10:42:42 +0000 www/py-dj-database-url: Add new port This simple Django utility allows you to utilize the 12factor inspired DATABASE_URL environment variable to configure your Django application. The dj_database_url.config method returns a Django database connection dictionary, populated with all the data specified in your URL. There is also a conn_max_age argument to easily enable Django’s connection pool. If you’d rather not use an environment variable, you can pass a URL in directly instead to dj_database_url.parse. Supported Databases: Support currently exists for PostgreSQL, PostGIS, MySQL, MySQL (GIS), Oracle, Oracle (GIS), and SQLite. WWW: https://github.com/kennethreitz/dj-database-url --- www/Makefile | 1 + www/py-dj-database-url/Makefile | 18 ++++++++++++++++++ www/py-dj-database-url/distinfo | 3 +++ www/py-dj-database-url/pkg-descr | 16 ++++++++++++++++ 4 files changed, 38 insertions(+) diff --git a/www/Makefile b/www/Makefile index 89924d89b41e..7429efe29ab0 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1450,6 +1450,7 @@ SUBDIR += py-cssmin SUBDIR += py-cssselect SUBDIR += py-cssutils + SUBDIR += py-dj-database-url SUBDIR += py-dj32-django-auth-ldap SUBDIR += py-dj32-django-cacheops SUBDIR += py-dj32-django-cors-headers diff --git a/www/py-dj-database-url/Makefile b/www/py-dj-database-url/Makefile new file mode 100644 index 000000000000..14085cc7f820 --- /dev/null +++ b/www/py-dj-database-url/Makefile @@ -0,0 +1,18 @@ +PORTNAME= dj-database-url +DISTVERSION= 0.5.0 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Use Database URLs in your Django Application + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/www/py-dj-database-url/distinfo b/www/py-dj-database-url/distinfo new file mode 100644 index 000000000000..3cad7fa94da2 --- /dev/null +++ b/www/py-dj-database-url/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1644813619 +SHA256 (dj-database-url-0.5.0.tar.gz) = 4aeaeb1f573c74835b0686a2b46b85990571159ffc21aa57ecd4d1e1cb334163 +SIZE (dj-database-url-0.5.0.tar.gz) = 5482 diff --git a/www/py-dj-database-url/pkg-descr b/www/py-dj-database-url/pkg-descr new file mode 100644 index 000000000000..c4b1c4d33c2e --- /dev/null +++ b/www/py-dj-database-url/pkg-descr @@ -0,0 +1,16 @@ +This simple Django utility allows you to utilize the 12factor inspired +DATABASE_URL environment variable to configure your Django application. + +The dj_database_url.config method returns a Django database connection +dictionary, populated with all the data specified in your URL. There is +also a conn_max_age argument to easily enable Django’s connection pool. + +If you’d rather not use an environment variable, you can pass a URL in +directly instead to dj_database_url.parse. + +Supported Databases: + +Support currently exists for PostgreSQL, PostGIS, MySQL, MySQL (GIS), +Oracle, Oracle (GIS), and SQLite. + +WWW: https://github.com/kennethreitz/dj-database-url