~sircmpwn/alpine-aports (mirror)

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
10 2

[PATCH 1/3] testing/py3-blurhash: new aport

Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Details
Message ID
<20220624033616.8252-1-contact@hacktivis.me>
DKIM signature
pass
Download raw message
Patch: +39 -0
---
 testing/py3-blurhash/APKBUILD | 39 +++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 testing/py3-blurhash/APKBUILD

diff --git a/testing/py3-blurhash/APKBUILD b/testing/py3-blurhash/APKBUILD
new file mode 100644
index 0000000000..7650f5a5a8
--- /dev/null
+++ b/testing/py3-blurhash/APKBUILD
@@ -0,0 +1,39 @@
# Contributor: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
pkgname=py3-blurhash
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=blurhash
pkgver=1.1.4
pkgrel=0
pkgdesc="Pure-Python implementation of the blurhash algorithm."
url="http://packages.python.org/pypi/blurhash"
arch="noarch"
license="MIT"
depends="python3"
#checkdepends="python3-dev py3-pytest cmd:pytest py3-pillow py3-numpy"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/02/96/363eae896ec6a699dfc63f19f9b857c09294fe4d791198f002baa495fc4e/blurhash-1.1.4.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# No tests in the pypi tarball, no git tags
	# https://github.com/halcy/blurhash-python/issues/4
	# python3 setup.py test
	:
}

package() {
	PYTHONPATH=$pkgdir`python3 -c "import site; print(site.getsitepackages()[0])"` \
	python3 setup.py install \
		--prefix=/usr \
		--root="$pkgdir" \
		--single-version-externally-managed
}

sha512sums="
eacef78927a1299bec19f73709435b1be55797273888e7856bbfd46d2aa1afa02f54505c15b76dcd6bd15a6817da0171aa412570c33c7ad487bfe10940ef3fd6  blurhash-1.1.4.tar.gz
"
-- 
2.35.1

[PATCH 3/3] testing/py3-mastodon.py: new aport

Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Details
Message ID
<20220624033616.8252-3-contact@hacktivis.me>
In-Reply-To
<20220624033616.8252-1-contact@hacktivis.me> (view parent)
DKIM signature
pass
Download raw message
Patch: +35 -0
---
 testing/py3-mastodon.py/APKBUILD | 35 ++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 testing/py3-mastodon.py/APKBUILD

diff --git a/testing/py3-mastodon.py/APKBUILD b/testing/py3-mastodon.py/APKBUILD
new file mode 100644
index 0000000000..acac9cadca
--- /dev/null
+++ b/testing/py3-mastodon.py/APKBUILD
@@ -0,0 +1,35 @@
# Contributor: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
pkgname=py3-mastodon.py
_pkgreal=Mastodon.py
pkgver=1.5.1
pkgrel=0
pkgdesc="Python wrapper for the Mastodon API"
url="http://packages.python.org/pypi/Mastodon.py"
arch="noarch"
license="MIT"
depends="python3 py3-requests py3-dateutil py3-six py3-tz py3-magic py3-decorator py3-http-ece py3-cryptography py3-blurhash"
checkdepends="python3-dev py3-pytest py3-pytest-runner py3-pytest-cov py3-vcrpy py3-pytest-vcr py3-pytest-mock py3-requests-mock"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/0b/cf/7db7cd302c747f2f10a6037a220f6a72ac3a3c15862aee4ea8d7c64a2645/Mastodon.py-1.5.1.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	PYTHONPATH=$pkgdir`python3 -c "import site; print(site.getsitepackages()[0])"` \
	python3 setup.py install \
		--prefix=/usr \
		--root="$pkgdir" \
		--single-version-externally-managed
}

sha512sums="
0c1a27b6cfcb4a197614100ffdb40ff8224162c0029598eadebdfa8984fe30519d3b163265d6f198e4a563c0e6a8bf68cafb69938f1a4768724a02f4f6971fa3  Mastodon.py-1.5.1.tar.gz
"
-- 
2.35.1

[PATCH 2/3] testing/py3-http-ece: new aport

Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Details
Message ID
<20220624033616.8252-2-contact@hacktivis.me>
In-Reply-To
<20220624033616.8252-1-contact@hacktivis.me> (view parent)
DKIM signature
pass
Download raw message
Patch: +39 -0
---
 testing/py3-http-ece/APKBUILD | 39 +++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 testing/py3-http-ece/APKBUILD

diff --git a/testing/py3-http-ece/APKBUILD b/testing/py3-http-ece/APKBUILD
new file mode 100644
index 0000000000..3bfe9d755f
--- /dev/null
+++ b/testing/py3-http-ece/APKBUILD
@@ -0,0 +1,39 @@
# Contributor: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
pkgname=py3-http-ece
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=http_ece
pkgver=1.1.0
pkgrel=0
pkgdesc="Encrypted Content Encoding for HTTP"
provides=""
replaces=""
url="http://packages.python.org/pypi/http-ece"
arch="noarch"
license="MIT"
depends="python3 py3-cryptography"
checkdepends="python3-dev py3-nose py3-coverage"
makedepends="py3-setuptools"
subpackages=""
source="https://files.pythonhosted.org/packages/2b/1a/60ccc29fccd4789b7cada188b114185e8a5d63aba0d93262adbbe776cfe5/http_ece-1.1.0.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	PYTHONPATH=$pkgdir`python3 -c "import site; print(site.getsitepackages()[0])"` \
	python3 setup.py install \
		--prefix=/usr \
		--root="$pkgdir" \
		--single-version-externally-managed
}

sha512sums="
ff99cc3aedea325b7aae9c4a800bb58d8f56f86a6d72450d9212113c9d0fdff30c227b7816ec2a38cc9615344c4181ec8f420b4bb521e574b63ce0257a523edf  http_ece-1.1.0.tar.gz
"
-- 
2.35.1
Details
Message ID
<165604262119.985.2384165945143119769.gitlab.35633.10cdc949b1ad4a0c38169cc0c5e1581e877c48ce@listserv.local>
In-Reply-To
<20220624033616.8252-1-contact@hacktivis.me> (view parent)
DKIM signature
missing
Download raw message
```
error: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp70zf7_4n', '--quiet', 'flake8']' returned non-zero exit status 1.
```
seems it needs py3-flake8, and maybe a few more things (but you don't need to add pip)

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/35633#note_243394

Re: [PATCH 3/3] testing/py3-mastodon.py: new aport

Details
Message ID
<165604266418.985.9083210880597245649.gitlab.35633.6ce1b2c7371747b5432ffecbf267346d395f1f58@listserv.local>
In-Reply-To
<20220624033616.8252-3-contact@hacktivis.me> (view parent)
DKIM signature
missing
Download raw message
On Fri, 24 Jun 2022 05:36:16 +0200, Haelwenn (lanodan) Monnier wrote:
> +package() {
> +	PYTHONPATH=$pkgdir`python3 -c "import site; print(site.getsitepackages()[0])"` \
> +	python3 setup.py install \

ah, sadly the pypi template is quite old, and generally it's better to not use it..  

```suggestion:-1+0
	python3 setup.py install \
```

the --root works by itself here. same for the others

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/35633#note_243395

Re: [PATCH 3/3] testing/py3-mastodon.py: new aport

Details
Message ID
<165604273148.985.3590823578987765309.gitlab.35633.670f69d7351d93a5862346141a06db10a4d2c236@listserv.local>
In-Reply-To
<20220624033616.8252-3-contact@hacktivis.me> (view parent)
DKIM signature
missing
Download raw message
On Fri, 24 Jun 2022 05:36:16 +0200, Haelwenn (lanodan) Monnier wrote:
> +checkdepends="python3-dev py3-pytest py3-pytest-runner py3-pytest-cov py3-vcrpy py3-pytest-vcr py3-pytest-mock py3-requests-mock"
> +makedepends="py3-setuptools"
> +source="https://files.pythonhosted.org/packages/0b/cf/7db7cd302c747f2f10a6037a220f6a72ac3a3c15862aee4ea8d7c64a2645/Mastodon.py-1.5.1.tar.gz"

```suggestion:-0+0
source="https://files.pythonhosted.org/packages/source/M/Mastodon.py/Mastodon.py-1.5.1.tar.gz"
```

same thing with the template as the other comment; easier to just use the non-changing non-hash urls, but it doesn't generate the correct ones. and same for the others :)

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/35633#note_243396
Details
Message ID
<165604281423.985.9565760896777764468.gitlab.35633.b79de9c886be56d57dcdb559a3cfea30e29c1c03@listserv.local>
In-Reply-To
<20220624033616.8252-1-contact@hacktivis.me> (view parent)
DKIM signature
missing
Download raw message
On Fri, 24 Jun 2022 05:36:14 +0200, Haelwenn (lanodan) Monnier wrote:
> +license="MIT"
> +depends="python3"
> +#checkdepends="python3-dev py3-pytest cmd:pytest py3-pillow py3-numpy"

should leave these uncommented even if they aren't used

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/35633#note_243397

Re: [PATCH 2/3] testing/py3-http-ece: new aport

Details
Message ID
<165604282559.985.2088303017692139744.gitlab.35633.f3b4fcbd4dec51b7ad62d12a411d72a047d7fa43@listserv.local>
In-Reply-To
<20220624033616.8252-2-contact@hacktivis.me> (view parent)
DKIM signature
missing
Download raw message
On Fri, 24 Jun 2022 05:36:15 +0200, Haelwenn (lanodan) Monnier wrote:
> +checkdepends="python3-dev py3-nose py3-coverage"
> +makedepends="py3-setuptools"
> +subpackages=""

the empty variables can be removed

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/35633#note_243398

[PATCH v2 2/3] testing/py3-http-ece: new aport

Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Details
Message ID
<20220624042632.16864-2-contact@hacktivis.me>
In-Reply-To
<20220624033616.8252-3-contact@hacktivis.me> (view parent)
DKIM signature
pass
Download raw message
Patch: +35 -0
---
 testing/py3-http-ece/APKBUILD | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 testing/py3-http-ece/APKBUILD

diff --git a/testing/py3-http-ece/APKBUILD b/testing/py3-http-ece/APKBUILD
new file mode 100644
index 0000000000..33a51d8b3f
--- /dev/null
+++ b/testing/py3-http-ece/APKBUILD
@@ -0,0 +1,35 @@
# Contributor: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
pkgname=py3-http-ece
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=http_ece
pkgver=1.1.0
pkgrel=0
pkgdesc="Encrypted Content Encoding for HTTP"
url="http://packages.python.org/pypi/http-ece"
arch="noarch"
license="MIT"
depends="python3 py3-cryptography"
checkdepends="python3-dev py3-nose py3-coverage py3-mock py3-flake8"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install \
		--prefix=/usr \
		--root="$pkgdir" \
		--single-version-externally-managed
}

sha512sums="
ff99cc3aedea325b7aae9c4a800bb58d8f56f86a6d72450d9212113c9d0fdff30c227b7816ec2a38cc9615344c4181ec8f420b4bb521e574b63ce0257a523edf  http_ece-1.1.0.tar.gz
"
-- 
2.35.1

[PATCH v2 3/3] testing/py3-mastodon.py: new aport

Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Details
Message ID
<20220624042632.16864-3-contact@hacktivis.me>
In-Reply-To
<20220624033616.8252-3-contact@hacktivis.me> (view parent)
DKIM signature
pass
Download raw message
Patch: +34 -0
---
 testing/py3-mastodon.py/APKBUILD | 34 ++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 testing/py3-mastodon.py/APKBUILD

diff --git a/testing/py3-mastodon.py/APKBUILD b/testing/py3-mastodon.py/APKBUILD
new file mode 100644
index 0000000000..1a1351bac0
--- /dev/null
+++ b/testing/py3-mastodon.py/APKBUILD
@@ -0,0 +1,34 @@
# Contributor: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
pkgname=py3-mastodon.py
_pkgreal=Mastodon.py
pkgver=1.5.1
pkgrel=0
pkgdesc="Python wrapper for the Mastodon API"
url="http://packages.python.org/pypi/Mastodon.py"
arch="noarch"
license="MIT"
depends="python3 py3-requests py3-dateutil py3-six py3-tz py3-magic py3-decorator py3-http-ece py3-cryptography py3-blurhash"
checkdepends="python3-dev py3-pytest py3-pytest-runner py3-pytest-cov py3-vcrpy py3-pytest-vcr py3-pytest-mock py3-requests-mock"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install \
		--prefix=/usr \
		--root="$pkgdir" \
		--single-version-externally-managed
}

sha512sums="
0c1a27b6cfcb4a197614100ffdb40ff8224162c0029598eadebdfa8984fe30519d3b163265d6f198e4a563c0e6a8bf68cafb69938f1a4768724a02f4f6971fa3  Mastodon.py-1.5.1.tar.gz
"
-- 
2.35.1

[PATCH v2 1/3] testing/py3-blurhash: new aport

Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Details
Message ID
<20220624042632.16864-1-contact@hacktivis.me>
In-Reply-To
<20220624033616.8252-3-contact@hacktivis.me> (view parent)
DKIM signature
pass
Download raw message
Patch: +37 -0
---
 testing/py3-blurhash/APKBUILD | 37 +++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 testing/py3-blurhash/APKBUILD

diff --git a/testing/py3-blurhash/APKBUILD b/testing/py3-blurhash/APKBUILD
new file mode 100644
index 0000000000..4942dbc37f
--- /dev/null
+++ b/testing/py3-blurhash/APKBUILD
@@ -0,0 +1,37 @@
# Contributor: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
# Maintainer: Haelwenn (lanodan) Monnier <contact+alpine@hacktivis.me>
pkgname=py3-blurhash
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=blurhash
pkgver=1.1.4
pkgrel=0
pkgdesc="Pure-Python implementation of the blurhash algorithm."
url="http://packages.python.org/pypi/blurhash"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# No tests in the pypi tarball, no git tags
	# https://github.com/halcy/blurhash-python/issues/4
	# python3 setup.py test
	:
}

package() {
	python3 setup.py install \
		--prefix=/usr \
		--root="$pkgdir" \
		--single-version-externally-managed
}

sha512sums="
eacef78927a1299bec19f73709435b1be55797273888e7856bbfd46d2aa1afa02f54505c15b76dcd6bd15a6817da0171aa412570c33c7ad487bfe10940ef3fd6  blurhash-1.1.4.tar.gz
"
-- 
2.35.1
Reply to thread Export thread (mbox)