django-jsonfield: Change packaged project
authorJeffery To <jeffery.to@gmail.com>
Thu, 20 Feb 2020 13:29:16 +0000 (21:29 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 13 Mar 2020 20:35:00 +0000 (04:35 +0800)
Previously, this packaged "django-jsonfield" on PyPI.

The only (in-tree) package that depends on this package is
django-postoffice.

django-post-office actually depends on "jsonfield" on PyPI.[1][2]

This changes the packaged project from "django-jsonfield" to
"jsonfield".

The version packaged here is not the latest available update, but the
last version compatible with Django 1.11 / Python 2.

[1]: https://github.com/ui/django-post_office/blob/v3.2.1/setup.py#L45
[2]: https://github.com/ui/django-post_office/issues/182

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/django-jsonfield/Makefile

index 305ab6f686d1ab9ac0235b5a95e9129d743eadcb..2ed18e8a59ded4c18177bb815f9cd73a8921b103 100644 (file)
@@ -8,14 +8,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=django-jsonfield
-PKG_VERSION:=1.0.1
-PKG_RELEASE:=6
+PKG_VERSION:=2.1.1
+PKG_RELEASE:=1
 
-PYPI_NAME:=$(PKG_NAME)
-PKG_HASH:=6c0afd5554739365b55d86e285cf966cc3a45682fff963463364ea1f6511ca3e
+PYPI_NAME:=jsonfield
+PKG_HASH:=ed7c5e1829e9453e24a8bebef1e702ffe402e6def6b326f0e0b88764c59a6dc7
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
-PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
 
 include ../pypi.mk
@@ -27,28 +27,31 @@ define Package/django-jsonfield/Default
   SUBMENU:=Python
   SECTION:=lang
   CATEGORY:=Languages
-  TITLE:=JSONField for django models
-  URL:=https://github.com/adamchainz/django-jsonfield
+  TITLE:=A reusable Django field to store validated JSON in models
+  URL:=https://github.com/rpkilby/jsonfield
 endef
 
 define Package/python-django-jsonfield
 $(call Package/django-jsonfield/Default)
   DEPENDS:= \
        +PACKAGE_python-django-jsonfield:python \
-       python-django1
+       python-django1 \
+       +PACKAGE_python-django-jsonfield:python-six
   VARIANT:=python
   MDEPENDS:=python-django1
 endef
 
 define Package/python-django-jsonfield/description
-  JSONField for django models
+  jsonfield is a reusable model field that allows you to store validated
+  JSON, automatically handling serialization to and from the database.
 endef
 
 define Package/python3-django-jsonfield
 $(call Package/django-jsonfield/Default)
   DEPENDS:= \
        +PACKAGE_python3-django-jsonfield:python3 \
-       +PACKAGE_python3-django-jsonfield:python3-django1
+       +PACKAGE_python3-django-jsonfield:python3-django1 \
+       +PACKAGE_python3-django-jsonfield:python3-six
   VARIANT:=python3
 endef