django1: Add python3-django1 package
This adds a Python 3 version of the django1 package. This also adds a python-django1-common package that contains a django-admin script based on the one in Debian[1]. This allows python-django1 and python3-django1 to be installed at the same time. python3-django conflicts with python-django1 (via python-django1-common) and python3-django1. This also updates older Python 3 Django plugin packages to depend on python3-django1, and newer plugin packages to depend on "django", which both python3-django and python3-django1 provide. Because of this dependency on either version of Django, the MDEPENDS for Python 3 Django plugin packages no longer functions correctly and has been removed. [1]: https://salsa.debian.org/python-team/modules/python-django/blob/debian/buster/debian/django-admin Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
parent
ec97bdee35
commit
07251a0543
19 changed files with 104 additions and 63 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-appconf
|
PKG_NAME:=django-appconf
|
||||||
PKG_VERSION:=1.0.2
|
PKG_VERSION:=1.0.2
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=$(PKG_NAME)
|
||||||
PKG_HASH:=6a4d9aea683b4c224d97ab8ee11ad2d29a37072c0c6c509896dd9857466fb261
|
PKG_HASH:=6a4d9aea683b4c224d97ab8ee11ad2d29a37072c0c6c509896dd9857466fb261
|
||||||
|
@ -48,9 +48,8 @@ define Package/python3-django-appconf
|
||||||
$(call Package/django-appconf/Default)
|
$(call Package/django-appconf/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-appconf:python3 \
|
+PACKAGE_python3-django-appconf:python3 \
|
||||||
python3-django
|
+PACKAGE_python3-django-appconf:python3-django1
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-appconf/description
|
define Package/python3-django-appconf/description
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-compressor
|
PKG_NAME:=django-compressor
|
||||||
PKG_VERSION:=2.2
|
PKG_VERSION:=2.2
|
||||||
PKG_RELEASE:=6
|
PKG_RELEASE:=7
|
||||||
|
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=$(PKG_NAME)
|
||||||
PYPI_SOURCE_NAME:=django_compressor
|
PYPI_SOURCE_NAME:=django_compressor
|
||||||
|
@ -54,11 +54,10 @@ define Package/python3-django-compressor
|
||||||
$(call Package/django-compressor/Default)
|
$(call Package/django-compressor/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-compressor:python3 \
|
+PACKAGE_python3-django-compressor:python3 \
|
||||||
python3-django \
|
+PACKAGE_python3-django-compressor:python3-django1 \
|
||||||
+PACKAGE_python3-django-compressor:python3-django-appconf \
|
+PACKAGE_python3-django-compressor:python3-django-appconf \
|
||||||
+PACKAGE_python3-django-compressor:python3-rcssmin
|
+PACKAGE_python3-django-compressor:python3-rcssmin
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-compressor/description
|
define Package/python3-django-compressor/description
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-constance
|
PKG_NAME:=django-constance
|
||||||
PKG_VERSION:=2.3.1
|
PKG_VERSION:=2.3.1
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=$(PKG_NAME)
|
||||||
PKG_HASH:=a49735063b2c30015d2e52a90609ea9798da722ed070f091de51714758a5d018
|
PKG_HASH:=a49735063b2c30015d2e52a90609ea9798da722ed070f091de51714758a5d018
|
||||||
|
@ -47,9 +47,8 @@ define Package/python3-django-constance
|
||||||
$(call Package/python-django-constance/Default)
|
$(call Package/python-django-constance/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-constance:python3 \
|
+PACKAGE_python3-django-constance:python3 \
|
||||||
python3-django
|
+PACKAGE_python3-django-constance:python3-django1
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-constance/description
|
define Package/python3-django-constance/description
|
||||||
|
|
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-formtools
|
PKG_NAME:=django-formtools
|
||||||
PKG_VERSION:=2.1
|
PKG_VERSION:=2.1
|
||||||
PKG_RELEASE:=6
|
PKG_RELEASE:=7
|
||||||
|
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=$(PKG_NAME)
|
||||||
PKG_HASH:=7703793f1675aa6e871f9fed147e8563816d7a5b9affdc5e3459899596217f7c
|
PKG_HASH:=7703793f1675aa6e871f9fed147e8563816d7a5b9affdc5e3459899596217f7c
|
||||||
|
@ -47,9 +47,8 @@ define Package/python3-django-formtools
|
||||||
$(call Package/django-formtools/Default)
|
$(call Package/django-formtools/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-formtools:python3 \
|
+PACKAGE_python3-django-formtools:python3 \
|
||||||
python3-django
|
+PACKAGE_python3-django-formtools:python3-django1
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-formtools/description
|
define Package/python3-django-formtools/description
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-jsonfield
|
PKG_NAME:=django-jsonfield
|
||||||
PKG_VERSION:=1.0.1
|
PKG_VERSION:=1.0.1
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=$(PKG_NAME)
|
||||||
PKG_HASH:=6c0afd5554739365b55d86e285cf966cc3a45682fff963463364ea1f6511ca3e
|
PKG_HASH:=6c0afd5554739365b55d86e285cf966cc3a45682fff963463364ea1f6511ca3e
|
||||||
|
@ -48,9 +48,8 @@ define Package/python3-django-jsonfield
|
||||||
$(call Package/django-jsonfield/Default)
|
$(call Package/django-jsonfield/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-jsonfield:python3 \
|
+PACKAGE_python3-django-jsonfield:python3 \
|
||||||
python3-django
|
+PACKAGE_python3-django-jsonfield:python3-django1
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-jsonfield/description
|
define Package/python3-django-jsonfield/description
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-picklefield
|
PKG_NAME:=django-picklefield
|
||||||
PKG_VERSION:=1.1.0
|
PKG_VERSION:=1.1.0
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=$(PKG_NAME)
|
||||||
PKG_HASH:=ce7fee5c6558fe5dc8924993d994ccde75bb75b91cd82787cbd4c92b95a69f9c
|
PKG_HASH:=ce7fee5c6558fe5dc8924993d994ccde75bb75b91cd82787cbd4c92b95a69f9c
|
||||||
|
@ -48,9 +48,8 @@ define Package/python3-django-picklefield
|
||||||
$(call Package/django-picklefield/Default)
|
$(call Package/django-picklefield/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-picklefield:python3 \
|
+PACKAGE_python3-django-picklefield:python3 \
|
||||||
python3-django
|
+PACKAGE_python3-django-picklefield:python3-django1
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-picklefield/description
|
define Package/python3-django-picklefield/description
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-postoffice
|
PKG_NAME:=django-postoffice
|
||||||
PKG_VERSION:=3.1.0
|
PKG_VERSION:=3.1.0
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PYPI_NAME:=django-post-office
|
PYPI_NAME:=django-post-office
|
||||||
PYPI_SOURCE_NAME:=django-post_office
|
PYPI_SOURCE_NAME:=django-post_office
|
||||||
|
@ -51,10 +51,9 @@ define Package/python3-django-postoffice
|
||||||
$(call Package/django-postoffice/Default)
|
$(call Package/django-postoffice/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-postoffice:python3 \
|
+PACKAGE_python3-django-postoffice:python3 \
|
||||||
python3-django \
|
+PACKAGE_python3-django-postoffice:python3-django1 \
|
||||||
+PACKAGE_python3-django-postoffice:python3-django-jsonfield
|
+PACKAGE_python3-django-postoffice:python3-django-jsonfield
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-postoffice/description
|
define Package/python3-django-postoffice/description
|
||||||
|
|
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-ranged-response
|
PKG_NAME:=django-ranged-response
|
||||||
PKG_VERSION:=0.2.0
|
PKG_VERSION:=0.2.0
|
||||||
PKG_RELEASE:=6
|
PKG_RELEASE:=7
|
||||||
|
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=$(PKG_NAME)
|
||||||
PKG_HASH:=f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985
|
PKG_HASH:=f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985
|
||||||
|
@ -46,9 +46,8 @@ define Package/python3-django-ranged-response
|
||||||
$(call Package/django-ranged-response/Default)
|
$(call Package/django-ranged-response/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-ranged-response:python3 \
|
+PACKAGE_python3-django-ranged-response:python3 \
|
||||||
python3-django
|
+PACKAGE_python3-django-ranged-response:python3-django1
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-ranged-response/description
|
define Package/python3-django-ranged-response/description
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-restframework
|
PKG_NAME:=django-restframework
|
||||||
PKG_VERSION:=3.11.0
|
PKG_VERSION:=3.11.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PYPI_NAME:=djangorestframework
|
PYPI_NAME:=djangorestframework
|
||||||
PKG_HASH:=e782087823c47a26826ee5b6fa0c542968219263fb3976ec3c31edab23a4001f
|
PKG_HASH:=e782087823c47a26826ee5b6fa0c542968219263fb3976ec3c31edab23a4001f
|
||||||
|
@ -28,9 +28,8 @@ define Package/python3-django-restframework
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
TITLE:=Web APIs for Django, made easy.
|
TITLE:=Web APIs for Django, made easy.
|
||||||
URL:=https://www.django-rest-framework.org
|
URL:=https://www.django-rest-framework.org
|
||||||
DEPENDS:=+python3 python3-django
|
DEPENDS:=+python3 +django
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-restframework/description
|
define Package/python3-django-restframework/description
|
||||||
|
|
|
@ -48,10 +48,9 @@ define Package/python3-django-restframework39
|
||||||
$(call Package/django-restframework39/Default)
|
$(call Package/django-restframework39/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-restframework39:python3 \
|
+PACKAGE_python3-django-restframework39:python3 \
|
||||||
python3-django
|
+PACKAGE_python3-django-restframework39:python3-django1
|
||||||
CONFLICTS:=python3-django-restframework
|
CONFLICTS:=python3-django-restframework
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-restframework39/description
|
define Package/python3-django-restframework39/description
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-simple-captcha
|
PKG_NAME:=django-simple-captcha
|
||||||
PKG_VERSION:=0.5.12
|
PKG_VERSION:=0.5.12
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/mbi/django-simple-captcha/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/mbi/django-simple-captcha/tar.gz/v$(PKG_VERSION)?
|
||||||
|
@ -57,11 +57,10 @@ $(call Package/django-simple-captcha/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-simple-captcha:python3 \
|
+PACKAGE_python3-django-simple-captcha:python3 \
|
||||||
+PACKAGE_python3-django-simple-captcha:python3-six \
|
+PACKAGE_python3-django-simple-captcha:python3-six \
|
||||||
python3-django \
|
+PACKAGE_python3-django-simple-captcha:python3-django1 \
|
||||||
+PACKAGE_python3-django-simple-captcha:python3-pillow \
|
+PACKAGE_python3-django-simple-captcha:python3-pillow \
|
||||||
+PACKAGE_python3-django-simple-captcha:python3-django-ranged-response
|
+PACKAGE_python3-django-simple-captcha:python3-django-ranged-response
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-simple-captcha/description
|
define Package/python3-django-simple-captcha/description
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-statici18n
|
PKG_NAME:=django-statici18n
|
||||||
PKG_VERSION:=1.8.2
|
PKG_VERSION:=1.8.2
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=$(PKG_NAME)
|
||||||
PKG_HASH:=ba9eeb3c4517027922645999359f8335fbb9fea04c457123cfbd6b4a36cbeda4
|
PKG_HASH:=ba9eeb3c4517027922645999359f8335fbb9fea04c457123cfbd6b4a36cbeda4
|
||||||
|
@ -48,9 +48,8 @@ define Package/python3-django-statici18n
|
||||||
$(call Package/django-statici18n/Default)
|
$(call Package/django-statici18n/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-statici18n:python3 \
|
+PACKAGE_python3-django-statici18n:python3 \
|
||||||
python3-django
|
+PACKAGE_python3-django-statici18n:python3-django1
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-statici18n/description
|
define Package/python3-django-statici18n/description
|
||||||
|
|
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-webpack-loader
|
PKG_NAME:=django-webpack-loader
|
||||||
PKG_VERSION:=0.6.0
|
PKG_VERSION:=0.6.0
|
||||||
PKG_RELEASE:=6
|
PKG_RELEASE:=7
|
||||||
|
|
||||||
PYPI_NAME:=$(PKG_NAME)
|
PYPI_NAME:=$(PKG_NAME)
|
||||||
PKG_HASH:=60bab6b9a037a5346fad12d2a70a6bc046afb33154cf75ed640b93d3ebd5f520
|
PKG_HASH:=60bab6b9a037a5346fad12d2a70a6bc046afb33154cf75ed640b93d3ebd5f520
|
||||||
|
@ -46,9 +46,8 @@ define Package/python3-django-webpack-loader
|
||||||
$(call Package/django-webpack-loader/Default)
|
$(call Package/django-webpack-loader/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python3-django-webpack-loader:python3 \
|
+PACKAGE_python3-django-webpack-loader:python3 \
|
||||||
python3-django
|
+PACKAGE_python3-django-webpack-loader:python3-django1
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-webpack-loader/description
|
define Package/python3-django-webpack-loader/description
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django
|
PKG_NAME:=django
|
||||||
PKG_VERSION:=3.0.3
|
PKG_VERSION:=3.0.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PYPI_NAME:=Django
|
PYPI_NAME:=Django
|
||||||
PKG_HASH:=2f1ba1db8648484dd5c238fb62504777b7ad090c81c5f1fd8d5eb5ec21b5f283
|
PKG_HASH:=2f1ba1db8648484dd5c238fb62504777b7ad090c81c5f1fd8d5eb5ec21b5f283
|
||||||
|
@ -23,18 +23,15 @@ include ../pypi.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include ../python3-package.mk
|
include ../python3-package.mk
|
||||||
|
|
||||||
define Package/django/Default
|
define Package/python3-django
|
||||||
SUBMENU:=Python
|
SUBMENU:=Python
|
||||||
SECTION:=lang
|
SECTION:=lang
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
TITLE:=The web framework for perfectionists with deadlines.
|
TITLE:=The web framework for perfectionists with deadlines.
|
||||||
URL:=https://www.djangoproject.com/
|
URL:=https://www.djangoproject.com/
|
||||||
MENU:=1
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/python3-django
|
|
||||||
$(call Package/django/Default)
|
|
||||||
DEPENDS:= +python3 +python3-pytz +python3-sqlparse +python3-asgiref
|
DEPENDS:= +python3 +python3-pytz +python3-sqlparse +python3-asgiref
|
||||||
|
CONFLICTS:=python3-django1 python-django1-common
|
||||||
|
PROVIDES:=django
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django1
|
PKG_NAME:=django1
|
||||||
PKG_VERSION:=1.11.28
|
PKG_VERSION:=1.11.28
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PYPI_NAME:=Django
|
PYPI_NAME:=Django
|
||||||
PKG_HASH:=b33ce35f47f745fea6b5aa3cf3f4241069803a3712d423ac748bd673a39741eb
|
PKG_HASH:=b33ce35f47f745fea6b5aa3cf3f4241069803a3712d423ac748bd673a39741eb
|
||||||
|
@ -22,6 +22,7 @@ PKG_CPE_ID:=cpe:/a:djangoproject:django
|
||||||
include ../pypi.mk
|
include ../pypi.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include ../python-package.mk
|
include ../python-package.mk
|
||||||
|
include ../python3-package.mk
|
||||||
|
|
||||||
define Package/django1/Default
|
define Package/django1/Default
|
||||||
SUBMENU:=Python
|
SUBMENU:=Python
|
||||||
|
@ -29,27 +30,62 @@ define Package/django1/Default
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
TITLE:=The web framework for perfectionists with deadlines.
|
TITLE:=The web framework for perfectionists with deadlines.
|
||||||
URL:=https://www.djangoproject.com/
|
URL:=https://www.djangoproject.com/
|
||||||
MENU:=1
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python-django1
|
define Package/python-django1
|
||||||
$(call Package/django1/Default)
|
$(call Package/django1/Default)
|
||||||
DEPENDS:= \
|
DEPENDS:= \
|
||||||
+PACKAGE_python-django1:python \
|
+PACKAGE_python-django1:python \
|
||||||
+PACKAGE_python-django1:python-pytz
|
+PACKAGE_python-django1:python-pytz \
|
||||||
|
+PACKAGE_python-django1:python-django1-common
|
||||||
VARIANT:=python
|
VARIANT:=python
|
||||||
CONFLICTS:=python3-django
|
MENU:=1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python-django1/description
|
define Package/python-django1/description
|
||||||
The web framework for perfectionists with deadlines (LTS 1.11 series).
|
The web framework for perfectionists with deadlines (LTS 1.11 series).
|
||||||
Python2 only.
|
endef
|
||||||
|
|
||||||
|
define Package/python3-django1
|
||||||
|
$(call Package/django1/Default)
|
||||||
|
DEPENDS:= \
|
||||||
|
+PACKAGE_python3-django1:python3 \
|
||||||
|
+PACKAGE_python3-django1:python3-pytz \
|
||||||
|
+PACKAGE_python3-django1:python-django1-common
|
||||||
|
VARIANT:=python3
|
||||||
|
PROVIDES:=django
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python3-django1/description
|
||||||
|
$(call Package/python-django1/description)
|
||||||
|
.
|
||||||
|
(Variant for Python3)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python-django1-common
|
||||||
|
$(call Package/django1/Default)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/python-django1-common/description
|
||||||
|
$(call Package/python-django1/description)
|
||||||
|
.
|
||||||
|
This package contains files common to both Python 2.7 and Python 3.
|
||||||
|
endef
|
||||||
|
|
||||||
|
PyPackage/python-django1/install:=:
|
||||||
|
Py3Package/python3-django1/install:=:
|
||||||
|
|
||||||
|
define Package/python-django1-common/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) ./files/django-admin $(1)/usr/bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call PyPackage,python-django1))
|
$(eval $(call PyPackage,python-django1))
|
||||||
define Package/python-django1-src +=
|
|
||||||
|
|
||||||
MDEPENDS:=python-django1
|
|
||||||
endef
|
|
||||||
$(eval $(call BuildPackage,python-django1))
|
$(eval $(call BuildPackage,python-django1))
|
||||||
$(eval $(call BuildPackage,python-django1-src))
|
$(eval $(call BuildPackage,python-django1-src))
|
||||||
|
|
||||||
|
$(eval $(call Py3Package,python3-django1))
|
||||||
|
$(eval $(call BuildPackage,python3-django1))
|
||||||
|
$(eval $(call BuildPackage,python3-django1-src))
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,python-django1-common))
|
||||||
|
|
23
lang/python/django1/files/django-admin
Normal file
23
lang/python/django1/files/django-admin
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
shell_code=''' '
|
||||||
|
# shell code
|
||||||
|
if command -v python3.8 > /dev/null && test -e /usr/lib/python3.8/site-packages/django/bin/django-admin.pyc
|
||||||
|
then
|
||||||
|
exec python3.8 "$0" "$@"
|
||||||
|
elif command -v python2.7 > /dev/null && test -e /usr/lib/python2.7/site-packages/django/bin/django-admin.pyc
|
||||||
|
then
|
||||||
|
exec python2.7 "$0" "$@"
|
||||||
|
else
|
||||||
|
echo "Cannot find installed version of python-django1 or python3-django1." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
python_code='''
|
||||||
|
# python code
|
||||||
|
# ONLY use DOUBLE quotes <"> after this line
|
||||||
|
from django.core import management
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
management.execute_from_command_line()
|
||||||
|
|
||||||
|
# End of Python code. Do not modify this line. #'
|
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-cors-headers
|
PKG_NAME:=django-cors-headers
|
||||||
PKG_VERSION:=3.2.1
|
PKG_VERSION:=3.2.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PYPI_NAME:=django-cors-headers
|
PYPI_NAME:=django-cors-headers
|
||||||
PKG_HASH:=a5960addecc04527ab26617e51b8ed42f0adab4594b24bb0f3c33e2bd3857c3f
|
PKG_HASH:=a5960addecc04527ab26617e51b8ed42f0adab4594b24bb0f3c33e2bd3857c3f
|
||||||
|
@ -21,9 +21,8 @@ define Package/python3-django-cors-headers
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
TITLE:=Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS).
|
TITLE:=Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS).
|
||||||
URL:=https://github.com/ottoyiu/django-cors-headers
|
URL:=https://github.com/ottoyiu/django-cors-headers
|
||||||
DEPENDS:=python3-django +python3-urllib +python3-light
|
DEPENDS:=+django +python3-urllib +python3-light
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-cors-headers/description
|
define Package/python3-django-cors-headers/description
|
||||||
|
|
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=django-etesync-journal
|
PKG_NAME:=django-etesync-journal
|
||||||
PKG_VERSION:=1.2.0
|
PKG_VERSION:=1.2.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PYPI_NAME:=django-etesync-journal
|
PYPI_NAME:=django-etesync-journal
|
||||||
PKG_HASH:=1b481f592217186482be9faee686f0c132790db4177deb1f5152b73e99ac6338
|
PKG_HASH:=1b481f592217186482be9faee686f0c132790db4177deb1f5152b73e99ac6338
|
||||||
|
@ -21,9 +21,8 @@ define Package/python3-django-etesync-journal
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
TITLE:=The server side implementation of the EteSync protocol.
|
TITLE:=The server side implementation of the EteSync protocol.
|
||||||
URL:=https://www.etesync.com/
|
URL:=https://www.etesync.com/
|
||||||
DEPENDS:=python3-django +python3-django-restframework +python3-light
|
DEPENDS:=+django +python3-django-restframework +python3-light
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
MDEPENDS:=python3-django
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-django-etesync-journal/description
|
define Package/python3-django-etesync-journal/description
|
||||||
|
|
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=drf-nested-routers
|
PKG_NAME:=drf-nested-routers
|
||||||
PKG_VERSION:=0.91
|
PKG_VERSION:=0.91
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PYPI_NAME:=drf-nested-routers
|
PYPI_NAME:=drf-nested-routers
|
||||||
PKG_HASH:=46e5c3abc15c782cafafd7d75028e8f9121bbc6228e3599bbb48a3daa4585034
|
PKG_HASH:=46e5c3abc15c782cafafd7d75028e8f9121bbc6228e3599bbb48a3daa4585034
|
||||||
|
@ -21,7 +21,7 @@ define Package/python3-drf-nested-routers
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
TITLE:=Nested resources for the Django Rest Framework
|
TITLE:=Nested resources for the Django Rest Framework
|
||||||
URL:=https://github.com/alanjds/drf-nested-routers
|
URL:=https://github.com/alanjds/drf-nested-routers
|
||||||
DEPENDS:=+python3-django-restframework +python3-django +python3-light
|
DEPENDS:=+python3-django-restframework +django +python3-light
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue