Commit Graph

213 Commits

Author SHA1 Message Date
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Paulo Costa 0141c529b0 python-evdev: new package
This build script supports both Python 2.x (python-evdev) and 3.x (python3-evdev)

From the README:

This package provides bindings to the generic input event interface in Linux.
The evdev interface serves the purpose of passing events generated in the kernel
directly to userspace through character devices that are typically located in /dev/input/.

This package also comes with bindings to uinput, the userspace input subsystem.
Uinput allows userspace programs to create and handle input devices that can inject
events directly into the input subsystem.

Signed-off-by: Paulo Costa <me@paulo.costa.nom.br>
2017-08-18 16:43:56 -03:00
Daniel Golle 1b6e716edb python-gnupg: switch to python-gnupg 0.4.1
Aparently there are two python gnupg wrappers around
https://pypi.python.org/pypi/python-gnupg/
and
https://pypi.python.org/pypi/gnupg/

We used to package the latter, now we switched to the prior.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-08-14 18:59:13 +02:00
Alexandru Ardelean 439b0939fc python-pyopenssl: bump to 17.2.0 ; add python3 variant ; add myself co-maintainer
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-08-13 17:11:32 +03:00
Alexandru Ardelean d062793042 python-cryptography: bump to version 2.0.3
The dependency has changed from needing `pyasn1`
to needing `asn1crypto`.
Oh well...

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-08-11 17:09:15 +03:00
Alexandru Ardelean fae2b22537 python-asn1crypto: add new package (needed for python-cryptography)
Unfortunately python-cryptography (after version 2.0.<something>)
decided to replace `pyasn1` with `asn1crypto`.

Unfortunately `pyasn1` is needed for another package,
so it can't be dropped just yet.
Not sure if dropping it would bother people.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-08-11 17:09:15 +03:00
Alexandru Ardelean 70381b8d67 pyasn1-modules: bump to version 0.0.11 ; add python3 variant ; add myself as maintainer
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-08-11 16:31:52 +03:00
Alexandru Ardelean 4cf90c157a python-pyasn1: bump to version 0.3.2
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-08-11 15:55:31 +03:00
Alexandru Ardelean d7fe1c624f python,python3: fix opkg collisions with -src packages
Fixes:
 https://github.com/openwrt/packages/issues/4681

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-08-08 23:52:40 +03:00
Alexandru Ardelean 6cbed9fe15 python-cryptography: bump to version 1.9 and add python3 variant
And add myself as 2nd maintainer.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-27 14:07:51 +03:00
Alexandru Ardelean b6ba77b289 python-cffi: install host-side via pip + add myself 2nd maintainer
python-cryptography needs this dep to build
the sources.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-27 14:07:39 +03:00
Alexandru Ardelean 8291361cc7 python-idna: bump to version 2.5 and add python3 variant
And add myself as 2nd maintainer.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-27 14:05:48 +03:00
Alexandru Ardelean 990ddfffe2 python-pyasn1: bump to version 0.2.3 and add python3 variant
And add myself as 2nd maintainer.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-27 14:05:03 +03:00
Alexandru Ardelean b61864cdce python-six: add python3-six variant + add myself as 2nd maintainer
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-27 14:04:13 +03:00
Alexandru Ardelean 5986c5f5cd python3: refresh patches `make package/python3/refresh` cmd
This was a bit overdue.
I did not know about this methodology.
Reduces patch fuzz.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-26 23:56:51 +03:00
Alexandru Ardelean 1660549e92 python: refresh patches `make package/python/refresh` cmd
This was a bit overdue.
I did not know about this methodology.
Reduces patch fuzz.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-26 23:56:14 +03:00
Hannu Nyman eaac2b03b0 Merge pull request #4601 from commodo/python-cffi-upgrade
python-cffi: upgrade to 1.10.0 (together with dependencies)
2017-07-25 09:49:15 +03:00
Alexandru Ardelean 77bf1f09ad python3: upgrade to version 3.6.2
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-24 13:57:54 +03:00
Alexandru Ardelean 2ac7e0b6c8 python-cffi: bump to version 1.10.0
And drop the host-build.
This was needed, simply to cross-build the package.

I'm not a religious man, but "praise the lord" for
dropping this :D

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-19 16:55:18 +03:00
Alexandru Ardelean 69a86dbb88 python-pycparser: bump to version 2.17 and drop host-build
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-19 16:51:38 +03:00
Alexandru Ardelean 4bec8be130 python-ply: bump to version 3.10 and drop the host-build
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-19 16:51:38 +03:00
Alexandru Ardelean 612c53fc6c python,python3: add host python pip install support
To install Python packages host side, that
may be needed for a build.

The intent, is to try to reduce host-side Python
packages being installed via LEDE/OpenWrt build system.
Because those seem like a pain to maintain.

The idea is adapted from Yousong's `python-packages`
package.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-19 16:50:25 +03:00
Alexandru Ardelean 93a6545591 python,python3: drop HostPy/Compile/Default rules
Not used, and will not be used.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-19 16:50:25 +03:00
Alexandru Ardelean 0df253cc04 python,python3: drop PKG_MD5SUM fields ; will use only PKG_HASH
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-19 16:50:25 +03:00
Alexandru Ardelean 84202f17e1 python,python3: remove multi-arch support, and /usr/local paths
This should hopefully reduce weird behaviour caused
by the host system.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-19 16:50:25 +03:00
Alexandru Ardelean e066fdaf11 python,python3: handle install script errors better
Depending on execution order the `python-package-install.sh`
script would return a non-zero err code.

So, this enforces that all commands in the script
don't fail (via the `set -e` directive).

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-19 16:50:25 +03:00
Daniel Golle 7a2623d12d pyodbc: use WORDS_BIGENDIAN instead of OS-specific defines
Python provides the WORDS_BIGENDIAN macro, use it to figure out the
native endian of the host.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-17 14:36:48 +02:00
Daniel Golle 667674731f pyodbc: really fix endianess of SQL_WCHAR
auto-endian auf UTF-16 doesn't work with all drivers, some fail to
interpret the byte-order-marking. Hence explicitely use UTF16BE on
big-endian systems and UTF16LE otherwise.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-16 11:58:31 +02:00
Daniel Golle 7524d8558a Flask: add package
Flask is a microframework for Python based on Werkzeug, Jinja 2 and
good intentions. And before you ask: It.s BSD licensed!

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-14 17:09:30 +02:00
Daniel Golle 30c7c71e3f python: Werkzeug: add package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-14 17:00:58 +02:00
Daniel Golle fb8dc3ffd4 python: click: add package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-14 17:00:58 +02:00
Daniel Golle 4feb91a915 python: itsdangerous: add package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-14 17:00:58 +02:00
Daniel Golle 7772c9e10b python: MarkupSafe: add package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-14 17:00:58 +02:00
Daniel Golle 7d65ecb3e7 python: Jinja2: add package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-14 17:00:58 +02:00
Daniel Golle 7b53052f4e
pyodbc: assume SQL_C_WCHAR is native endian
Bump PKG_REV and remove obsolete PKG_MD5SUM while at it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-14 16:50:06 +02:00
Daniel Golle 80cd2bb8b7 python-yaml: update source and build for python3
Update source to version 3.12 and build for both, python and python3.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-14 15:59:13 +02:00
Hannu Nyman 3c29561888 Merge pull request #4558 from commodo/python-cleanup1
python,python3: rename PyBuild/Compile rules & remove .egg-info from packages
2017-07-09 21:04:38 +03:00
Daniel Golle ac5ddd96e5 python-gnupg: add package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-08 21:32:53 +02:00
Daniel Golle 1ae46e7de2 Merge pull request #4559 from commodo/python-pyodbc-fix
pyodbc: fix python-pyodbc variant ; wasn't working
2017-07-07 18:54:16 +02:00
Alexandru Ardelean 316b41e856 pyodbc: fix python-pyodbc variant ; wasn't working
Python3 variant was working fine.

Also add add PACKAGE_python-pyodbc conditional depend for python packages

Otherwise, both Python & Python3 interpreters get built,
even tho only one variant is selected.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-07 18:14:22 +03:00
Alexandru Ardelean f9dddb6bb0 python-lxml: override PyBuild/Compile & Py3Build/Compile rules
And depend on python-light only if python-lxml is selected.
Same thing for python3-lxml.

Otherwise, this builds both Python & Python3 intepreters.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-07 18:07:10 +03:00
Alexandru Ardelean 4333d1dcbf python,python3: remove .egginfo directories
They don't seem needed, and makes packages a bit smaller

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-07 18:07:10 +03:00
Alexandru Ardelean 8db8c927ed python,python3: define PyBuild/Compile & Py3Build/Compile
Similar to LEDE/OpenWrt's Build/Compile/Default rule,
and other similarities like this.

This should allow Python packages to define
PyBuild/Compile rules to do specific stuff per
package.

The advantage of using these (over just overriding
Build/Compile) is the VARIANT mechanism that is
in place to support packaging both for Python & Python3.

So, PyBuild/Compile will get picked up for the Python
variant build, and Py3Build/Compile will get picked
up for the Python3 variant build.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-07 18:07:10 +03:00
Alexandru Ardelean 1588b532fb python: fix intermitent build failure
Fixes: https://github.com/openwrt/packages/issues/4548

When running parallel jobs, there are chances
that the Build/InstallDev rule may run before
the Host/Install rule and fail the build.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-06 16:49:27 +08:00
Alexandru Ardelean 3fa0c06d48 python,python3: add dependency on CONFIG_PACKAGE_ symbols for setuptools & pip
If you build python/python3 and later decide to build
python(3)-setuptools and/or python(3)-pip, the build won't
re-run without adding `CONFIG_PACKAGE_python(3)-setuptools`
and `CONFIG_PACKAGE_python(3)-pip`.

Seems to resolve issue:
https://github.com/openwrt/packages/issues/4529

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-03 16:11:57 +03:00
Alexandru Ardelean a2b76b5403 python,python3: simplify `sed` expression for setuptools & pip
A suggestion from comment (from Philip Prindeville):
https://github.com/openwrt/packages/issues/4529#issuecomment-312518121

Avoids some escaping of slashes.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-03 16:11:52 +03:00
Alexandru Ardelean 1c54e2b0fb python,python3: fix underlinking issues with lrt (clock_gettime())
Seems it's called underlinking that's happening only
on Ubuntu 12.04 with libressl (that comes from LEDE's
tools folder).

Link here:
https://ubuntuforums.org/showthread.php?t=1870586

I'm still reading about this a bit.
Since I don't really get it.

But applying that fix (as in the link) seems to fix compiling
on Ubuntu 12.04, and tried also on 16.04 (to make sure).

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-07-03 09:28:41 +03:00
Daniel Golle 1aca235d44
python-pyodbc: add package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-01 19:46:55 +02:00
Alexandru Ardelean e88e35249f python,python3: install mk files in the Host/Install phase
The Build/InstallDev rule is activated only for target builds.
But if someone needs only the host Python, then
these files need to be installed in this phase, and not Build/InstallDev

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-06-29 14:04:09 +03:00
Alexandru Ardelean 7a79f2db79 python-six: rename PKG_NAME to python-six, and adapt unpack cmd for build
OVS has PKG_BUILD_DEPENDS:=python-six/host as dep.
But that doesn't seem to work, since the PKG_NAME:=six

So, this change renames the PKG_NAME to python-six, to
make it clear it's Python package.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-06-29 13:48:42 +03:00