Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from reidrac/debian-packaging
Debian packaging support
- Loading branch information
Showing
9 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
You'll need fakeroot and the Debian packaging tools. | ||
|
||
Run: ./debian/makedeb | ||
|
||
*** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env python | ||
|
||
from Registry import _version_ | ||
from datetime import datetime | ||
|
||
with open("debian/changelog", "w") as fd: | ||
fd.write("""python-registry (%s) unstable; urgency=low | ||
* Upstream release | ||
-- Willy Ballenthin <willi.ballenthin@gmail.com> %s | ||
""" % (_version_, datetime.utcnow().strftime('%a, %d %b %Y %H:%M:%S GMT'))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Source: python-registry | ||
Section: python | ||
Priority: extra | ||
Maintainer: Willy Ballenthin <willi.ballenthin@gmail.com> | ||
Standards-Version: 3.8.4 | ||
Build-Depends: debhelper (>= 8.0), | ||
python-all-dev, | ||
python-support | ||
Homepage: http://www.williballenthin.com/registry/ | ||
|
||
|
||
Package: python-registry | ||
Architecture: all | ||
Depends: ${python:Depends}, ${misc:Depends} | ||
Description: Python module providing access to Windows registry files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
echo "Making .deb" | ||
PYTHONPATH=. debian/changelog.py | ||
fakeroot ./debian/rules binary | ||
mkdir -p dist | ||
fakeroot ./debian/rules clean | ||
rm debian/changelog | ||
python setup.py clean | ||
rmdir dist | ||
mv -i ../*.deb . | ||
echo "Made .deb" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.6- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/make -f | ||
|
||
export DH_ALWAYS_EXCLUDE=.git | ||
export DH_MD5SUMS_ARGS := --exclude=.git | ||
export DH_VERBOSE=1 | ||
|
||
%: | ||
dh $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#!/usr/bin/env python | ||
|
||
from distutils.core import setup | ||
from Registry import _version_ | ||
|
||
setup(name='python-registry', | ||
version='0.2.3', | ||
version=_version_, | ||
description='Read access to Windows Registry files.', | ||
author='Willi Ballenthin', | ||
author_email='willi.ballenthin@gmail.com', | ||
url='http://www.williballenthin.com/registry/', | ||
license='Apache License (2.0)', | ||
packages=['Registry'], | ||
) | ||
|