summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/.gitignore1
-rw-r--r--debian/changelog5
-rw-r--r--debian/chaussette.docs2
-rw-r--r--debian/chaussette.examples2
-rw-r--r--debian/chaussette.manpages1
-rw-r--r--debian/clean2
-rw-r--r--debian/compat1
-rw-r--r--debian/control58
-rw-r--r--debian/copyright31
-rw-r--r--debian/patches/no-unsupported-deps.patch45
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules21
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/options1
-rw-r--r--debian/watch7
15 files changed, 179 insertions, 0 deletions
diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000..845ca06
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1 @@
+.pc
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..be5626a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+chaussette (1.3.0-1) unstable; urgency=low
+
+ * initial packaging (closes: #784654)
+
+ -- David Douard <david.douard@logilab.fr> Sun, 14 Jun 2015 22:25:19 +0200
diff --git a/debian/chaussette.docs b/debian/chaussette.docs
new file mode 100644
index 0000000..ec9be4b
--- /dev/null
+++ b/debian/chaussette.docs
@@ -0,0 +1,2 @@
+README.rst
+THANKS.rst
diff --git a/debian/chaussette.examples b/debian/chaussette.examples
new file mode 100644
index 0000000..d08952d
--- /dev/null
+++ b/debian/chaussette.examples
@@ -0,0 +1,2 @@
+examples/tornadoapp.py
+examples/flaskapp.py
diff --git a/debian/chaussette.manpages b/debian/chaussette.manpages
new file mode 100644
index 0000000..9d950dd
--- /dev/null
+++ b/debian/chaussette.manpages
@@ -0,0 +1 @@
+docs/build/man/chaussette.1
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..f173b96
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+*.egg-info/*
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a9bf455
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,58 @@
+Source: chaussette
+Maintainer: David Douard <david.douard@logilab.fr>
+Section: python
+Priority: optional
+Homepage: https://chaussette.readthedocs.org
+Vcs-Git: git://github.com/circus-tent/chaussette.git -b debian
+Vcs-Browser: https://github.com/circus-tent/chaussette
+Build-Depends:
+ python-setuptools (>= 0.6b3),
+ python-all (>= 2.6.6-3),
+ python-six (>= 1.3),
+ python-paste,
+ python-pastedeploy,
+ python-nose,
+ python-socketio,
+ python-ws4py,
+ python-waitress,
+ python-tornado,
+ python-requests,
+ python-minimock,
+ python-greenlet,
+ python-eventlet,
+ python-gevent-websocket,
+ python-unittest2,
+ python-sphinx,
+ dh-python,
+ debhelper (>= 9),
+Standards-Version: 3.9.6
+X-Python-Version: >= 2.7
+
+Package: chaussette
+Architecture: all
+Depends:
+ python-six (>= 1.3),
+ python-paste,
+ python-pastedeploy,
+ ${misc:Depends},
+ ${python:Depends},
+Suggests:
+ python-nose,
+ python-socketio,
+ python-ws4py,
+ python-waitress,
+ python-tornado,
+ python-requests,
+ python-minimock,
+ python-greenlet,
+ python-eventlet,
+ python-gevent-websocket,
+ python-werkzeug,
+Description: WSGI Server for Circus
+ Chaussette is a WSGI server you can use to run your Python WSGI applications.
+ .
+ The particularity of Chaussette is that it can either bind a socket on a port
+ like any other server does or run against already opened sockets.
+ .
+ That makes Chaussette the best companion to run a WSGI or Django stack under
+ a process and socket manager, such as Circus or Supervisor.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fc3cd93
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: chaussette
+Source: https://pypi.python.org/pypi/chaussette
+Files-Excluded: examples/simple_chat
+
+Files: *
+Copyright: 2012-2015 Mozilla Foundation
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2015 David Douard, Logilab
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the full text of the Apache License, Version 2.0 can be
+ found in the file
+ `/usr/share/common-licenses/Apache-2.0'.
+
+
diff --git a/debian/patches/no-unsupported-deps.patch b/debian/patches/no-unsupported-deps.patch
new file mode 100644
index 0000000..99b6ff6
--- /dev/null
+++ b/debian/patches/no-unsupported-deps.patch
@@ -0,0 +1,45 @@
+Description: remove meinheld and bjoern dependencies
+ since they are not available as a debian package yet
+Author: David Douard <david.douard@logilab.fr>
+Bug-Debian: https://bugs.debian.org/784654
+
+Index: chaussette/chaussette/tests/test_backend.py
+===================================================================
+--- chaussette.orig/chaussette/tests/test_backend.py
++++ chaussette/chaussette/tests/test_backend.py
+@@ -8,12 +8,12 @@ from chaussette.backend import backends
+
+ IS_PYPY = hasattr(sys, 'pypy_version_info')
+
+-PY2 = ['bjoern', 'eventlet', 'fastgevent', 'gevent',
+- 'geventwebsocket', 'geventws4py', 'meinheld',
++PY2 = ['eventlet', 'fastgevent', 'gevent',
++ 'geventwebsocket', 'geventws4py',
+ 'socketio', 'tornado', 'waitress',
+ 'wsgiref']
+ PYPY = ['tornado', 'waitress', 'wsgiref']
+-PY3 = ['meinheld', 'tornado', 'waitress', 'wsgiref']
++PY3 = ['tornado', 'waitress', 'wsgiref']
+
+
+ class TestBackend(unittest.TestCase):
+Index: chaussette/setup.py
+===================================================================
+--- chaussette.orig/setup.py
++++ chaussette/setup.py
+@@ -30,13 +30,13 @@ tests_require = ['nose', 'waitress', 'to
+ 'requests', 'minimock']
+
+ if not PYPY:
+- tests_require += ['meinheld', 'greenlet']
++ tests_require += ['greenlet']
+
+ if sys.version_info[0] == 2:
+ tests_require += ['PasteDeploy', 'Paste', 'unittest2', 'ws4py']
+ if not PYPY:
+ tests_require += ['gevent', 'gevent-websocket', 'eventlet',
+- 'gevent-socketio', 'bjoern']
++ 'gevent-socketio']
+
+ setup(name='chaussette',
+ version=__version__,
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4b0dda3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no-unsupported-deps.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f834b14
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=chaussette
+export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/examples'
+
+%:
+ dh $@ --with python2 --buildsystem=pybuild
+
+# pybuild sets the http_proxy environment variable to prevent 'python setup.py'
+# from downloading stuff from pypi, but this breaks the tests that perform
+# some GET queries, so we unset it to run tests
+override_dh_auto_test:
+ http_proxy="" dh_auto_test
+
+override_dh_installman:
+ make -C docs man
+ dh_installman
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf docs/build
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..1b94463
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^.tox"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..dbe3aa3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/<project>-$1\.tar\.gz/ \
+ https://github.com/circus-tent/chaussette/tags .*/v?(\d\S*)\.tar\.gz
+
+opts="mode=git, pgpmode=none, pretty=1.3.0+git%cd+%h, repack, compression=xz" \
+ https://github.com/circus-tent/chaussette \
+ HEAD