diff --git a/lang/python/django-picklefield/Makefile b/lang/python/django-picklefield/Makefile index 6e4d6805f..c240b3f49 100644 --- a/lang/python/django-picklefield/Makefile +++ b/lang/python/django-picklefield/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=django-picklefield -PKG_VERSION:=1.1.0 -PKG_RELEASE:=5 +PKG_VERSION:=2.1.1 +PKG_RELEASE:=1 PYPI_NAME:=$(PKG_NAME) -PKG_HASH:=ce7fee5c6558fe5dc8924993d994ccde75bb75b91cd82787cbd4c92b95a69f9c +PKG_HASH:=67a5e156343e3b032cac2f65565f0faa81635a99c7da74b0f07a0f5db467b646 PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=MIT @@ -23,6 +23,11 @@ include $(INCLUDE_DIR)/package.mk include ../python-package.mk include ../python3-package.mk +PYTHON_PKG_SETUP_VARS:= \ + PKG_VERSION="$(PKG_VERSION)" +PYTHON3_PKG_SETUP_VARS:= \ + PKG_VERSION="$(PKG_VERSION)" + define Package/django-picklefield/Default SUBMENU:=Python SECTION:=lang diff --git a/lang/python/django-picklefield/patches/001-no-import-self-during-setup.patch b/lang/python/django-picklefield/patches/001-no-import-self-during-setup.patch new file mode 100644 index 000000000..473a4439d --- /dev/null +++ b/lang/python/django-picklefield/patches/001-no-import-self-during-setup.patch @@ -0,0 +1,19 @@ +--- a/setup.py ++++ b/setup.py +@@ -2,14 +2,14 @@ from __future__ import unicode_literals + + from setuptools import find_packages, setup + +-import picklefield ++import os + + with open('README.rst') as file_: + long_description = file_.read() + + setup( + name='django-picklefield', +- version=picklefield.__version__, ++ version=os.getenv('PKG_VERSION'), + description='Pickled object field for Django', + long_description=long_description, + author='Simon Charette',