summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-05-25 19:51:08 +0100
committerLars Wirzenius <liw@liw.fi>2011-05-25 19:51:08 +0100
commitb62b2d27863d08058d305ad970367e7d1517e9a4 (patch)
tree8613e3786b0a8bc69ccac963a2e743feb5ea1820
parentd346d40a117059f1a6ff4b2cce8e0f23e9e5152d (diff)
downloadbgproc-b62b2d27863d08058d305ad970367e7d1517e9a4.tar.gz
Add some packaging.
-rw-r--r--Makefile2
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat1
-rw-r--r--debian/control18
-rw-r--r--debian/copyright23
-rw-r--r--debian/pycompat1
-rwxr-xr-xdebian/rules11
-rw-r--r--debian/source/format1
-rw-r--r--setup.py30
-rw-r--r--without-tests1
10 files changed, 93 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7e2cd62..7ca6e1b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,4 +7,4 @@ check: all
rm .coverage
clean:
- rm -f *.py[co]
+ rm -rf *.py[co] build
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..b9f1cd6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+python-bgproc (0.0) squeeze; urgency=low
+
+ * Initial packaging. This is not intended to be uploaded to Debian, so
+ no closing of an ITP bug.
+
+ -- Lars Wirzenius <liw@liw.fi> Sat, 08 May 2010 11:10:24 +1200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..1d45b52
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,18 @@
+Source: python-bgproc
+Maintainer: Lars Wirzenius <liw@liw.fi>
+Section: python
+Priority: optional
+Standards-Version: 3.9.2
+Build-Depends: debhelper (>= 7.3.8), python-support (>= 1.0.3),
+ python (>= 2.5), extrautils
+XS-Python-Version: >= 2.6
+
+Package: python-bgproc
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}, python (>= 2.6)
+XB-Python-Version: ${python:Versions}
+Description: manager for Python multiprocessing library
+ The Python multiprocessing library allows some processing to happen in
+ the background, using sub-processes. This library adds an abstraction
+ layer on top of multiprocessing to allow easy work queueing.
+Homepage: http://liw.fi/bgproc/
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..55e9ba1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,23 @@
+Format: http://dep.debian.net/deps/dep5/
+Upstream-Name: bgproc
+Upstream-Contact: Lars Wirzenius <liw@liw.fi>
+Source: http://code.liw.fi/bgproc/bzr/trunk/
+
+Files: *
+Copyright: 2011, Lars Wirzenius
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On a Debian system, you can find a copy of GPL version 3 at
+ /usr/share/common-licenses/GPL-3 .
diff --git a/debian/pycompat b/debian/pycompat
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/debian/pycompat
@@ -0,0 +1 @@
+2
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..48c0c49
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+%:
+ dh $@ --with-buildsystem=python_distutils
+
+override_dh_auto_install:
+ python setup.py install --prefix=debian/python-bgproc/usr
+
+override_dh_auto_build:
+ setuppy-debian-versions-match
+ dh_auto_build $@ --with-buildsystem=python_distutils
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..ddd3b7b
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,30 @@
+#!/usr/bin/python
+# Copyright (C) 2011 Lars Wirzenius <liw@liw.fi>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+from distutils.core import setup, Extension
+import glob
+
+import bgproc
+
+setup(name='bgproc',
+ version=bgproc.version,
+ description='manager for multiprocessing work queues',
+ author='Lars Wirzenius',
+ author_email='liw@liw.fi',
+ url='http://liw.fi/bgproc/',
+ py_modules=['bgproc'],
+ )
diff --git a/without-tests b/without-tests
index a73a36d..f19bccf 100644
--- a/without-tests
+++ b/without-tests
@@ -1 +1,2 @@
./example.py
+./setup.py