-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of ../unibz-bobo
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Arch Linux Build System Files | ||
*.pkg.tar.xz | ||
*.tar.gz | ||
src/ | ||
pkg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Maintainer: Julian Sanin <[email protected]> | ||
# Contributor: Daniel Morandini <[email protected]> | ||
|
||
pkgname=python-swiftclient | ||
pkgver=2.4.0 | ||
pkgrel=2 | ||
arch=('any') | ||
url=https://github.com/openstack/python-swiftclient | ||
license=('Apache') | ||
depends=('python2-pip' 'swift') | ||
source=("${url}/archive/${pkgver}.tar.gz") | ||
md5sums=('SKIP') | ||
|
||
prepare() { | ||
find "${pkgname}-${pkgver}" -type f -exec \ | ||
sed -ri 's:^#!/usr/bin/(env )?python$:&2:' '{}' \; | ||
} | ||
|
||
build() { | ||
cd "${pkgname}-${pkgver}/" | ||
python2 setup.py build | ||
} | ||
|
||
package() { | ||
cd "${pkgname}-${pkgver}/" | ||
python2 setup.py install \ | ||
--root="${pkgdir}" \ | ||
--prefix=/usr \ | ||
--optimize=1 \ | ||
--skip-build | ||
python2 -m pip install -r requirements.txt \ | ||
--upgrade \ | ||
--root="${pkgdir}" \ | ||
--install-option='--prefix=/usr' \ | ||
--install-option='--optimize=1' | ||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Python bindings to the OpenStack Object Storage API | ||
=================================================== | ||
|
||
This is a python client for the Swift API. There's a Python API (the | ||
`swiftclient` module), and a command-line script (`swift`). | ||
|
||
You can find the [documentation online](http://docs.openstack.org/developer/python-swiftclient). | ||
|
||
Development takes place via the usual OpenStack processes as outlined | ||
in the [OpenStack wiki](http://docs.openstack.org/infra/manual/developers.html). | ||
The master repository is on [GitHub](https://github.com/openstack/python-swiftclient). | ||
|
||
This code is based on original the client previously included with | ||
[OpenStack's swift](https://github.com/openstack/swift). The python-swiftclient is licensed under the | ||
Apache License like the rest of OpenStack. |