svn commit: r505332 - head/www/py-django-photologue/files
Steve Wills
swills at FreeBSD.org
Sat Jun 29 08:56:02 UTC 2019
Author: swills
Date: Sat Jun 29 08:56:01 2019
New Revision: 505332
URL: https://svnweb.freebsd.org/changeset/ports/505332
Log:
www/py-django-photologue: make compatible with upcoming pip 19.1.1
PR: 238793
Approved by: Kevin Golding <ports at caomhin.org> (maintainer)
Added:
head/www/py-django-photologue/files/
head/www/py-django-photologue/files/patch-setup.py (contents, props changed)
Added: head/www/py-django-photologue/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/py-django-photologue/files/patch-setup.py Sat Jun 29 08:56:01 2019 (r505332)
@@ -0,0 +1,31 @@
+--- 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",
More information about the svn-ports-all
mailing list