diff --git a/Dockerfile b/Dockerfile index 30feb444b..d7a227ceb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,7 +48,8 @@ RUN echo ">>>> Installing opt deps:" && \ #RUN sudo -u user python -u maintenance_scripts/pidowngrade.py python-coverage '6.5.0-5' RUN echo ">>>> Installing test deps using Pikaur itself:" && \ sudo -u user pikaur -S --noconfirm --needed --color=always iputils python-virtualenv \ - flake8 python-pylint mypy vulture bandit shellcheck python-coveralls + flake8 python-pylint mypy vulture bandit shellcheck # @TODO: python-coveralls is temporary broken +#RUN sudo -u user python -u maintenance_scripts/pidowngrade.py python-pycodestyle '2.9.1-2' # @TODO: remove it when it fixed COPY ./pikaur_test /opt/app-build/pikaur_test COPY ./maintenance_scripts /opt/app-build/maintenance_scripts/ diff --git a/Dockerfile_export b/Dockerfile_export index b69bf426d..d0e16e28c 100644 --- a/Dockerfile_export +++ b/Dockerfile_export @@ -36,8 +36,11 @@ RUN git clone https://github.com/actionless/pikaur.git /opt/app-build/ RUN echo ">>>> Starting the build:" && \ sudo -u user makepkg -fsi --noconfirm && \ rm -fr ./src/ ./pkg/ -#RUN sudo -u user python -u maintenance_scripts/pidowngrade.py python-coverage '6.5.0-5' -RUN echo ">>>> Installing test deps using Pikaur itself:" && \ - sudo -u user pikaur -S --noconfirm --mflags=--skippgpcheck --color=always python-coveralls +#RUN sudo -u user python -u maintenance_scripts/pidowngrade.py python-coverage '7.4.1-1' # up to 7.4.4 +#RUN echo ">>>> Installing test deps using Pikaur itself:" && \ +# sudo -u user pikaur -S --noconfirm --mflags=--skippgpcheck --color=always python-coveralls +# Workaround for broken coveralls: +ADD ./maintenance_scripts/coveralls_PKGBUILD ./coveralls_PKGBUILD +RUN sudo -u user pikaur -Pi --noconfirm --color=always coveralls_PKGBUILD # vim: set ft=dockerfile : diff --git a/maintenance_scripts/coveralls_PKGBUILD b/maintenance_scripts/coveralls_PKGBUILD new file mode 100644 index 000000000..eb490bb44 --- /dev/null +++ b/maintenance_scripts/coveralls_PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Luis Martinez +# Contributor: GI_Jack + +pkgname=python-coveralls +pkgver=3.3.1 +pkgrel=99 +_commit=8fb36645bf5f06466e1950a0656d86c533db1573 +pkgdesc="Python integration with coveralls.io" +url="https://github.com/thekevjames/coveralls-python" +arch=('any') +license=('MIT') +depends=('python-coverage' 'python-docopt' 'python-requests') +optdepends=('python-yaml') +makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'python-poetry') +checkdepends=('git' 'python-mock' 'python-pytest' 'python-responses') +source=( + "$pkgname::git+$url#commit=$_commit" +) + #"https://patch-diff.githubusercontent.com/raw/TheKevJames/coveralls-python/pull/340.patch" +sha256sums=( + 'SKIP' +) + #'2f1e835253a9e9d2b515b8c139a844cacf53b38b0009a3c2b09bbfa50f4c1581' + +prepare() { + cd "$pkgname" + #patch -p1 < "$srcdir/340.patch" +} + +build() { + cd "$pkgname" + python -m build --wheel --no-isolation +} + +#check() { +# cd "$pkgname" +# pytest -x +#} + +package() { + cd "$pkgname" + PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl + local _site="$(python -c 'import site; print(site.getsitepackages()[0])')" + install -d "$pkgdir/usr/share/licenses/$pkgname/" + ln -s "$_site/$_pkg-$pkgver.dist-info/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/" +} + +# vim: set ft=PKGBUILD: