summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2010-07-14 13:42:35 -0500
committerMonty Taylor <mordred@inaugust.com>2010-07-14 13:42:35 -0500
commitff0b5bf4dfd6f6cc3c594a712029cd7bd259370e (patch)
tree6db5a4ef6328e768f54520841deea51abee878e6
parent2417470df2f8de540de6a24162c2bcf54c995b6f (diff)
parent5f7279f379f8bafee64c06304c50862f90cd234e (diff)
downloadswift-ff0b5bf4dfd6f6cc3c594a712029cd7bd259370e.tar.gz
Updated tree to use import_dsc/import_upstream from bzr-builddeb.
-rw-r--r--debian/changelog2
-rw-r--r--debian/compat2
-rw-r--r--debian/control46
-rwxr-xr-xdebian/rules44
-rw-r--r--setup.cfg4
-rw-r--r--setup.py17
6 files changed, 66 insertions, 49 deletions
diff --git a/debian/changelog b/debian/changelog
index 9fd459f5c..eb9c5cf15 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-swift (1.0.0) lucid; urgency=low
+swift (1.0.0-1) unstable; urgency=low
* Initial release
diff --git a/debian/compat b/debian/compat
index 7ed6ff82d..7f8f011eb 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+7
diff --git a/debian/control b/debian/control
index 331bb404d..25b1dab0d 100644
--- a/debian/control
+++ b/debian/control
@@ -2,53 +2,71 @@ Source: swift
Section: net
Priority: optional
Maintainer: Michael Barton <michael.barton@rackspace.com>
-Build-Depends: debhelper (>> 3.0.0), python (>= 2.6)
-Standards-Version: 3.7.2
+Uploaders: Monty Taylor <mordred@inaugust.com>
+Build-Depends: debhelper (>= 7),
+ python (>= 2.6),
+ python-openssl,
+ python-setuptools,
+ python-webob (>= 0.9.7.1~hg20100111-1~racklabs1),
+ python-simplejson,
+ python-xattr,
+ net-tools,
+ python-greenlet (>= 0.3.1),
+ python-eventlet (>= 0.9.8),
+ python-nose
+Standards-Version: 3.8.4
+Homepage: http://launchpad.net/swift
Package: swift
Architecture: all
-Depends: python (>= 2.6), python-openssl, python-webob (>= 0.9.7.1~hg20100111-1~racklabs1), python-simplejson, python-xattr, net-tools, python-eventlet (>= 0.9.8pre1-7)
+Depends: python (>= 2.6), net-tools, ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
Description: Swift, a distributed virtual object store (common files)
Swift, a distributed virtual object store.
.
- Homepage: https://swift.racklabs.com/trac
+ Homepage: https://launchpad.net/swift
Package: swift-proxy
Architecture: all
-Depends: swift (=${Source-Version})
+Depends: swift (=${Source-Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
Description: The swift proxy server.
The swift proxy server.
.
- Homepage: https://swift.racklabs.com/trac
+ Homepage: https://launchpad.net/swift
Package: swift-object
Architecture: all
-Depends: swift (=${Source-Version})
+Depends: swift (=${Source-Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
Description: The swift object server.
The swift object server.
.
- Homepage: https://swift.racklabs.com/trac
+ Homepage: https://launchpad.net/swift
Package: swift-container
Architecture: all
-Depends: swift (=${Source-Version})
+Depends: swift (=${Source-Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
Description: The swift container server.
The swift container server.
.
- Homepage: https://swift.racklabs.com/trac
+ Homepage: https://launchpad.net/swift
Package: swift-account
Architecture: all
-Depends: swift (=${Source-Version})
+Depends: swift (=${Source-Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
Description: The swift account server.
The swift account server.
.
- Homepage: https://swift.racklabs.com/trac
+ Homepage: https://launchpad.net/swift
Package: swift-auth
Architecture: all
-Depends: swift (=${Source-Version})
+Depends: swift (=${Source-Version}), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
Description: The swift auth server.
The swift auth server.
.
- Homepage: https://swift.racklabs.com/trac
+ Homepage: https://launchpad.net/swift
diff --git a/debian/rules b/debian/rules
index 285a4ba26..eeca56ba7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,30 +3,23 @@
# Verbose mode
export DH_VERBOSE=1
+DEB_PYTHON_SYSTEM=pysupport
+
PYTHON = "/usr/bin/python"
+build:
+ dh build
+
clean:
- dh_testdir
- dh_testroot
- $(PYTHON) setup.py clean --all
- rm -rf $(CURDIR)/debian/swift
- rm -f build-stamp install-stamp
- dh_clean
-
-build: build-stamp
-build-stamp:
- dh_testdir
- $(PYTHON) setup.py build
- touch build-stamp
-
-install: build-stamp
- dh_testdir
- dh_installdirs
+ dh clean
+ find . -name "*\.pyc" -delete
+
+install: build
+ dh install
+ mkdir -p $(CURDIR)/debian/swift/etc/swift
mkdir -p $(CURDIR)/debian/swift/usr/bin
# Copy files into binary package directories
- dh_install --sourcedir=debian/swift
- $(PYTHON) setup.py install --root $(CURDIR)/debian/swift
install -m 755 $(CURDIR)/bin/swift-init.py \
$(CURDIR)/debian/swift/usr/bin/swift-init
install -m 755 $(CURDIR)/bin/swift-ring-builder.py \
@@ -106,9 +99,10 @@ install: build-stamp
install -m 755 $(CURDIR)/bin/swift-auth-recreate-accounts.py \
$(CURDIR)/debian/swift-auth/usr/bin/swift-auth-recreate-accounts
- touch install-stamp
-binary-arch:
+binary-arch: install
+ dh binary-arch
+
binary-indep: install
dh_installinit --no-start
dh_installinit --no-start -pswift-container --init-script=swift-container-replicator
@@ -120,15 +114,7 @@ binary-indep: install
dh_installinit --no-start -pswift-object --init-script=swift-object-updater
dh_installinit --no-start -pswift-object --init-script=swift-object-replicator
dh_installinit --no-start -pswift-container --init-script=swift-container-updater
- dh_installcron
- dh_installdocs
- dh_installchangelogs
- dh_compress
- dh_fixperms
- dh_gencontrol
- dh_installdeb
- dh_md5sums
- dh_builddeb
+ dh binary-indep
binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary clean
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 000000000..839472544
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,4 @@
+[build_sphinx]
+source-dir = doc/source
+build-dir = doc/build
+all_files = 1
diff --git a/setup.py b/setup.py
index 14d911b6c..7a402653c 100644
--- a/setup.py
+++ b/setup.py
@@ -14,16 +14,25 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from distutils.core import setup
+from setuptools import setup, find_packages
+
+name='swift'
+version='1.0.0'
setup(
- name='swift',
- version='1.0.0-1',
+ name=name,
+ version=version,
description='Swift',
license='Apache License (2.0)',
author='OpenStack, LLC.',
url='https://launchpad.net/swift',
- packages=['swift', 'swift.common'],
+ packages=find_packages(exclude=['tests','bin']),
+ test_suite = 'nose.collector',
+ command_options = {
+ 'build_sphinx': {
+ 'version': ('setup.py', version),
+ }
+ },
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',