Commit graph

1123 commits

Author SHA1 Message Date
Josef Schlehofer
ffeb852e61
python3: bump PKG_RELEASE
Fixes: 85eee2d7f8 (python3: fix build when
Blake2 not enabled in OpenSSL")

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-11-21 15:19:15 +01:00
Yorkie Liu
85eee2d7f8 python3: fix build when Blake2 not enabled in OpenSSL
Refs:

- 7c20888e71
- https://bugs.python.org/issue38684

Signed-off-by: Yorkie Liu <yorkiefixer@gmail.com>
2019-11-21 18:18:14 +08:00
Peter Stadler
2519b7ebdd python3-django-cors-headers: update to verson 3.2.0
Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
2019-11-19 22:14:28 +01:00
Alexandru Ardelean
7d1772bce2 python-dateutil: bump to version 2.8.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-11-19 10:47:02 +02:00
Alexandru Ardelean
33f82a4999 python-mysqlclient: bump to version 1.4.5
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-11-19 10:46:58 +02:00
Alexandru Ardelean
5c508a83a9 django1: bump to version 1.11.26
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-11-18 16:50:41 +02:00
Rosen Penev
b91b41a71f
Merge pull request #10576 from jefferyto/python-zope-interface-4.7.1
python-zope-interface: Update to 4.7.1, refresh patch
2019-11-17 18:11:40 -08:00
Rosen Penev
e7b4695426
Merge pull request #10574 from jefferyto/python-twisted-19.10.0
python-twisted: Update to 19.10.0, refresh patches
2019-11-17 18:11:14 -08:00
Jeffery To
5e8feda04a python-zope-interface: Update to 4.7.1, refresh patch
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-11-18 04:45:58 +08:00
Jeffery To
c56770a570 python-twisted: Update to 19.10.0, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-11-18 04:33:26 +08:00
Jeffery To
b99abe8dd8 python-pyasn1: Update to 0.4.8
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-11-18 04:04:35 +08:00
Rosen Penev
a8f2fb9750
Merge pull request #10529 from BKPepe/sentry
python-sentry-sdk: Update to version 0.13.2
2019-11-12 19:14:29 -08:00
Rosen Penev
d4be80cba0
Merge pull request #10530 from BKPepe/pahomqtt
python-paho-mqtt: Update to version 1.5.0
2019-11-12 19:13:10 -08:00
Rosen Penev
323dbc4fbf
Merge pull request #10469 from peter-stadler/django-etesync-journal
django-etesync-journal: add python3 package
2019-11-12 19:08:30 -08:00
Josef Schlehofer
f8e36f9fd6
python-paho-mqtt: Update to version 1.5.0
Try to fix license according to SPDX.
Add PKG_LICENSE_FILES.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-11-11 23:07:55 +01:00
Josef Schlehofer
af39ec8a72
python-sentry-sdk: Update to version 0.13.2
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-11-11 22:45:14 +01:00
Hannu Nyman
90e91ee464
Merge pull request #10522 from cotequeiroz/requests-oathlib
phython-requests-oauthlib: bump to v1.3.0
2019-11-11 19:37:31 +02:00
Eneas U de Queiroz
03fc32571f
python-requests-oauthlib: bump to 1.3.0
- Instagram compliance fix
- Added force_querystring argument to fetch_token() method on
  OAuth2Session

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-11-11 08:18:07 -03:00
Jeffery To
5be603a836 python-six: Update to 1.13.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-11-11 18:36:14 +08:00
Peter Stadler
efe695f93d django-etesync-journal: add python3 package
This is the reusable django app that implements the server side of EteSync.
There will be another package that makes it available through Nginx using uwsgi.

Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
2019-11-08 11:10:28 +01:00
Hannu Nyman
c21b6c51a2
Merge pull request #10468 from peter-stadler/django
django: bump version to 2.2.7 and fix minor problems
2019-11-07 21:33:15 +02:00
Jeffery To
dad0415215 python: Fix filespec example in readme
While the filespec example is technically correct, the more likely
scenario is that the files to be omitted would be inside of a package
subdirectory.

This adds an example_package directory into the example to illustrate
this case.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-11-07 22:32:57 +08:00
Peter Stadler
18c99e8d07 django: bump version to 2.2.7 and fix minor problems
Add dependency on python3-sqlparse and use django-admin.py instead of django-admin as the latter depends on python3-pkg-resources.

Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
2019-11-05 15:50:03 +01:00
Rosen Penev
f095101399
Merge pull request #10374 from peter-stadler/django-cors-headers
django-cors-headers: add python3 package
2019-11-05 02:00:35 -08:00
Rosen Penev
e1af55fdf5
Merge pull request #10375 from peter-stadler/sqlparse
sqlparse: add python3 package
2019-11-05 01:59:31 -08:00
Rosen Penev
f246780450
Merge pull request #10376 from peter-stadler/drf-nested-routers
drf-nested-routers: add python3 package
2019-11-05 01:58:29 -08:00
Jeffery To
6f987b727f python: Add pypi.mk usage to readme
This adds documentation on including pypi.mk and its required/optional
variables to the Python section readme.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-11-05 03:28:12 +08:00
Jeffery To
446bc30c52 python: Remove PKG_BUILD_DIR/PKG_UNPACK sections from readme
PKG_BUILD_DIR now takes variants into account
(openwrt/openwrt@e545fac8d9), so it should
not be necessary for Python packages to set these variables anymore.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-11-05 02:20:37 +08:00
Rosen Penev
c17af1cd50
Merge pull request #10457 from jefferyto/python-cffi-1.13.2
python-cffi: Update to 1.13.2
2019-11-04 09:27:59 -08:00
Jeffery To
c21eee0df4 python-cffi: Update to 1.13.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-11-04 23:42:39 +08:00
Alexandru Ardelean
0c8b0b0bf7 python3: fix build on Ubuntu/Debian multi-arch
This issue was introduced after upgrading to 3.8.
Patch `006-remove-multi-arch-and-local-paths.patch` was dropped. It was
tested on x86, but when using the x86_64 compiler in OpenWrt, the issue is
present.

The issue seems to be about Ubuntu/Debian's multi-arch support in
Python/Python3 setup [which I forgot about]. The code runs it regardless of
whether it cross-compiles or not, and for OpenWrt, this causes issues, as
it introduces absolute include paths from the host system.

Fixes https://github.com/openwrt/packages/issues/10452

Fixes: 48277ec915 ("python3: bump to version 3.8")
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-11-04 14:10:36 +02:00
Josef Schlehofer
426ed75dbe
python-zipp: fix python-more-itertools dependency
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-11-03 13:13:12 +01:00
Jan Pavlinec
f0a79ca148
python-zipp: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-11-02 15:53:09 +01:00
Rosen Penev
c59f56e8ac
Merge pull request #10410 from ja-pa/python-py
python-py: add new package
2019-11-01 16:52:02 -07:00
Rosen Penev
7578d6e639
Merge pull request #10408 from ja-pa/python-wcwidth
python-wcwidth: add new package
2019-11-01 16:51:28 -07:00
Rosen Penev
98cd1adf7a
Merge pull request #10407 from ja-pa/python-more-itertools
python-more-itertools: add new package
2019-11-01 16:51:15 -07:00
Rosen Penev
5c204b8574
Merge pull request #10405 from ja-pa/python-pyparsing
python-pyparsing: add new package
2019-11-01 16:50:58 -07:00
Jan Pavlinec
455fe3dc03
python-pyparsing: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-11-01 12:49:18 +01:00
Jan Pavlinec
4bade3b2f7
python-more-itertools: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-11-01 12:36:38 +01:00
Jan Pavlinec
4624bf6a5d
python-wcwidth: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-11-01 11:05:03 +01:00
Jan Pavlinec
f5211510d4
python-py: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-11-01 10:52:06 +01:00
Jan Pavlinec
92398d28a5
python-atomicwrites: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-11-01 10:45:53 +01:00
Peter Stadler
9298aa6c8b django-cors-headers: add python3 package
This is a dependency for the etesync-server and is using django and urllib.

Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
2019-11-01 02:38:47 +01:00
Peter Stadler
d5a478bbe8 drf-nested-routers: add python3 package
This is a dependency of the etesync-server and uses the rest framework of django.

Edit: Remove runtests and add dependencies on python3-django and python3-light.

Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
2019-11-01 01:57:31 +01:00
Peter Stadler
14e51044d7 sqlparse: add python3 package
This is a dependency for django-cors-headers.

Install sqlformat without using pkg-resources:
Upstream uses the entry_point function to call the __main__.py script.
We copy it for avoiding the dependency on pkg_resources and full python3 in turn.

Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
2019-11-01 00:32:05 +01:00
Jeffery To
635cb1309c treewide: Use pypi.mk for Python packages
This updates all Python packages that download their source from PyPi to
use pypi.mk.

This will allow future improvements/changes to pypi.mk to affect all
relevant packages.

This also makes it easier for future Python packages to start using
pypi.mk, when it's clear how it is used in existing packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-30 23:16:18 +08:00
Rosen Penev
b266e7f5fc
Merge pull request #10387 from commodo/cffi-update
python-cffi: bump to version 1.13.1
2019-10-29 07:25:49 -07:00
Rosen Penev
b09986d286
Merge pull request #10386 from commodo/pillow-update
pillow: bump to version 6.2.1
2019-10-29 07:25:39 -07:00
Alexandru Ardelean
dff2fe2963 python-cffi: bump to version 1.13.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-10-29 11:35:37 +02:00
Alexandru Ardelean
e78f33dace pillow: bump to version 6.2.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-10-29 11:34:36 +02:00
Alexandru Ardelean
e9e687a1f1 django1: bump to version 1.11.25
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-10-29 10:52:29 +02:00
Hannu Nyman
2865853485
Merge pull request #10349 from dynasticorpheus/pytz-2019.03
python-pytz: update to 2019.03
2019-10-26 16:23:30 +03:00
Alexandru Ardelean
85887ed427
python-asn1crypto: bump to version 1.2.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-10-25 16:08:30 +02:00
Fabian Lipken
0f2cf9ebd6 python-pytz: update to 2019.03
Signed-off-by: Fabian Lipken <dynasticorpheus@gmail.com>
2019-10-24 15:30:58 +02:00
Alexandru Ardelean
c21a453ffd 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>
2019-10-24 09:13:38 -03:00
Hannu Nyman
94c344bb92
Merge pull request #10322 from jefferyto/python-2.7.17
python: Update to 2.7.17, refresh patches
2019-10-21 21:53:23 +03:00
Hannu Nyman
7a49d8a232
Merge pull request #10314 from commodo/python-3-8
python3: bump to version 3.8
2019-10-21 18:36:13 +03:00
Jeffery To
83b300aa83 python: Update to 2.7.17, refresh patches
Patches already merged and so removed:
* 011-fix-ssl-build-use-have-npn.patch
* 019-bpo-36216-Add-check-for-characters-in-netloc-that-normalize-to-separators-GH-12216.patch
* 020-bpo-36216-Only-print-test-messages-when-verbose-GH-12291.patch
* 021-2.7-bpo-35121-prefix-dot-in-domain-for-proper-subdom.patch
* 022-bpo-30458-Disallow-control-chars-in-http-URLs-GH-13315.patch
* 023-bpo-35907-Avoid-file-reading-as-disallowing-the-unnecessary-URL-scheme-in-urllib-GH-11842.patch
* 027-bpo-38243-Escape-the-server-title-of-DocXMLRPCServer.patch
* 028-bpo-34155-Dont-parse-domains-containing-GH-13079.patch

Patches no longer necessary and so removed:
* 017_lib2to3_fix_pyc_search.patch

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-21 23:30:53 +08:00
Jeffery To
1bacdd52f7 python,python3: Add PYPI_SOURCE_NAME to pypi.mk
This adds a new (optional) variable, PYPI_SOURCE_NAME, to pypi.mk.

For some PyPi packages (e.g. aiohttp_cors, click, django-compressor),
the name of the package and the source tarball name are slightly
different (usually by capitalisation or hyphen/underscore change).

This new variable is to make this difference explicit. PYPI_NAME is
meant for the "official" package name, whereas PYPI_SOURCE_NAME is meant
for the source tarball name.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-21 15:27:04 +02:00
Jeffery To
a8bf6a8bd6 python-ipaddress: Update to 1.0.23
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-21 21:10:55 +08:00
Jeffery To
46c43b29f7 python-automat: Update to 0.8.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-21 21:10:35 +08:00
Jeffery To
f2d744d31a python-attrs: Update to 19.3.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-21 21:10:04 +08:00
Alexandru Ardelean
48277ec915 python3: bump to version 3.8
This required a bit work to get working, compared to other versions. So,
some things have changed a bit more significantly.

Some highlights:
* there is no longer a pgen executable, seems this is now part of
  libpython; let's see what this means for us in the future
* blake2 hash (from OpenSSL) detection needs some fixing; will upstream
  added patch 002-fix-blake2-detection.patch
* removed all bpo patches; those should be fixed in upstream
* some needed to be manually re-applied as stuff changed:
  - 001-enable-zlib.patch  - file changed
  - 004-do-not-write-bytes-codes.patch  - file changed
  - 015-abort-on-failed-modules.patch - variable was renamed
    cross_compiling -> CROSS_COMPILING
* 017_lib2to3_fix_pyc_search.patch - the code changed, it does not seem to
     have the original problem with respect to file-extension, as there
     does not seem to be any special extension logic anymore there
* 006-remove-multi-arch-and-local-paths.patch - dropped patch; I can't
     remember the full-details of this issue; it was something with
     Debian/Ubuntu's multi-arch stuff; it was probably added maybe due to
     some overzealous (on my part) thingy caused by some weird reports,
     that I could never solve; let's have this patch dropped and see
* make package/python3/refresh to reduce fuzz for the rest

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-10-21 15:24:51 +03:00
Jeffery To
9d892e3cf8
python-cryptography: Update to 2.8
With this update, the package no longer depends on python-asn1crypto[1].

[1]: https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst#28---2019-10-16

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-21 13:41:33 +02:00
Jeffery To
141ead6bd7 python-cffi: Update to 1.13.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-21 05:19:23 +08:00
Rosen Penev
758865fa16
Merge pull request #10242 from jefferyto/pypi-mk
python,python3: Add pypi makefile
2019-10-18 13:26:37 -07:00
Jeffery To
add4c42191 python,python3: Add pypi makefile
This adds pypi.mk, which can be included in Python packages that
download their sources from PyPI, to auto-fill various PKG_* variables
based on the value of PYPI_NAME.

This makefile should be included after $(TOPDIR)/rules.mk but before
$(INCLUDE_DIR)/package.mk (and $(INCLUDE_DIR)/host-build.mk).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-19 00:16:26 +08:00
Jeffery To
5848f67e41 python-pyasn1-modules: Update to 0.2.7
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-16 02:12:51 +08:00
Rosen Penev
2dc860e24b
Merge pull request #10181 from commodo/python-simple-json-drop-tests
python[3]-simplejson: drop tests from simplejson package
2019-10-14 01:03:18 -07:00
Josef Schlehofer
fd9ebe3d70
python-sentry-sdk: Update to version 0.12.3
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-10-12 23:55:36 +02:00
Rosen Penev
96f44c5c33
Merge pull request #10182 from jefferyto/python-attrs-19.2.0
python-attrs: Update to 19.2.0
2019-10-09 12:50:07 -07:00
Rosen Penev
25d0c17dfb
Merge pull request #10187 from commodo/python-asn1crypto-update
python-asn1crypto: bump to version 1.0.1
2019-10-09 12:43:20 -07:00
Alexandru Ardelean
03f625047d python-asn1crypto: bump to version 1.0.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-10-09 13:23:28 +03:00
Alexandru Ardelean
929df778cc python-pillow: bump to version 6.2.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-10-09 11:53:46 +03:00
Jeffery To
d62dc51634 python-attrs: Update to 19.2.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-09 05:18:44 +08:00
Alexandru Ardelean
2f19a94d65 python[3]-simplejson: drop tests from simplejson package
These tests take-up a bit of space. And they aren't typically needed.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-10-08 16:53:36 +03:00
Jeffery To
a3be5cfa92 python,python3: Fix CVE-2019-16056, CVE-2019-16935
These patches address issues:
CVE-2019-16056: email.utils.parseaddr mistakenly parse an email
CVE-2019-16935: A reflected XSS in python/Lib/DocXMLRPCServer.py (for
Python 2.7)

CVE-2019-16935 was fixed for python3 in #10109

Links to Python issues:
https://bugs.python.org/issue34155
https://bugs.python.org/issue38243

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-04 23:54:46 +08:00
Jeffery To
47d6d8e514 python-simplejson: Fix python[3]-decimal dependency
simplejson depends on the decimal module[1][2]. This adds
python[3]-decimal to the package's DEPENDS.

[1]: https://github.com/simplejson/simplejson/blob/v3.16.0/simplejson/__init__.py#L110
[2]: https://github.com/simplejson/simplejson/blob/v3.16.0/simplejson/encoder.py#L7

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-04 22:40:25 +08:00
Rosen Penev
15dfcc3611
Merge pull request #10121 from BKPepe/werkzeug
Werkzeug: Update to version 0.16.0
2019-10-02 12:37:06 -07:00
Rosen Penev
0d3d4ca894
Merge pull request #10122 from BKPepe/flask
Flask: Update to version 1.1.1
2019-10-02 12:36:11 -07:00
Josef Schlehofer
1ccf2377fc
python3-maxminddb: Update to version 1.5.1
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-10-01 00:38:47 +02:00
Josef Schlehofer
19e12971b8
Flask: Update to version 1.1.1
- Change TITLE and URL to better one
- Add source package

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-10-01 00:21:42 +02:00
Josef Schlehofer
267796c316
Werkzeug: Update to version 0.16.0
- Remove PKG_BUILD_DEPENDS as it is no longer necessary.
- The Python3 is already included in DEPENDS.
- Remove PKG_BUILD_DIR and PKG_UNPACK was for dual Python version.
- Change TITLE and description
- Add source package

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-10-01 00:15:35 +02:00
Josef Schlehofer
144c8da84a
python-pyrsistent: Update to version 0.15.4
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-30 21:22:35 +02:00
Josef Schlehofer
80def9e653
python3: backport three security patches
Fixes: CVE-2019-16935

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-29 23:18:29 +02:00
Rosen Penev
014ebb2f16
Merge pull request #10083 from BKPepe/sentrysdk
python-sentry-sdk: Update to version 0.12.2
2019-09-27 12:09:09 -07:00
Richard Yu
ad9fe1b60b
python-cryptodome: update to 3.9.0
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2019-09-27 17:05:44 +08:00
Josef Schlehofer
ff106ae376
python-sentry-sdk: Update to version 0.12.2
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-26 18:21:43 +02:00
Josef Schlehofer
da51877e7f
python-urllib3: Update to version 1.25.6
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-26 11:45:40 +02:00
Jan Pavlinec
ceadbcbb64
treewide: add PKG_CPE_ID for cvescanner
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-24 13:51:22 +02:00
Alexandru Ardelean
5f9ea76e7a gunicorn: convert to Python packaging format + add Python3 variant
And splitting the gunicorn[3] binary/executable away from the
python[3]-gunicorn libraries. This was inspired from Debian packaging.

The gunicorn[3] binaries require the new `python[3]-pkg-resources`
libraries to run, which add ~1.1 MB on the [ram]disk when uncompressed.

For the Python2 variant, the `_gaiohttp.py` is dropped as it fails to
compile, so it would likely be unusable anyway:
```
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/_gaiohttp.py", line 84
    yield from self.wsgi.close()
             ^
  SyntaxError: invalid syntax

```

People around the web recommend this as well:
 https://stackoverflow.com/questions/25611140/syntax-error-installing-gunicorn
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803170
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803202

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-09-20 14:11:08 +03:00
Alexandru Ardelean
721642908c python,python3: add Py[3]Shebang functions & move outside of script
Some packages just install some Python binaries, that may need their
shebang fixed.
This change adds some utilities to help with that and try to centralize the
sed rules a bit.

It also removes the logic from the `python-package-install.sh` into the
`python-package[3].mk` files. This does 2 things:
1. It minimizes the need for the shell script to know the Python
   version 2/3
2. Makes the logic re-usable in packages; especially if the install rules
   differ a bit

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-09-20 14:10:00 +03:00
Alexandru Ardelean
ed0e77f3c3 python,python3: split python[3]-pkg-resources from setuptools
This package is required by other packages to run some binaries via
`load_entry_point`.

So, this splits this package away from setuptools.
setuptools is pretty big, akd pkg-resources is also big, but not as big.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-09-20 13:42:40 +03:00
Alexandru Ardelean
b104c56e2b python: change condition check for legacy opt for Python3
As I remember this worked.
But since `set -e` is set, I am a bit paranoid about it. In the sense that
it may fail if `ver` != 3.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-09-20 13:42:21 +03:00
Eneas U de Queiroz
acf7c540ca
python-certifi: bump to 2019.9.11
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-09-19 14:30:35 -03:00
Rosen Penev
64a02079da
django: Update to 1.11.24
Fixes a whole bunchs of CVEs:

CVE-2019-3498
CVE-2019-6975
CVE-2019-12308
CVE-2019-12781
CVE-2019-14232
CVE-2019-14233
CVE-2019-14234
CVE-2019-14235

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-09-18 14:40:47 -07:00
Karel Kočí
7bb6d72a47
python-schema: update to version 0.7.1
Signed-off-by: Karel Kočí <karel.koci@nic.cz>
2019-09-16 14:00:43 +02:00
Rosen Penev
61ccd29d37
Merge pull request #9705 from commodo/python-mysqlclient
python-mysql[client]: rename to python-mysqlclient & bump to version 1.4.4
2019-09-12 08:53:27 -07:00
Sven Eckelmann
bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00
Rosen Penev
6637feefce
Merge pull request #9885 from BKPepe/voluptuous
Voluptuous & Voluptuous Serialize: update to their latest versions
2019-09-03 12:24:24 -07:00
Rosen Penev
c64cc596e5
Merge pull request #9887 from BKPepe/sqlalchemy
python-sqlalchemy: Update to version 1.3.7
2019-09-03 11:57:13 -07:00
Rosen Penev
077ff50192
Merge pull request #9895 from BKPepe/sentry
python-sentry-sdk: Update to version 0.11.2
2019-09-03 11:56:59 -07:00
Daniel Engberg
d6e7293cb6
Merge pull request #9888 from BKPepe/slugify
python-slugify: Update to version 3.0.3
2019-09-03 08:44:30 +02:00
Jeffery To
34aa2843b7 python-pyasn1: Update to 0.4.7
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-09-03 02:50:10 +08:00
Alexandru Ardelean
817cdbd7c9 python-mysql: rename to python-mysqlclient & bump to version 1.4.4
The package on PyPi is named `mysqlclient`.
This should have been named `python-mysqlclient` from the start.
There is a `mysql` package on PyPi already but that's a different
code/package.

Doing this should avoid any future confusion.
There is no good time to do this rename; at least 19.07 has been branched
already and this can go into the next release [in a year or so].

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-09-02 15:06:28 +03:00
Josef Schlehofer
69a65de35b
python-sentry-sdk: Update to version 0.11.2
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-01 18:18:32 +02:00
Josef Schlehofer
2ee4b09760
python-sqlalchemy: Update to version 1.3.7
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-01 11:00:40 +02:00
Josef Schlehofer
d3c2ff35b5
python-slugify: Update to version 3.0.3
Change indentation in dependencies and as well in description

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-01 10:56:28 +02:00
Josef Schlehofer
3cfbdbf25b
python-yaml: Update to version 5.1.2
PKG_NAME should match the name of the folder

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-01 09:56:04 +02:00
Josef Schlehofer
af213059f5
python-voluptuous-serialize: Update to version 2.2.0
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-01 09:32:53 +02:00
Josef Schlehofer
0835e5e6dc
python-voluptuous: Update to version 0.11.7
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-01 09:32:41 +02:00
Eneas U de Queiroz
ab990af307
python-oauthlib: bump to 3.1.0
This is a feature release including improvement to OIDC and security
enhancements, as well as bugfixes.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-08-22 14:40:20 -03:00
Josef Schlehofer
4f6a727042
python-sentry-sdk: Update to version 0.11.1
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-08-21 23:41:16 +02:00
Josef Schlehofer
907287be1a
ruamel-yaml: Update to version 0.15.100
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-08-21 22:09:48 +02:00
Rosen Penev
8c49062998
Merge pull request #9757 from BKPepe/sentrysdk
python-sentry-sdk: Update to version 0.10.2
2019-08-17 11:57:15 -07:00
Jeffery To
229c23a440 python,python3: Fix host Python compilation for macOS
* Remove $$$$(pkg-config --static --libs libcrypto libssl) from
  HOST_LDFLAGS

  Having this leads to an "unknown type name 'u_int'" error on Mac.
  Removing it doesn't appear to affect Python's ability to find
  buildroot LibreSSL.

* Change -Wl,-rpath=... to -Wl,-rpath,... in HOST_LDFLAGS

  The equals sign version is not supported by the Mac linker (appears to
  be an GNU extension). The comma version is supported; -rpath and its
  argument will be separated by a space when passed to the linker.

* Add ac_cv_header_libintl_h=no to HOST_CONFIGURE_VARS for Mac

  Python on Mac doesn't expect to use libintl, but if gettext-full is
  compiled for host, it will try, leading to undefined symbol errors
  during compilation. This prevents configure from finding libintl.h.

Fixes #7171.
Fixes #9621.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-08-17 04:45:58 +08:00
Josef Schlehofer
df03098352
python-sentry-sdk: Update to version 0.10.2
Signed-off-by: Josef Schlehofer <josef.schlehofer@nic.cz>
2019-08-16 17:30:35 +02:00
Jeffery To
bc8c9e55d9 python-twisted: Update to 19.7.0, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-08-14 20:28:42 +08:00
Eneas U de Queiroz
903a6564de django-simple-captcha: bump to 0.5.12
This is a bugfix release.  Relevant to openwrt, it removes the binary
flag while opening the dictionary file.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-08-14 09:21:35 -03:00
Hannu Nyman
28b1e0134a
Merge pull request #9698 from commodo/python-ver-bumps
pytz,lxml,dateutil: bump package versions
2019-08-12 19:28:58 +03:00
Hannu Nyman
43090a3b75
Merge pull request #9696 from commodo/python-src
python-{asn1crypto,evdev,lxml}: add -src packages
2019-08-12 19:28:44 +03:00
Eneas U de Queiroz
90527d75af django: move django* packages under django submenu
This changes the python[3]-django dependencies in packages to be
non-selecting, and adds an MDEPENDS line so that the *-src packages get
placed inside the django menu as well.

Added MENU:= to the src-package definitions in python[3]-package.mk,
so it does not import that setting from the binary package.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-08-12 09:06:53 -03:00
Alexandru Ardelean
436e0ef5c4 python-{asn1crypto,evdev,lxml}: add -src packages
They seem to have become popular, so adding src packages for these as well.
Not bumping PKG_RELEASE intentionally, since these packages are new.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-08-12 10:18:29 +03:00
Alexandru Ardelean
0699a69ba1 python-dateutil: bump to version 2.8.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-08-12 09:53:27 +03:00
Alexandru Ardelean
621f5777d3 python-lxml: bump to version 4.4.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-08-12 09:50:36 +03:00
Alexandru Ardelean
16c9fcdda8 python-pytz: bump to version 2019.2
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-08-12 09:47:16 +03:00
Rosen Penev
d339cd9cff
Merge pull request #9648 from jefferyto/python-pyasn1-0.4.6
python-pyasn1: Update to 0.4.6
2019-08-04 22:50:34 -07:00
Jeffery To
0f1bcf04e5 python-pyasn1-modules: Update to 0.2.6
Requires python-pyasn1 0.4.6 (#9648).

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-08-05 04:03:36 +08:00
Jeffery To
d2f216bb5f python-pyasn1: Update to 0.4.6
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-08-05 03:41:05 +08:00
Rosen Penev
608df65a62
python: Replace utime with utimes
Optionally fixes compilation with uClibc-ng.

Based on the surrounding code, this looks like an oversight.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-07-30 23:44:43 -07:00
Rosen Penev
bc63d21dee
Merge pull request #9454 from BKPepe/markupsafe
MarkupSafe: Makefile polishing and add src package
2019-07-25 10:39:19 -07:00
Rosen Penev
ed6ea52acd
Merge pull request #9489 from BKPepe/egenix
python-egenix-mx-base: Makefile polishing
2019-07-25 10:28:45 -07:00
Josef Schlehofer
ad6ed836a5
Merge pull request #9521 from shenek/feature_python-cachelib
python: cachelib package added
2019-07-22 22:57:30 +02:00
Josef Schlehofer
41241f0f12
Merge pull request #9532 from jefferyto/python-musl-find_library
python,python3: Fix ctypes.util.find_library()
2019-07-22 15:21:34 +02:00
Josef Schlehofer
725eb84462
python: add patch for CVE-2018-20852
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-07-22 15:20:00 +02:00
Jeffery To
e14c4e5c0a python,python3: Fix ctypes.util.find_library()
Python's ctypes.util.find_library() function currently doesn't work for
musl libraries/systems[1].

This adds a patch to fix this function, based on a patch from Alpine
Linux[2].

Fixes #9448.

[1]: https://bugs.python.org/issue21622
[2]: https://git.alpinelinux.org/aports/tree/main/python2/musl-find_library.patch

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-07-22 04:42:54 +08:00
Stepan Henek
ebdeca0108
python-cachelib: package added
Signed-off-by: Stepan Henek <stepan.henek@nic.cz>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-07-21 22:31:06 +02:00
Josef Schlehofer
adaf400881
python-egenix-mx-base: Makefile polishing
Correct SPDX License Identifier

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-07-17 07:34:41 +02:00
Josef Schlehofer
2fedc207bd
python-pyrsistent: add a new package
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-07-16 15:41:17 +02:00
Josef Schlehofer
3decf75f97
python-cachetools: add a new package
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-07-16 15:40:47 +02:00
Rosen Penev
36c487aba9 python-egenix-mx-base: Clean up Makefile
The librt depends are not needed. EGLIBC is not even in the tree.

Rearranged some stuff for consistency between packages.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-07-15 11:43:25 -07:00
Josef Schlehofer
39934610fa
MarkupSafe: Makefile polishing and add src package
- Improve TITLE and Description
- Remove PKG_UNPACK as it is not necessary
- Correct LICENSE file

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-07-11 20:16:22 +02:00
Rosen Penev
18d612648c
Merge pull request #9436 from cotequeiroz/oauthlib
python-oauthlib: update to 3.0.2 (bugfix release)
2019-07-11 08:11:54 -07:00
Alexandru Ardelean
8c96971c08 django-webpack-loader: update packaging format + add python3 variant
This change also updates the maintainer email to cotequeiroz@gmail.com, as
requested on a different change.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-07-11 15:16:36 +03:00
Alexandru Ardelean
b239483365 django-statici18n: update packaging format + add python3 variant
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-07-11 15:16:36 +03:00
Alexandru Ardelean
545cff8b63 django-simple-captcha: update packaging format + add python3 variant
This change also updates the maintainer email to cotequeiroz@gmail.com, as
requested on a different change.

Also, changing here is the download URL to github's codeload, since that
one offers .tar.gz archives.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-07-11 15:16:34 +03:00
Alexandru Ardelean
70ebc7a2f4 django-ranged-response: update packaging format + add python3 variant
This change also updates the maintainer email to cotequeiroz@gmail.com, as
requested on a different change.

Not updating deps here, since that will be done in the next changeset that
will convert packages to the Python[3] packaging format.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-07-11 15:15:23 +03:00
Alexandru Ardelean
f5eb040e6b python-qrcode: update Eneas' email as per prev request
The email change was part of a previous request from a different PR series.
In this series, the change is the only thing left to do (from what the
original changeset intended to do).

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-07-11 15:10:09 +03:00
Josef Schlehofer
5fc56ba8f0
Merge pull request #8337 from BKPepe/python-qr
python-qrcode: add Python3
2019-07-11 13:51:07 +02:00
Josef Schlehofer
d9b46c2239
Merge pull request #8715 from BKPepe/pillow
pillow: update to version 6.0.0, add Python3 variant
2019-07-11 13:50:12 +02:00