summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-06-06 15:18:46 +1200
committerLars Wirzenius <liw@liw.fi>2010-06-06 15:18:46 +1200
commit760f14510663a9910c656c8b9232731645206369 (patch)
treecd4fc62ac39c5466e9c476a9775d8ce0c8c5e6a2
parent7a45765652ee173c1a0b8607c35250bc0684edf1 (diff)
downloadttystatus-760f14510663a9910c656c8b9232731645206369.tar.gz
Add Debian packaging.
-rw-r--r--Makefile1
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat1
-rw-r--r--debian/control14
-rw-r--r--debian/copyright23
-rw-r--r--debian/pycompat1
-rwxr-xr-xdebian/rules6
-rw-r--r--debian/source/format1
-rw-r--r--setup.py29
-rw-r--r--ttystatus/__init__.py2
-rw-r--r--without-tests1
11 files changed, 85 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3a49932..eafd7bd 100644
--- a/Makefile
+++ b/Makefile
@@ -6,3 +6,4 @@ check:
clean:
rm -f .coverage ttystatus/*.py[co]
+ rm -rf build
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8b9b96b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+python-ttystatus (0.1) 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..881ecdd
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,14 @@
+Source: python-ttystatus
+Maintainer: Lars Wirzenius <liw@liw.fi>
+Section: python
+Priority: optional
+Standards-Version: 3.8.4
+Build-Depends: debhelper (>= 7.3.8), python-support (>= 1.0.3), python (>= 2.5)
+
+Package: python-ttystatus
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}, python (>= 2.5)
+Description: terminal progress bar and status output for Python
+ The ttystatus Python library provides a simple widget-based way to show
+ progress and current status in command line programs.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..1b9c8f8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,23 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Name: ttystatus
+Maintainer: Lars Wirzenius <liw@liw.fi>
+Source: http://code.liw.fi/ttystatus/bzr/trunk/
+
+Files: *
+Copyright: 2010, 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..2befbe5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+%:
+ dh $@ --with-buildsystem=python_distutils
+
+override_dh_auto_install:
+ python setup.py install --prefix=debian/#FIXME/usr
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..155a050
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,29 @@
+# Copyright 2010 Lars Wirzenius
+#
+# 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/>.
+
+
+from distutils.core import setup
+
+import ttystatus
+
+setup(
+ name='ttystatus',
+ version=ttystatus.version,
+ description='terminal progress bar and status output for command line',
+ author='Lars Wirzenius',
+ author_email='liw@liw.fi',
+# url='http://liw.fi/ttystatus/',
+ packages=['ttystatus'],
+)
diff --git a/ttystatus/__init__.py b/ttystatus/__init__.py
index 7cb5bd7..1be0fda 100644
--- a/ttystatus/__init__.py
+++ b/ttystatus/__init__.py
@@ -14,6 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+version = '0.1'
+
from messager import Messager
from status import TerminalStatus
from widget import Widget
diff --git a/without-tests b/without-tests
index de23301..2cac151 100644
--- a/without-tests
+++ b/without-tests
@@ -1,3 +1,4 @@
./ttystatus/__init__.py
./example.py
./ttystatus/widget.py
+./setup.py