From ad95cf3c8430f90225b628e072c35717ce86945c Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 6 Mar 2022 00:20:49 +0000 Subject: added pypi python modules --- auto/pypi.sh | 37 ++++++++++++++++++++++ repo/python/python-Jinja2.xibuild | 16 ++++++++++ repo/python/python-Pygments.xibuild | 16 ++++++++++ repo/python/python-alabaster.xibuild | 16 ++++++++++ repo/python/python-appdirs.xibuild | 16 ++++++++++ repo/python/python-babel.xibuild | 16 ++++++++++ repo/python/python-chardet.xibuild | 16 ++++++++++ repo/python/python-docutils.xibuild | 16 ++++++++++ repo/python/python-html5lib.xibuild | 16 ++++++++++ repo/python/python-imagesize.xibuild | 0 repo/python/python-jinja.xibuild | 16 ++++++++++ repo/python/python-lxml.xibuild | 0 repo/python/python-mako.xibuild | 22 +++++++++++++ repo/python/python-markupsafe.xibuild | 16 ++++++++++ repo/python/python-packaging.xibuild | 16 ++++++++++ repo/python/python-pip.xibuild | 16 ++++++++++ repo/python/python-pygments.xibuild | 16 ++++++++++ repo/python/python-pyparsing.xibuild | 16 ++++++++++ repo/python/python-pytz.xibuild | 16 ++++++++++ repo/python/python-requests.xibuild | 16 ++++++++++ repo/python/python-six.xibuild | 16 ++++++++++ repo/python/python-snowballstemmer.xibuild | 16 ++++++++++ repo/python/python-sphinx-alabaster-theme.xibuild | 16 ++++++++++ repo/python/python-sphinx.xibuild | 16 ++++++++++ repo/python/python-sphinxcontrib-applehelp.xibuild | 16 ++++++++++ repo/python/python-sphinxcontrib-devhelp.xibuild | 16 ++++++++++ repo/python/python-sphinxcontrib-htmlhelp.xibuild | 16 ++++++++++ repo/python/python-sphinxcontrib-jsmath.xibuild | 16 ++++++++++ repo/python/python-sphinxcontrib-qthelp.xibuild | 16 ++++++++++ .../python-sphinxcontrib-serializinghtml.xibuild | 16 ++++++++++ repo/python/python-urllib3.xibuild | 16 ++++++++++ repo/python/python-webencodings.xibuild | 16 ++++++++++ repo/python/python.xibuild | 33 +++++++++++++++++++ templates/pypi.xibuild | 16 ++++++++++ 34 files changed, 556 insertions(+) create mode 100755 auto/pypi.sh create mode 100644 repo/python/python-Jinja2.xibuild create mode 100644 repo/python/python-Pygments.xibuild create mode 100644 repo/python/python-alabaster.xibuild create mode 100644 repo/python/python-appdirs.xibuild create mode 100644 repo/python/python-babel.xibuild create mode 100644 repo/python/python-chardet.xibuild create mode 100644 repo/python/python-docutils.xibuild create mode 100644 repo/python/python-html5lib.xibuild create mode 100644 repo/python/python-imagesize.xibuild create mode 100644 repo/python/python-jinja.xibuild create mode 100644 repo/python/python-lxml.xibuild create mode 100644 repo/python/python-mako.xibuild create mode 100644 repo/python/python-markupsafe.xibuild create mode 100644 repo/python/python-packaging.xibuild create mode 100644 repo/python/python-pip.xibuild create mode 100644 repo/python/python-pygments.xibuild create mode 100644 repo/python/python-pyparsing.xibuild create mode 100644 repo/python/python-pytz.xibuild create mode 100644 repo/python/python-requests.xibuild create mode 100644 repo/python/python-six.xibuild create mode 100644 repo/python/python-snowballstemmer.xibuild create mode 100644 repo/python/python-sphinx-alabaster-theme.xibuild create mode 100644 repo/python/python-sphinx.xibuild create mode 100644 repo/python/python-sphinxcontrib-applehelp.xibuild create mode 100644 repo/python/python-sphinxcontrib-devhelp.xibuild create mode 100644 repo/python/python-sphinxcontrib-htmlhelp.xibuild create mode 100644 repo/python/python-sphinxcontrib-jsmath.xibuild create mode 100644 repo/python/python-sphinxcontrib-qthelp.xibuild create mode 100644 repo/python/python-sphinxcontrib-serializinghtml.xibuild create mode 100644 repo/python/python-urllib3.xibuild create mode 100644 repo/python/python-webencodings.xibuild create mode 100644 repo/python/python.xibuild create mode 100644 templates/pypi.xibuild diff --git a/auto/pypi.sh b/auto/pypi.sh new file mode 100755 index 0000000..05656f7 --- /dev/null +++ b/auto/pypi.sh @@ -0,0 +1,37 @@ +if [ $# = 0 ]; then + printf "Name of package: python-" + read name +else + name=$1 +fi + +if ! pip show $name > /dev/null; then + echo "Failed to find $name" + exit 1 +fi + +json=$(curl -SsL https://pypi.org/pypi/$name/json) +version=$(echo $json | jq -r '.info.version') +desc=$(echo $json | jq -r '.info.summary') +url=$(echo $json | jq -r '.urls[] | select((.version="1.0.3")) | .url' | grep -v "whl" | sed "s/$version/\$PKG_VER/g") +deps=$(echo $json | jq -r '.info.requires_dist | .[]' | cut -d' ' -f1 | tr '\n' ' ') +if [ ${#deps} != 0 ]; then + package_deps=$(echo $deps | sed 's/\(\w*\)/python-\1/g') + echo $package_deps +fi + +file=repo/python/python-$name.xibuild + +cat templates/pypi.xibuild | + sed "s@^SOURCE=.*@SOURCE=$url@g" | + sed "s/^PKG_VER=.*/PKG_VER=$version/g" | + sed "s/^DESC=.*/DESC=\"$desc\"/g" | + sed "s/^DEPS=.*/DEPS=\"$package_deps\"/g" > $file +echo written to $file + +if [ ${#deps} != 0 ]; then + for p in $deps; do + $0 $p + done +fi + diff --git a/repo/python/python-Jinja2.xibuild b/repo/python/python-Jinja2.xibuild new file mode 100644 index 0000000..7f69b7d --- /dev/null +++ b/repo/python/python-Jinja2.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-MarkupSafe python-Babel" + +PKG_VER=3.0.3 +SOURCE=https://files.pythonhosted.org/packages/91/a5/429efc6246119e1e3fbf562c00187d04e83e54619249eb732bb423efa6c6/Jinja2-$PKG_VER.tar.gz +DESC="A very fast and expressive template engine." + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-Pygments.xibuild b/repo/python/python-Pygments.xibuild new file mode 100644 index 0000000..d46f057 --- /dev/null +++ b/repo/python/python-Pygments.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="" + +PKG_VER=2.11.2 +SOURCE=https://files.pythonhosted.org/packages/94/9c/cb656d06950268155f46d4f6ce25d7ffc51a0da47eadf1b164bbf23b718b/Pygments-$PKG_VER.tar.gz +DESC="Pygments is a syntax highlighting package written in Python." + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-alabaster.xibuild b/repo/python/python-alabaster.xibuild new file mode 100644 index 0000000..adb94ce --- /dev/null +++ b/repo/python/python-alabaster.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="" + +PKG_VER=0.7.12 +SOURCE=https://files.pythonhosted.org/packages/cc/b4/ed8dcb0d67d5cfb7f83c4d5463a7614cb1d078ad7ae890c9143edebbf072/alabaster-$PKG_VER.tar.gz +DESC="A configurable sidebar-enabled Sphinx theme" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-appdirs.xibuild b/repo/python/python-appdirs.xibuild new file mode 100644 index 0000000..5f0d515 --- /dev/null +++ b/repo/python/python-appdirs.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python " +DEPS="" + +PKG_VER=1.4.4 +SOURCE=https://pypi.io/packages/source/a/appdirs/appdirs-$PKG_VER.tar.gz +DESC="A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-babel.xibuild b/repo/python/python-babel.xibuild new file mode 100644 index 0000000..0e9af5c --- /dev/null +++ b/repo/python/python-babel.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-pytz" + +PKG_VER=2.9.1 +SOURCE=https://files.pythonhosted.org/packages/17/e6/ec9aa6ac3d00c383a5731cc97ed7c619d3996232c977bb8326bcbb6c687e/Babel-$PKG_VER.tar.gz +DESC="Internationalization utilities" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-chardet.xibuild b/repo/python/python-chardet.xibuild new file mode 100644 index 0000000..81db06f --- /dev/null +++ b/repo/python/python-chardet.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="" + +PKG_VER=4.0.0 +SOURCE=https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-$PKG_VER.tar.gz +DESC="Universal encoding detector for Python 2 and 3" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-docutils.xibuild b/repo/python/python-docutils.xibuild new file mode 100644 index 0000000..546c14d --- /dev/null +++ b/repo/python/python-docutils.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="" + +PKG_VER=0.18.1 +SOURCE=https://files.pythonhosted.org/packages/57/b1/b880503681ea1b64df05106fc7e3c4e3801736cf63deffc6fa7fc5404cf5/docutils-$PKG_VER.tar.gz +DESC="Docutils -- Python Documentation Utilities" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-html5lib.xibuild b/repo/python/python-html5lib.xibuild new file mode 100644 index 0000000..cc89547 --- /dev/null +++ b/repo/python/python-html5lib.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-six python-webencodings python-genshi python-chardet python-lxml python-chardet python-genshi python-lxml" + +PKG_VER=1.1 +SOURCE=https://files.pythonhosted.org/packages/ac/b6/b55c3f49042f1df3dcd422b7f224f939892ee94f22abcf503a9b7339eaf2/html5lib-$PKG_VER.tar.gz +DESC="HTML parser based on the WHATWG HTML specification" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-imagesize.xibuild b/repo/python/python-imagesize.xibuild new file mode 100644 index 0000000..e69de29 diff --git a/repo/python/python-jinja.xibuild b/repo/python/python-jinja.xibuild new file mode 100644 index 0000000..35fc65f --- /dev/null +++ b/repo/python/python-jinja.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python " +DEPS="" + +PKG_VER=3.0.3 +SOURCE=https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-$PKG_VER.tar.gz +DESC="A simple pythonic template language written in Python" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-lxml.xibuild b/repo/python/python-lxml.xibuild new file mode 100644 index 0000000..e69de29 diff --git a/repo/python/python-mako.xibuild b/repo/python/python-mako.xibuild new file mode 100644 index 0000000..be10b64 --- /dev/null +++ b/repo/python/python-mako.xibuild @@ -0,0 +1,22 @@ +#!/bin/sh + +MAKEDEPS="python " +DEPS="python-markupsafe python-beaker python-setuptools" + +PKG_VER=1.1.6 +SOURCE=https://files.pythonhosted.org/packages/source/M/Mako/Mako-$PKG_VER.tar.gz +DESC="A super-fast templating language that borrows the best ideas from the existing templating languages" + +prepare() { + sed -e '/\[tool:pytest\]/a filterwarnings =\n error\n ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning' \ + -e 's/-W error//' \ + -i setup.cfg +} + +build() { + python setup.py build +} + +package () { + python3 setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-markupsafe.xibuild b/repo/python/python-markupsafe.xibuild new file mode 100644 index 0000000..b8327e6 --- /dev/null +++ b/repo/python/python-markupsafe.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python" + +PKG_VER=2.0.1 +SOURCE=https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-$PKG_VER.tar.gz +DESC="Implements a XML/HTML/XHTML Markup safe string for Python" + +build() { + python setup.py build +} + +package () { + python3 setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-packaging.xibuild b/repo/python/python-packaging.xibuild new file mode 100644 index 0000000..3dab5bf --- /dev/null +++ b/repo/python/python-packaging.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python " +DEPS="" + +PKG_VER=21.3 +SOURCE=https://github.com/pypa/packaging/archive/$PKG_VER/python-packaging-$PKG_VER.tar.gz +DESC="Core utilities for Python packages" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-pip.xibuild b/repo/python/python-pip.xibuild new file mode 100644 index 0000000..9700967 --- /dev/null +++ b/repo/python/python-pip.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="" + +PKG_VER=22.0.3 +SOURCE=https://files.pythonhosted.org/packages/88/d9/761f0b1e0551a3559afe4d34bd9bf68fc8de3292363b3775dda39b62ce84/pip-$PKG_VER.tar.gz +DESC="The PyPA recommended tool for installing Python packages." + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-pygments.xibuild b/repo/python/python-pygments.xibuild new file mode 100644 index 0000000..8a19bcd --- /dev/null +++ b/repo/python/python-pygments.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python " +DEPS="" + +PKG_VER=2.11.2 +SOURCE=https://pypi.org/packages/source/P/Pygments/Pygments-$PKG_VER.tar.gz +DESC="Python syntax highlighter" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-pyparsing.xibuild b/repo/python/python-pyparsing.xibuild new file mode 100644 index 0000000..9fa74ad --- /dev/null +++ b/repo/python/python-pyparsing.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python " +DEPS="" + +PKG_VER=3.0.1 +SOURCE=https://github.com/pyparsing/pyparsing/archive/pyparsing_$PKG_VER.tar.gz +DESC="General parsing module for Python" + +build() { + python setup.py build +} + +package () { + pytho3 setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-pytz.xibuild b/repo/python/python-pytz.xibuild new file mode 100644 index 0000000..033d5aa --- /dev/null +++ b/repo/python/python-pytz.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="" + +PKG_VER=2021.3 +SOURCE=https://files.pythonhosted.org/packages/e3/8e/1cde9d002f48a940b9d9d38820aaf444b229450c0854bdf15305ce4a3d1a/pytz-$PKG_VER.tar.gz +DESC="World timezone definitions, modern and historical" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-requests.xibuild b/repo/python/python-requests.xibuild new file mode 100644 index 0000000..db1d920 --- /dev/null +++ b/repo/python/python-requests.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-urllib3 python-certifi python-chardet python-idna python-charset-python-normalizer python-idna python-PySocks python-win-python-inet-python-pton python-chardet" + +PKG_VER=2.27.1 +SOURCE=https://files.pythonhosted.org/packages/60/f3/26ff3767f099b73e0efa138a9998da67890793bfa475d8278f84a30fec77/requests-$PKG_VER.tar.gz +DESC="Python HTTP for Humans." + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-six.xibuild b/repo/python/python-six.xibuild new file mode 100644 index 0000000..88e5251 --- /dev/null +++ b/repo/python/python-six.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="" + +PKG_VER=1.16.0 +SOURCE=https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-$PKG_VER.tar.gz +DESC="Python 2 and 3 compatibility utilities" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-snowballstemmer.xibuild b/repo/python/python-snowballstemmer.xibuild new file mode 100644 index 0000000..c857421 --- /dev/null +++ b/repo/python/python-snowballstemmer.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="" + +PKG_VER=2.2.0 +SOURCE=https://files.pythonhosted.org/packages/44/7b/af302bebf22c749c56c9c3e8ae13190b5b5db37a33d9068652e8f73b7089/snowballstemmer-$PKG_VER.tar.gz +DESC="This package provides 29 stemmers for 28 languages generated from Snowball algorithms." + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-sphinx-alabaster-theme.xibuild b/repo/python/python-sphinx-alabaster-theme.xibuild new file mode 100644 index 0000000..aaeee3b --- /dev/null +++ b/repo/python/python-sphinx-alabaster-theme.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python " +DEPS="" + +PKG_VER=0.7.12 +SOURCE=https://pypi.org/packages/source/a/alabaster/alabaster-$PKG_VER.tar.gz +DESC="Sphinx default theme" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-sphinx.xibuild b/repo/python/python-sphinx.xibuild new file mode 100644 index 0000000..538550c --- /dev/null +++ b/repo/python/python-sphinx.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-sphinxcontrib-python-applehelp python-sphinxcontrib-python-devhelp python-sphinxcontrib-python-jsmath python-sphinxcontrib-python-htmlhelp python-sphinxcontrib-python-serializinghtml python-sphinxcontrib-python-qthelp python-Jinja2 python-Pygments python-docutils python-snowballstemmer python-babel python-alabaster python-imagesize python-requests python-packaging python-importlib-python-metadata python-colorama python-sphinxcontrib-python-websupport python-flake8 python-isort python-mypy python-docutils-python-stubs python-types-python-typed-python-ast python-types-python-requests python-pytest python-pytest-python-cov python-html5lib python-cython python-typed-python-ast" + +PKG_VER=4.4.0 +SOURCE=https://files.pythonhosted.org/packages/c9/08/c2932e66460cfbc8973928d276dc82ccde2d24b365055eeda9f0afc1951e/Sphinx-$PKG_VER.tar.gz +DESC="Python documentation generator" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-sphinxcontrib-applehelp.xibuild b/repo/python/python-sphinxcontrib-applehelp.xibuild new file mode 100644 index 0000000..bcc2de5 --- /dev/null +++ b/repo/python/python-sphinxcontrib-applehelp.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-flake8 python-mypy python-docutils-python-stubs python-pytest" + +PKG_VER=1.0.2 +SOURCE=https://files.pythonhosted.org/packages/9f/01/ad9d4ebbceddbed9979ab4a89ddb78c9760e74e6757b1880f1b2760e8295/sphinxcontrib-applehelp-$PKG_VER.tar.gz +DESC="sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-sphinxcontrib-devhelp.xibuild b/repo/python/python-sphinxcontrib-devhelp.xibuild new file mode 100644 index 0000000..c623fc0 --- /dev/null +++ b/repo/python/python-sphinxcontrib-devhelp.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-flake8 python-mypy python-docutils-python-stubs python-pytest" + +PKG_VER=1.0.2 +SOURCE=https://files.pythonhosted.org/packages/98/33/dc28393f16385f722c893cb55539c641c9aaec8d1bc1c15b69ce0ac2dbb3/sphinxcontrib-devhelp-$PKG_VER.tar.gz +DESC="sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document." + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-sphinxcontrib-htmlhelp.xibuild b/repo/python/python-sphinxcontrib-htmlhelp.xibuild new file mode 100644 index 0000000..29a4a9b --- /dev/null +++ b/repo/python/python-sphinxcontrib-htmlhelp.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-flake8 python-mypy python-docutils-python-stubs python-pytest python-html5lib" + +PKG_VER=2.0.0 +SOURCE=https://files.pythonhosted.org/packages/eb/85/93464ac9bd43d248e7c74573d58a791d48c475230bcf000df2b2700b9027/sphinxcontrib-htmlhelp-$PKG_VER.tar.gz +DESC="sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-sphinxcontrib-jsmath.xibuild b/repo/python/python-sphinxcontrib-jsmath.xibuild new file mode 100644 index 0000000..3ada466 --- /dev/null +++ b/repo/python/python-sphinxcontrib-jsmath.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-pytest python-flake8 python-mypy" + +PKG_VER=1.0.1 +SOURCE=https://files.pythonhosted.org/packages/b2/e8/9ed3830aeed71f17c026a07a5097edcf44b692850ef215b161b8ad875729/sphinxcontrib-jsmath-$PKG_VER.tar.gz +DESC="A sphinx extension which renders display math in HTML via JavaScript" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-sphinxcontrib-qthelp.xibuild b/repo/python/python-sphinxcontrib-qthelp.xibuild new file mode 100644 index 0000000..b16dd94 --- /dev/null +++ b/repo/python/python-sphinxcontrib-qthelp.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-flake8 python-mypy python-docutils-python-stubs python-pytest" + +PKG_VER=1.0.3 +SOURCE=https://files.pythonhosted.org/packages/b1/8e/c4846e59f38a5f2b4a0e3b27af38f2fcf904d4bfd82095bf92de0b114ebd/sphinxcontrib-qthelp-$PKG_VER.tar.gz +DESC="sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document." + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-sphinxcontrib-serializinghtml.xibuild b/repo/python/python-sphinxcontrib-serializinghtml.xibuild new file mode 100644 index 0000000..dc5fe54 --- /dev/null +++ b/repo/python/python-sphinxcontrib-serializinghtml.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-flake8 python-mypy python-docutils-python-stubs python-pytest" + +PKG_VER=1.1.5 +SOURCE=https://files.pythonhosted.org/packages/b5/72/835d6fadb9e5d02304cf39b18f93d227cd93abd3c41ebf58e6853eeb1455/sphinxcontrib-serializinghtml-$PKG_VER.tar.gz +DESC="sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized" HTML files (json and pickle)." + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-urllib3.xibuild b/repo/python/python-urllib3.xibuild new file mode 100644 index 0000000..fc75750 --- /dev/null +++ b/repo/python/python-urllib3.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="python-brotlipy python-pyOpenSSL python-cryptography python-idna python-certifi python-ipaddress python-PySocks" + +PKG_VER=1.26.8 +SOURCE=https://files.pythonhosted.org/packages/b0/b1/7bbf5181f8e3258efae31702f5eab87d8a74a72a0aa78bc8c08c1466e243/urllib3-$PKG_VER.tar.gz +DESC="HTTP library with thread-safe connection pooling, file post, and more." + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python-webencodings.xibuild b/repo/python/python-webencodings.xibuild new file mode 100644 index 0000000..33693c3 --- /dev/null +++ b/repo/python/python-webencodings.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="" + +PKG_VER=0.5.1 +SOURCE=https://files.pythonhosted.org/packages/0b/02/ae6ceac1baeda530866a85075641cec12989bd8d31af6d5ab4a3e8c92f47/webencodings-$PKG_VER.tar.gz +DESC="Character encoding aliases for legacy web content" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} diff --git a/repo/python/python.xibuild b/repo/python/python.xibuild new file mode 100644 index 0000000..4cc8ddd --- /dev/null +++ b/repo/python/python.xibuild @@ -0,0 +1,33 @@ +#!/bin/sh + + +MAKEDEPS="make autoconf automake autoconf-archive" +DEPS="bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib grep" + +PKG_VER=3.10.2 +SOURCE=https://www.python.org/ftp/python/$PKG_VER/Python-$PKG_VER.tgz +DESC="The Python development environment" + +prepare () { + rm -r Modules/expat + rm -r Modules/_ctypes/darwin* + rm -r Modules/_ctypes/libffi* +} + +build () { + CFLAGS="-flto" + autoreconf -i + GREP="/usr/bin/ggrep" ./configure --prefix=/usr \ + --enable-shared \ + --with-system-expat \ + --with-system-ffi \ + --with-ensurepip=yes \ + --enable-optimizations && + make +} + +package () { + make DESTDIR=$PKG_DEST install + ln -s /usr/bin/python3 $PKG_DEST/usr/bin/python + ln -s /usr/bin/pip3 $PKG_DEST/usr/bin/pip +} diff --git a/templates/pypi.xibuild b/templates/pypi.xibuild new file mode 100644 index 0000000..20042b3 --- /dev/null +++ b/templates/pypi.xibuild @@ -0,0 +1,16 @@ +#!/bin/sh + +MAKEDEPS="python" +DEPS="" + +PKG_VER=%version% +SOURCE=%url% +DESC="%desc%" + +build() { + python setup.py build +} + +package () { + python setup.py install --root="$PKG_DEST" --optimize=1 +} -- cgit v1.2.1