Definitely use setup.py. It makes the packaging easy and standardized, and it is the standard way to build python. It also makes it easy to publish releases to pypi, the central package repository for python. I attached a quick untested one for you.
.hc Jérémy Bobbio wrote: > Hi! > > I've been working at high pace since Sunday on a replacement for the > diffp script . These GPLv3 lines of Python are called debbindiff. > > Get it from Git: > > https://anonscm.debian.org/cgit/reproducible/debbindiff.git/ > > Attached is an output produced for the attr package. The new tool is at > least as capable as diffp, is way more extensible, and the result is > more readable. > > Example usage: > > $ ./debbindiff.py --html /tmp/debbindiff.html b1/*.changes b2/*.changes > > There's no requirements for actually comparing .changes. You can use it > to compare jar files directly if that's your kick. > > I'd love to see reviews of the code. It's scarce on comments but names > should be explicit enough, or so I hope. > > It's missing Debian packaging. I guess I should learn how to write a > setup.cfg or similar. Pointers or patches welcome. > > One thing this codebase should enable is writing “hints”. Once the tree > of differences is generated, it should be doable to run through it to > generate statements like: “Many files in data.tar have different > timestamps, dh_fixmtimes has probably not been called. Are you > using dh?” This still needs to be done though. > > Last note: I've been pushing everything else aside while I had the > thrills to work on this. It's unclear when will be the next time, so > patches are preferred rather than suggestion. > > : https://anonscm.debian.org/cgit/reproducible/misc.git/tree/diffp > > > > _______________________________________________ > Reproducible-builds mailing list > Reproducibleemail@example.com > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds > -- PGP fingerprint: 5E61 C878 0F86 295C E17D 8677 9F0F E587 374B BE81
#!/usr/bin/env python2 from setuptools import setup import sys setup(name='debbindiff', version='0.1', description='display differences between files', long_description=open('README').read(), author='Lunar', author_email='lu...@debian.org', url='https://wiki.debian.org/ReproducibleBuilds', packages=['debbindiff'], scripts=['debbindiff'], install_requires=[ 'python-debian', ], classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Operating System :: POSIX', 'Topic :: Utilities', ], )
Description: OpenPGP digital signature
_______________________________________________ Reproducible-builds mailing list Reproduciblefirstname.lastname@example.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds