Commit graph

777 commits

Author SHA1 Message Date
Jeffery To
688825f37a python-setuptools,python-pip: Set pip cache dir, disable version check
This adds --cache-dir and --disable-pip-version-check options for host
pip, when "installing" target setuptools and pip.

This also changes the pip command to use $(HOST_PYTHON[3]_PIP) from
python[3]-host.mk.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-05-29 22:29:20 +08:00
Rosen Penev
10dd4f4720
Merge pull request #9060 from jefferyto/python-setuptools-reproducible
python-setuptools: Add reproducibility patches from Debian
2019-05-25 16:11:43 -07:00
Jeffery To
6bd527df2e python-chardet: Rename Python 3 script
The Python 2 and 3 versions of chardet both install a script with the
same name (/usr/bin/chardetect). This is the issue identified in #9006
(https://github.com/openwrt/packages/pull/9006#issuecomment-493709812).

This renames the Python 3 script to chardetect3.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-05-25 04:28:53 +08:00
Eneas U de Queiroz
ea781a938c python-requests-oauthlib: add python3, clean deps
Added a python3 variant, and removed python-cryptography, and pyjwt from
the dependencies.  They are required only to run one test, that is not
even being installed.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-24 13:59:55 -03:00
Jeffery To
da35e6770d python-setuptools: Add reproducibility patches from Debian
This adds the ability to patch setuptools (and pip), and adds 3
reproducibility patches from Debian[1].
(003-PKG-INFO-output-reproducible.patch addresses the issue identified
in #9039.)

The patching is not perfect, in that the patches are applied to
setuptools and pip after they have been installed, since they are
installed from wheels which are already "precompiled".

Also, patching for the host install cannot be updated in place, for
example if a patch is added or removed.

[1]: https://sources.debian.org/patches/python-setuptools/40.8.0-1/

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-05-24 13:18:09 +08:00
Rosen Penev
35c93de128
Merge pull request #9047 from cotequeiroz/python-license
python-{pip,setuptools}: add LICENSE, CPE information
2019-05-21 17:14:44 -07:00
Eneas U de Queiroz
5f447b9020
python-python3-pip: add LICENSE information
CVE id was left commented out as it is not handled by uscan.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-21 14:46:13 -03:00
Eneas U de Queiroz
bbd4930ccd
python-python3-setuptools: add LICENSE information
CVE id was left commented out as it is not handled by uscan.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-21 14:44:40 -03:00
Eneas U de Queiroz
5ea5d69ed3 openpyxl: bump to 2.6.2, add python3, fix depends
The current package does not work, due to missing dependencies, so they
are being added now, along with python3 support.

This versions brings many bugfixes, and the option to use defusedxml if
available, protecting against many xml exploits.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-21 10:53:52 -03:00
Eneas U de Queiroz
1044ca095f python-et_xmlfile: restore & update removed package
This is a dependency of the openpyxl package.

The package Makefile was reworked, and a python3 variant was added.
Maintainer was changed to Alexandru Ardelean & Eneas U de Queiroz.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-21 10:53:52 -03:00
Eneas U de Queiroz
d396d84d5d python-jdcal: restore & update removed package
This is a dependency of the openpyxl package.

The package Makefile was reworked, and a python3 variant was added.
Maintainer was changed to Alexandru Ardelean & Eneas U de Queiroz.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-21 10:53:52 -03:00
Rosen Penev
05cd0c24a4
Merge pull request #8993 from cotequeiroz/rcssmin
python-rcssmin: restore & update removed package, add depend to django-compressor
2019-05-21 01:20:09 -07:00
Rosen Penev
c552f138e0
Merge pull request #9040 from cotequeiroz/python-license
Python/python3: refresh license information
2019-05-21 00:45:49 -07:00
Rosen Penev
a505e173d6
Merge pull request #9039 from cotequeiroz/python_conditional
treewide: add PACKAGE_* DEPENDS conditionals to python packages building both variants, update README.md
2019-05-21 00:45:17 -07:00
Eneas U de Queiroz
00f90974b6
python3: refresh LICENSE information
Changed PKG_LICENSE to reflect spdx license tag, and PKG_LICENSE_FILES
to include all lincense-related files applicable to the parts of the
code we are actually using to build and/or distributing.  The
Windows-only files, and the python-bundled Tools we're not using have
been left out.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-20 18:20:43 -03:00
Eneas U de Queiroz
971b2a5218
python: refresh LICENSE information
Changed PKG_LICENSE to reflect spdx license tag, and PKG_LICENSE_FILES
to include all lincense-related files applicable to the parts of the
code we are actually using to build and/or distributing.  The
Windows-only files, and the python-bundled Tools we're not using have
been left out.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-20 18:18:23 -03:00
Eneas U de Queiroz
65009e8127
treewide: Add PACKAGE_* conds to python packages
If a package builds python & python3 variants, then the respective
PACKAGE-python* conditional DEPENDS were added, since circular
dependencies should all be resolved now.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-20 16:18:06 -03:00
Eneas U de Queiroz
36d0c59e99
python: README.md: adjust recursive dep text, misc
Adding the conditionals to DEPENDS should not cause circular
dependencies any more.  This adjusts the text to point out that it used
to be a problem, and if it happens again, one should open an issue.

Also, some spotted trivial errors were fixed.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-20 16:17:30 -03:00
Eneas U de Queiroz
016ef28dff
django-compressor: add missing dependencies.
Added python-rcssmin, and django-appconfig as dependencies, and a note
in the package help text about not having a rjsmin package, so the
jsmin (javascript) filter will not work.
Adjusted the Makefile to conform to current python-package style, and to
display the package title correctly in menuconfig.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-20 11:24:37 -03:00
Eneas U de Queiroz
ef77f9940e
python-rcssmin: restore & update removed package
This is a dependency of django-compressor.

The package Makefile was reworked, and a python3 variant was added.
Maintainer was changed to Alexandru Ardelean & Eneas U de Queiroz.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-20 11:03:54 -03:00
Eneas U de Queiroz
8b03ed3124
python-qrcode: adjust Makefile style
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-17 23:10:40 -03:00
Eneas U de Queiroz
37ebbb545e
python-oauthlib: adjust Makefile style
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-17 23:10:39 -03:00
Eneas U de Queiroz
e0a0f92eb6
python-defusedxml: adjust Makefile style
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-17 23:10:39 -03:00
Eneas U de Queiroz
436426307d
python-certifi: adjust Makefile style
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-17 23:10:39 -03:00
Eneas U de Queiroz
f33f686f40
pyjwt: adjust Makefile style
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-17 23:10:38 -03:00
Eneas U de Queiroz
4e8697e1fe
django-webpack-loader: adjust Makefile style
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-17 23:10:38 -03:00
Eneas U de Queiroz
a7308d266b
django-simple-captcha: adjust Makefile style
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-17 23:10:38 -03:00
Eneas U de Queiroz
fe71210446
django-ranged-response: adjust Makefile style
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-17 23:10:37 -03:00
Eneas U de Queiroz
65d36f0191
django-formtools: adjust Makefile style
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-17 23:10:37 -03:00
Josef Schlehofer
70be46618d
python-requests: update to version 2.22.0
Remove patch, which is included in this release

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-05-16 23:26:33 +02:00
Eneas U de Queiroz
d3f8d69711 python-defusedxml: add new package
The defusedxml package contains several Python-only workarounds and
fixes for denial of service and other vulnerabilities in Python's XML
libraries. In order to benefit from the protection you just have to
import and use the listed functions / classes from the right defusedxml
module instead of the original module.

Currently, openpyxl detects, and uses defusedxml, if installed.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-16 08:48:38 -03:00
Jeffery To
afeb7e8a78 python-pyasn1-modules: Update to 0.2.5
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-05-13 20:44:20 +08:00
Josef Schlehofer
5d2eb58aa3
Merge pull request #8807 from BKPepe/requests
python-requests: allow urllib3 1.25.x
2019-05-13 10:42:49 +02:00
Rosen Penev
61cfd69327
Merge pull request #8933 from commodo/readme-ext-feeds
lang/python/README.md: add note about use in other packages feeds
2019-05-11 12:29:32 -07:00
Daniel Golle
8849bf6fa4 Werkzeug: update to version 0.15.2
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-05-10 23:36:49 +02:00
Yousong Zhou
bb7893ed72 python-packages: strip quotes around index-url
With pip3.7, `--index-url ""` is different from absence of --index-url
argument.  Apply the same for python3 variant

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-05-10 16:49:51 +08:00
Yousong Zhou
ac66e2329d python3-packages: port from python-packages
This is largely done by suffixing "python" or "py" with "3".  The
README.md file is also copied here and we intend to maintain it
independently from its python2 counterpart.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-05-10 16:49:51 +08:00
Josef Schlehofer
8e04393a11
python-requests: polishing Makefile
Add PKG_CPE_ID, PKG_LICENSE_FILES
Reorder things in Makefile
Update URL

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-05-08 19:42:21 +02:00
Josef Schlehofer
245d3b69a4
python-requests: allow urllib3 1.25.x
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-05-08 19:42:21 +02:00
Josef Schlehofer
dad7c2eaaf
Merge pull request #8806 from BKPepe/python-urllib3
python-urllib3: update to version 1.25.2
2019-05-08 19:31:58 +02:00
Josef Schlehofer
d1b9966806
Merge pull request #8831 from BKPepe/zeroconf
python-zeroconf: update to version 0.22.0
2019-05-08 17:57:29 +02:00
Josef Schlehofer
8b9607e29c
Merge pull request #8802 from dddaniel/master
python-boto3: Add new package
2019-05-08 15:26:31 +02:00
Alexandru Ardelean
dab8f49f82 lang/python/README.md: add note about use in other packages feeds
By popular demand, via:
   https://github.com/openwrt/packages/issues/8892#issuecomment-489992926

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-05-08 14:49:04 +03:00
Daniel Danzberger
128fa745e9 python-boto3: Add new package
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2019-05-06 17:30:09 +02:00
Eneas U de Queiroz
47ba0c066c django-simple-captcha: bump to 0.5.11
This is a bugfix release.
Made some cosmetic changes to the Makefile.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-05-05 08:35:15 -03:00
Rosen Penev
6b9c6ee6ff
Merge pull request #8840 from cotequeiroz/django_pytz
django: Add pytz dependency
2019-05-03 12:49:24 -07:00
Rosen Penev
efbcf695b8
Merge pull request #8786 from commodo/readme-encodings-update
python/README.md: fix note about python[3]-codecs
2019-05-03 12:45:12 -07:00
Alexandru Ardelean
d0fcfc52a1 python/README.md: fix note about python[3]-codecs
The note was note correct when mentioning encodings vs python[3]-codecs.
This change fixes this confusion.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-05-03 22:34:51 +03:00
Jeffery To
3a036339e8 python/README: Add deprecation notice / schedule
This describes the proposal outlined in #8520, with a few
additions/modifications:

* Describes the handling of the Python 2 interpreter

* Allows for normal updates of Python 2 libraries that share the same
  Makefile as their Python 3 version

* Mass removal event has a name

Supersedes #8788.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-05-04 02:13:11 +08:00
Hannu Nyman
b57a79dd2c
Merge pull request #8760 from commodo/remove-un-needed
jdcal,et_xmlfile,rcssmin: remove un-needed python packages
2019-05-02 18:57:07 +03:00