tmp
srcbomb.tar.gz
srcpkgsbomb.tar
+
+.pybuild
+hippotat.egg-info
+
+debian/files
+debian/debhelper-*-stamp
+debian/*.debhelper.log
+debian/hippotat.substvars
+debian/hippotat.*.debhelper
+
+debian/hippotat/
--- /dev/null
+hippotat (0.1~UNRELEASED) unstable; urgency=medium
+
+ *
+
+ -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sat, 08 Apr 2017 17:57:42 +0100
+
--- /dev/null
+Source: hippotat
+Build-Depends: dh-python, python3
+Maintainer: Ian Jackson <ijackson@chiark.greenend.org.uk>
+
+Package: hippotat
+Depends: python3, ${python3:Depends}
+Architecture: all
+Description: Asinine IP Over HTTP
+ tbd
--- /dev/null
+#!/usr/bin/python3
+
+from setuptools import setup, find_packages
+
+import re as regexp
+import glob
+import sys
+
+scripts = ['hippotat','hippotatd']
+scan = scripts + glob.glob('hippotatlib/*.py')
+
+def find_requires():
+ mod_pat = r'[._0-9a-zA-Z]+'
+ res = list(map(regexp.compile,
+ [r'from\s+('+mod_pat+r')\s+import\b',
+ r'import\s+('+mod_pat+r')\s']))
+ reqs = { }
+ for scanf in scan:
+ print('scanning %s' % scanf, file=sys.stderr)
+ for l in open(scanf):
+ for re in res:
+ m = re.match(l)
+ if m is not None:
+ reqs[m.group(1)] = True
+ break
+ print(repr(reqs), file=sys.stderr)
+ return list(reqs.keys())
+
+setup(
+ name="hippotat",
+ packages=find_packages(),
+ requires=find_requires()
+)