1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

www/py-django-{photologue,sortedm2m}: Update to 3.11 and 3.0.0

* Update both ports at once because www/py-django-photologue requires
  www/py-django-sortedm2m in version 3.0.0 or later.  Also assign them to
  Django 2.2 (current LTS release) as Django 1.11 is End-of-Life.

* www/py-django-photologue: Remove an obsolete patch that was required to
  fix build isses with newer versions of devel/py-pip .

* www/py-django-sortedm2m: Switch to GitHub for a while as no sdist is
  available at PyPI.

* Sort variables a bit according to the PHB.

Changelogs:

https://github.com/richardbarran/django-photologue/blob/3.11/CHANGELOG.txt
https://github.com/jazzband/django-sortedm2m/blob/3.0.0/CHANGES.rst

PR:		245359
Approved by:	Kevin Golding <ports@caomhin.org> (maintainer)
This commit is contained in:
Kai Knoblich 2020-04-07 10:19:40 +00:00
parent 35d872a255
commit 88630fdbf6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=530962
5 changed files with 19 additions and 50 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= django-photologue
PORTVERSION= 3.8.1
PORTREVISION= 2
PORTVERSION= 3.11
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -13,14 +12,14 @@ COMMENT= Powerful image management and gallery application for Django
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=1.11:www/py-django111@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-sortedm2m>=1.5.0:www/py-django-sortedm2m@${PY_FLAVOR} \
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=1.11:www/py-django22@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-sortedm2m>=3.0.0:www/py-django-sortedm2m@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ExifRead>=2.1.2:graphics/py-exifread@${PY_FLAVOR} \
${PY_PILLOW}
NO_ARCH= yes
USES= python
USES= python:3.6+ # Required as www/py-django-sortedm2m needs Python 3.6+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1521279233
SHA256 (django-photologue-3.8.1.tar.gz) = 2a8b19e98d6cceb1fd254561821c9815d49cc449e3e89f8812da25062b1d2ea1
SIZE (django-photologue-3.8.1.tar.gz) = 173045
TIMESTAMP = 1585989760
SHA256 (django-photologue-3.11.tar.gz) = 81c3caa3afc142ecab493ea30f1b35be304468893da973cc53f0f6eba60a7667
SIZE (django-photologue-3.11.tar.gz) = 179139

View File

@ -1,31 +0,0 @@
--- setup.py.orig 2019-06-24 21:32:20 UTC
+++ setup.py
@@ -2,25 +2,15 @@
import uuid
import os
from setuptools import setup, find_packages
-from pip.req import parse_requirements
+from pkg_resources import parse_requirements
import photologue
def get_requirements(source):
+ with open(source) as f:
+ return sorted({str(req) for req in parse_requirements(f.read())})
- try:
- install_reqs = parse_requirements(source, session=uuid.uuid1())
- except TypeError:
- # Older version of pip.
- install_reqs = parse_requirements(source)
- required = list(set([str(ir.req) for ir in install_reqs]))
-
- # Temp situation: transition from PIL to Pillow, add a hook so people can
- # skip installing Pillow.
- if os.path.exists('/tmp/PHOTOLOGUE_NO_PILLOW'):
- required = [item for item in required if not item.startswith('Pillow')]
- return required
setup(
name="django-photologue",

View File

@ -2,10 +2,8 @@
# $FreeBSD$
PORTNAME= django-sortedm2m
PORTVERSION= 1.5.0
PORTREVISION= 1
PORTVERSION= 3.0.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@caomhin.org
@ -14,10 +12,13 @@ COMMENT= Replacement for Django's many to many field #'
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=1.11:www/py-django111@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=1.11:www/py-django22@${PY_FLAVOR}
NO_ARCH= yes
USES= python
USES= python:3.6+
USE_GITHUB= yes
GH_ACCOUNT= jazzband
USE_PYTHON= distutils autoplist
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1520711306
SHA256 (django-sortedm2m-1.5.0.tar.gz) = 52942b5295efcf252b6bbff58be70365d9f5d59d2e6d0f1bf9d9f2d0dbef4814
SIZE (django-sortedm2m-1.5.0.tar.gz) = 37985
TIMESTAMP = 1585989999
SHA256 (jazzband-django-sortedm2m-3.0.0_GH0.tar.gz) = 0d4a93124ac40e29017187aa275b51ffe0cb150c9f717f0e931b6abd0b20a6f6
SIZE (jazzband-django-sortedm2m-3.0.0_GH0.tar.gz) = 42890