summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcell Meszaros2022-06-13 14:28:11 +0200
committerMarcell Meszaros2022-06-13 14:28:59 +0200
commit65a2926c7331a93cf53d269336095c450a91fccd (patch)
tree9160e85d266d89dcbc07d751d776536abc0ab408
downloadaur-65a2926c7331a93cf53d269336095c450a91fccd.tar.gz
import python2-pytest-runner 5.2-3 from [community]
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD53
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..82a1419b48a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python2-pytest-runner
+ pkgdesc = Invoke py.test as distutils command with dependency resolution
+ pkgver = 5.2
+ pkgrel = 3
+ url = https://pypi.org/project/pytest-runner/5.2/
+ arch = any
+ license = MIT
+ makedepends = python2-pytest
+ makedepends = python2-setuptools-scm
+ depends = python2-pytest
+ source = pytest-runner-5.2.tar.gz::https://github.com/pytest-dev/pytest-runner/archive/5.2.tar.gz
+ b2sums = 0241c40b6a51c149a2e52e09fa9c16bbe26177a68c5c51f578008d79036b3bed3756fc6a8f15233030f7339b36b8a6562feb22acb65aaa44156ca1c9d8f54def
+
+pkgname = python2-pytest-runner
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..7334925ab91
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
+!*.patch
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..593a4427e44
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+
+pkgname='python2-pytest-runner'
+_name="${pkgname#python2-}"
+pkgver=5.2
+pkgrel=3
+pkgdesc='Invoke py.test as distutils command with dependency resolution'
+arch=('any')
+license=('MIT')
+url="https://pypi.org/project/${_name}/${pkgver}/"
+depends=('python2-pytest')
+makedepends=(
+ 'python2-pytest'
+ 'python2-setuptools-scm'
+)
+# # disable tests as they were only used for Python 3 and python2- dependencies for that are missing
+# checkdepends=(
+# 'python-pytest-black'
+# 'python-pytest-cov'
+# 'python-pytest-virtualenv'
+# 'python-pytest-flake8'
+# )
+_tarname="${_name}-${pkgver}"
+source=("${_tarname}.tar.gz::https://github.com/pytest-dev/pytest-runner/archive/$pkgver.tar.gz")
+# # disable tests as they were only used for Python 3 and python2- dependencies for that are missing
+# source+=("${_name}-black-fix.patch::https://github.com/pytest-dev/pytest-runner/commit/18b8fa1ace1b4ac0dbd53e14940da27c10db650d.patch")
+b2sums=('0241c40b6a51c149a2e52e09fa9c16bbe26177a68c5c51f578008d79036b3bed3756fc6a8f15233030f7339b36b8a6562feb22acb65aaa44156ca1c9d8f54def')
+
+prepare() {
+# # disable tests as they were only used for Python 3 and python2- dependencies for that are missing
+# patch -d "${_tarname}" -p1 < "${_name}-black-fix.patch" || :
+
+ export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
+}
+
+build() {
+ cd "${_tarname}"
+ python2 setup.py build
+}
+
+# # disable tests as they were only used for Python 3 and python2- dependencies for that are missing
+# check() {
+# cd "${_tarname}"
+# python setup.py egg_info
+# PYTHONPATH="${PWD}" pytest
+# }
+
+package() {
+ cd "${_tarname}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}