summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Shalygin2019-10-25 11:08:44 +0700
committerKonstantin Shalygin2019-10-25 11:08:44 +0700
commit3b6cfcf85c1c1f1f5d48c96f618d3d11465ade22 (patch)
tree4be53276f9b0d50834f9c45fb021f5c60595220c
parente1ee4d8797112f664428ee0ffc6ce2423daf259a (diff)
downloadaur-3b6cfcf85c1c1f1f5d48c96f618d3d11465ade22.tar.gz
Bump to 2.2.1
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD46
3 files changed, 41 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c6f6ad5d5fa..947fcd4ffe3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,24 @@
-# Generated by mksrcinfo v8
-# dim. mai 21 09:04:32 UTC 2017
pkgbase = python-redmine
pkgdesc = Python library for communicating with a Redmine project management application
- pkgver = 2.0.2
+ pkgver = 2.2.1
pkgrel = 1
- url = http://python-redmine.readthedocs.org/
+ url = https://python-redmine.com/
arch = any
license = Apache
+ checkdepends = python-nose
+ checkdepends = python-mock
+ checkdepends = python-requests
+ checkdepends = python-coverage
makedepends = python
+ makedepends = python-setuptools
makedepends = python2
- options = !emptydirs
- source = https://pypi.python.org/packages/d6/6f/529c13202e2cd166c01f9984fc79ae1c28749782084b77ef5632f8385be3/python-redmine-2.0.2.tar.gz
- md5sums = 14ec968d04ae427b449d8c5ab15d174e
+ makedepends = python2-setuptools
+ source = https://github.com/maxtepkeev/python-redmine/archive/v2.2.1.tar.gz
+ sha256sums = 995e852545b4e9ae8097ad64bc758ad1464d67ed76204294553296960837680b
pkgname = python-redmine
- depends = python
depends = python-requests
pkgname = python2-redmine
- depends = python2
depends = python2-requests
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..7c6927b4669
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/*
+src/*
+*.tar.*
diff --git a/PKGBUILD b/PKGBUILD
index 192a63dd2a9..86056f04878 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,41 @@
-# Maintainer: Sebastien Leduc <sebastien@sleduc.fr>
-pkgname=('python-redmine' 'python2-redmine')
+# Maintainer: Konstantin Shalygin <k0ste@k0ste.ru>
+# Contributor: Konstantin Shalygin <k0ste@k0ste.ru>
+# Contributor: Sebastien Leduc <sebastien@sleduc.fr>
+
pkgbase='python-redmine'
-pkgver=2.0.2
+pkgname=('python-redmine' 'python2-redmine')
+pkgver=2.2.1
pkgrel=1
pkgdesc="Python library for communicating with a Redmine project management application"
arch=("any")
-url="http://python-redmine.readthedocs.org/"
+url="https://${pkgbase}.com/"
+makedepends=('python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+checkdepends=('python-nose' 'python-mock' 'python-requests' 'python-coverage')
license=('Apache')
-makedepends=('python' 'python2')
-options=(!emptydirs)
-source=("https://pypi.python.org/packages/d6/6f/529c13202e2cd166c01f9984fc79ae1c28749782084b77ef5632f8385be3/${pkgbase}-${pkgver}.tar.gz")
-md5sums=('14ec968d04ae427b449d8c5ab15d174e')
+source=("https://github.com/maxtepkeev/${pkgbase}/archive/v${pkgver}.tar.gz")
+sha256sums=('995e852545b4e9ae8097ad64bc758ad1464d67ed76204294553296960837680b')
+
+build() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ python setup.py build
+}
-prepare() {
- cp -a "${srcdir}/${pkgbase}-${pkgver}"{,-python2}
+check() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ nosetests --with-coverage --cover-erase --cover-package=redminelib
}
package_python-redmine() {
- depends=('python' 'python-requests')
- cd "$srcdir/$pkgbase-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1
+ depends=('python-requests')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ python setup.py install -O1 --root="${pkgdir}"
}
package_python2-redmine() {
- depends=('python2' 'python2-requests')
- cd "$srcdir/$pkgbase-$pkgver-python2"
- python2 setup.py install --root="$pkgdir/" --optimize=1
-}
+ depends=('python2-requests')
-# vim:set ts=2 sw=2 et:
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ python2 setup.py install -O1 --root="${pkgdir}"
+}