pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-django-filer py-django-filer: updated to 2.0.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b36b0f3a18f8
branches:  trunk
changeset: 445057:b36b0f3a18f8
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Jan 16 09:41:57 2021 +0000

description:
py-django-filer: updated to 2.0.2

2.0.2
Fix 1214: serve() missing 1 required positional argument: filer_file.
Fix 1211: On upload MIME-type is not set correctly.

2.0.1
Fixed NotNullViolation: null value in column "mime_type" in migration filer.0012_file_mime_type.py.

2.0.0
Added support for Django 3.1
Dropped support for Python 2.7 and Python 3.4
Dropped support for Django < 2.2
Changed the preferred way to do model registration via model inheritance and mptt.AlreadyRegistered, which is deprecated since django-mptt 0.4
Use dashed name for django-polymorphic dependency in setup.py
In models.File, add field mime_type to store the Content-Type as set by the browser during file upload
For extended Django Filer models, adopt the classmethod matches_file_type to its new signature, this is a breaking change
Add attribute download to the download link in order to offer the file under its original name

diffstat:

 www/py-django-filer/Makefile               |  10 +++++-----
 www/py-django-filer/PLIST                  |   5 ++++-
 www/py-django-filer/distinfo               |  11 ++++++-----
 www/py-django-filer/patches/patch-setup.py |  15 +++++++++++++++
 4 files changed, 30 insertions(+), 11 deletions(-)

diffs (85 lines):

diff -r 64ff5c10ae90 -r b36b0f3a18f8 www/py-django-filer/Makefile
--- a/www/py-django-filer/Makefile      Sat Jan 16 09:27:39 2021 +0000
+++ b/www/py-django-filer/Makefile      Sat Jan 16 09:41:57 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2020/06/19 12:04:33 adam Exp $
+# $NetBSD: Makefile,v 1.9 2021/01/16 09:41:57 adam Exp $
 
-DISTNAME=      django-filer-1.7.1
+DISTNAME=      django-filer-2.0.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/django-filer/}
@@ -11,15 +11,15 @@
 LICENSE=       modified-bsd
 
 DEPENDS+=      ${PYPKGPREFIX}-Unidecode>=0.04:../../textproc/py-Unidecode
-DEPENDS+=      ${PYPKGPREFIX}-django>=1.11:../../www/py-django
+DEPENDS+=      ${PYPKGPREFIX}-django>=2.2:../../www/py-django2
 DEPENDS+=      ${PYPKGPREFIX}-django-mptt>=0.6:../../www/py-django-mptt
-DEPENDS+=      ${PYPKGPREFIX}-django-polymorphic>=0.7:../../www/py-django-polymorphic
+DEPENDS+=      ${PYPKGPREFIX}-django-polymorphic>=2.0:../../www/py-django-polymorphic
 DEPENDS+=      ${PYPKGPREFIX}-easy-thumbnails>=2.0:../../www/py-easy-thumbnails
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
 
 USE_LANGUAGES= # none
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27 # py-django-mptt
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 64ff5c10ae90 -r b36b0f3a18f8 www/py-django-filer/PLIST
--- a/www/py-django-filer/PLIST Sat Jan 16 09:27:39 2021 +0000
+++ b/www/py-django-filer/PLIST Sat Jan 16 09:41:57 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2020/02/20 06:23:20 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2021/01/16 09:41:57 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -193,6 +193,9 @@
 ${PYSITELIB}/filer/migrations/0011_auto_20190418_0137.py
 ${PYSITELIB}/filer/migrations/0011_auto_20190418_0137.pyc
 ${PYSITELIB}/filer/migrations/0011_auto_20190418_0137.pyo
+${PYSITELIB}/filer/migrations/0012_file_mime_type.py
+${PYSITELIB}/filer/migrations/0012_file_mime_type.pyc
+${PYSITELIB}/filer/migrations/0012_file_mime_type.pyo
 ${PYSITELIB}/filer/migrations/__init__.py
 ${PYSITELIB}/filer/migrations/__init__.pyc
 ${PYSITELIB}/filer/migrations/__init__.pyo
diff -r 64ff5c10ae90 -r b36b0f3a18f8 www/py-django-filer/distinfo
--- a/www/py-django-filer/distinfo      Sat Jan 16 09:27:39 2021 +0000
+++ b/www/py-django-filer/distinfo      Sat Jan 16 09:41:57 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2020/06/19 12:04:33 adam Exp $
+$NetBSD: distinfo,v 1.7 2021/01/16 09:41:57 adam Exp $
 
-SHA1 (django-filer-1.7.1.tar.gz) = ae9d9a1f57a90b578b16d7baa13aa4688ac50efb
-RMD160 (django-filer-1.7.1.tar.gz) = a397f047d4bfa34ace406741a5a14f1725a1fb41
-SHA512 (django-filer-1.7.1.tar.gz) = 27b6b30f686ea1fcefa417057c80fbc1a87fac0fbfad57e7fe0045667355eeb3300f0d8a5a087af368d7dfcf523fe2e8fcadfded5eb12e2bce26faa04da76c19
-Size (django-filer-1.7.1.tar.gz) = 1252192 bytes
+SHA1 (django-filer-2.0.2.tar.gz) = cb15707019a9b3876e048968efe86a5a8ce52e27
+RMD160 (django-filer-2.0.2.tar.gz) = a901bdbd64a8aa88171f33047123d1d91fa805b0
+SHA512 (django-filer-2.0.2.tar.gz) = 9ba07a15ab0af144ae6791814e3dbaf72d015d0ce0f361544ba8699f74a315b797bd9330836190db743c6868dce19d42269ac5b583de5c97cba9193f3f7ea273
+Size (django-filer-2.0.2.tar.gz) = 1267183 bytes
+SHA1 (patch-setup.py) = bff20b3b23f60971dcad4b49b722b4e2317d44d7
diff -r 64ff5c10ae90 -r b36b0f3a18f8 www/py-django-filer/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-django-filer/patches/patch-setup.py        Sat Jan 16 09:41:57 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2021/01/16 09:41:57 adam Exp $
+
+Do not install tests.
+
+--- setup.py.orig      2021-01-16 09:34:19.000000000 +0000
++++ setup.py
+@@ -50,7 +50,7 @@ setup(
+     description='A file management application for django that makes handling '
+                 'of files and images a breeze.',
+     long_description=open('README.rst').read(),
+-    packages=find_packages(),
++    packages=find_packages(exclude=['tests*']),
+     include_package_data=True,
+     zip_safe=False,
+     install_requires=REQUIREMENTS,



Home | Main Index | Thread Index | Old Index