gns-deb-diff

automate the documentation of the differences between gNewSense and Debian.
git clone git://git.ricketyspace.net/gns-deb-diff.git
Log | Files | Refs

commit 2b17d299e0c15289fef2ff9117ccce797ae8b5eb
parent 39202af96754d4e518d8a36630ef32d9172e2f46
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 17 Dec 2016 03:49:35 +0000

Move version info to separate module.

* gd_diff.py (_version): Remove variable.
* gns_deb_diff/__init__.py: New file.
* gns_deb_diff/_version.py: New module. Contains version info.
* setup.py: Use gns_deb_diff._version module to get version info.

Diffstat:
gd_diff.py | 2+-
gns_deb_diff/__init__.py | 0
gns_deb_diff/_version.py | 8++++++++
setup.py | 4+++-
4 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/gd_diff.py b/gd_diff.py @@ -21,7 +21,7 @@ from subprocess import run, PIPE from bs4 import BeautifulSoup from pkg_resources import resource_string -_version = '0.1.0dev0' +from gns_deb_diff._version import __version__ # list of recognized fields. field_list = [ diff --git a/gns_deb_diff/__init__.py b/gns_deb_diff/__init__.py diff --git a/gns_deb_diff/_version.py b/gns_deb_diff/_version.py @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- +# +# This file is part of gns-deb-diff. +# +# gns-deb-diff is under the Public Domain. See +# <https://creativecommons.org/publicdomain/zero/1.0> + +__version__ = '0.1.0.dev0' diff --git a/setup.py b/setup.py @@ -14,6 +14,8 @@ from setuptools import setup, find_packages from codecs import open from os import path +from gns_deb_diff._version import __version__ + here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: @@ -21,7 +23,7 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f: config = { 'name': 'gns-deb-diff', - 'version': '0.1.0dev0', + 'version': __version__, 'description': 'Documents difference between gNewsSense and Debian.', 'long_description': long_description, 'url': 'https://git.ricketyspace.net/gns-deb-diff',