Skip to content

Commit

Permalink
Merge branch 'master' of ../unibz-bobo
Browse files Browse the repository at this point in the history
  • Loading branch information
j54n1n committed May 22, 2015
2 parents 45f83ae + 1c33b8e commit d64d3c4
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
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/
37 changes: 37 additions & 0 deletions PKGBUILD
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"
}
15 changes: 15 additions & 0 deletions README.md
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.

0 comments on commit d64d3c4

Please sign in to comment.