Remove Python 2 support
This commit is contained in:
parent
c0a46e195a
commit
1be2b08433
15
.SRCINFO
15
.SRCINFO
|
@ -1,24 +1,17 @@
|
|||
pkgbase = python-django-webpack-loader
|
||||
pkgdesc = Transparently use webpack with django
|
||||
pkgver = 0.6.0
|
||||
pkgrel = 2
|
||||
pkgrel = 3
|
||||
url = https://github.com/owais/django-webpack-loader
|
||||
arch = any
|
||||
license = MIT
|
||||
makedepends = python-setuptools
|
||||
makedepends = python2-setuptools
|
||||
source = https://github.com/owais/django-webpack-loader/archive/0.6.0.tar.gz
|
||||
sha256sums = 5859d1794a08a02d2453b29a4a5c847bb2e16e415c4b9b13979f7cd90e209005
|
||||
|
||||
pkgname = python-django-webpack-loader
|
||||
depends = python-django
|
||||
depends = python-lxml
|
||||
depends = python-six
|
||||
depends = python-requests
|
||||
source = python-django-webpack-loader-0.6.0.tar.gz::https://github.com/owais/django-webpack-loader/archive/0.6.0.tar.gz
|
||||
sha256sums = 5859d1794a08a02d2453b29a4a5c847bb2e16e415c4b9b13979f7cd90e209005
|
||||
|
||||
pkgname = python2-django-webpack-loader
|
||||
depends = python2-django
|
||||
depends = python2-lxml
|
||||
depends = python2-six
|
||||
depends = python2-requests
|
||||
pkgname = python-django-webpack-loader
|
||||
|
||||
|
|
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
*.gz
|
||||
*.xz
|
||||
*.zip
|
||||
/pkg
|
||||
/src
|
37
PKGBUILD
37
PKGBUILD
|
@ -1,37 +1,24 @@
|
|||
# Maintainer: Joffrey <j-off@live.fr>
|
||||
|
||||
pkgbase='python-django-webpack-loader'
|
||||
pkgname=('python-django-webpack-loader' 'python2-django-webpack-loader')
|
||||
pkgver='0.6.0'
|
||||
pkgrel=2
|
||||
pkgname='python-django-webpack-loader'
|
||||
pkgver=0.6.0
|
||||
pkgrel=3
|
||||
pkgdesc='Transparently use webpack with django'
|
||||
arch=('any')
|
||||
url='https://github.com/owais/django-webpack-loader'
|
||||
license=('MIT')
|
||||
makedepends=('python-setuptools' 'python2-setuptools')
|
||||
source=("https://github.com/owais/django-webpack-loader/archive/$pkgver.tar.gz")
|
||||
depends=(
|
||||
'python-django'
|
||||
'python-lxml'
|
||||
'python-six'
|
||||
'python-requests'
|
||||
)
|
||||
makedepends=('python-setuptools')
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
|
||||
sha256sums=('5859d1794a08a02d2453b29a4a5c847bb2e16e415c4b9b13979f7cd90e209005')
|
||||
|
||||
package_python-django-webpack-loader() {
|
||||
depends=(
|
||||
'python-django'
|
||||
'python-lxml'
|
||||
'python-six'
|
||||
'python-requests'
|
||||
)
|
||||
package() {
|
||||
cd "$srcdir/django-webpack-loader-$pkgver"
|
||||
install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
python './setup.py' install --root="$pkgdir" --optimize=1
|
||||
}
|
||||
|
||||
package_python2-django-webpack-loader() {
|
||||
depends=(
|
||||
'python2-django'
|
||||
'python2-lxml'
|
||||
'python2-six'
|
||||
'python2-requests'
|
||||
)
|
||||
cd "$srcdir/django-webpack-loader-$pkgver"
|
||||
install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
python2 './setup.py' install --root="$pkgdir" --optimize=1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue