diff options
| author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2019-10-11 09:29:46 +0300 |
|---|---|---|
| committer | Eneas U de Queiroz <cotequeiroz@gmail.com> | 2019-10-24 09:13:38 -0300 |
| commit | c21a453ffda4fb451593b85ae06b8ea9eac0ea7d (patch) | |
| tree | 38b4f4dd0e8791e5f5c8e90be6c2fb5ee7fdd435 /lang/python/django1 | |
| parent | b38c9a01e2bc155cad9e1ac4899d7bad053d2200 (diff) | |
django: split django1 package and update to 2.2.6
After many failed attempts at upgrading Django to 2.2.6, the solution seems
to be to split a `python-django1` package that works with Python2 and
upgrade `python3-django` to the latest 2.2[.6] LTS release.
This also means that all Python2 Django packages will be stuck & based on
Django 1.11[.24] LTS release. But, it's currently the sanest approach I
could find to be able to perform an upgrade of Django to 2.2, and not break
Seafile.
Upgrading Seafile is also pretty difficult, as their Python3 support is not
yet finished & released. And in the meantime, we want to allow people to
use newer Django versions.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/django1')
| -rw-r--r-- | lang/python/django1/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/lang/python/django1/Makefile b/lang/python/django1/Makefile new file mode 100644 index 000000000..619a57b90 --- /dev/null +++ b/lang/python/django1/Makefile @@ -0,0 +1,58 @@ +# +# Copyright (C) Alexandru Ardelean <ardeleanalex@gmail.com> +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=django1 +PKG_VERSION:=1.11.24 +PKG_RELEASE:=1 + +PKG_SOURCE:=Django-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/D/Django +PKG_HASH:=215c27453f775b6b1add83a185f76c2e2ab711d17786a6704bd62eabd93f89e3 +PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-django-$(PKG_VERSION) + +PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com> +PKG_LICENSE:=BSD-3-Clause +PKG_LICENSE_FILES:=LICENSE LICENSE.python +PKG_CPE_ID:=cpe:/a:djangoproject:django + +include $(INCLUDE_DIR)/package.mk +include ../python-package.mk + +PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) + +define Package/django1/Default + SUBMENU:=Python + SECTION:=lang + CATEGORY:=Languages + TITLE:=The web framework for perfectionists with deadlines. + URL:=https://www.djangoproject.com/ + MENU:=1 +endef + +define Package/python-django1 +$(call Package/django1/Default) + DEPENDS:= \ + +PACKAGE_python-django1:python \ + +PACKAGE_python-django1:python-pytz + VARIANT:=python + CONFLICTS:=python3-django +endef + +define Package/python-django1/description + The web framework for perfectionists with deadlines (LTS 1.11 series). + Python2 only. +endef + +$(eval $(call PyPackage,python-django1)) +define Package/python-django1-src += + + MDEPENDS:=python-django1 +endef +$(eval $(call BuildPackage,python-django1)) +$(eval $(call BuildPackage,python-django1-src)) |
