From 70d0ad532dd7e8bfa3e3583f2b4ea3a98f40af02 Mon Sep 17 00:00:00 2001 From: Jorgen Schaefer Date: Tue, 30 Oct 2012 11:40:57 +0100 Subject: distutils support for pypi. Also add copyright notice. --- .gitignore | 3 +++ gnucashxml.py | 19 +++++++++++++++++++ setup.py | 16 ++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 .gitignore create mode 100755 setup.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5be420a --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +MANIFEST +README.txt +dist diff --git a/gnucashxml.py b/gnucashxml.py index da9ca0e..2fea612 100644 --- a/gnucashxml.py +++ b/gnucashxml.py @@ -1,3 +1,22 @@ +# gnucashxml.py --- Parse GNU Cash XML files + +# Copyright (C) 2012 Jorgen Schaefer + +# Author: Jorgen Schaefer + +# 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 . + import decimal import gzip diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..5773188 --- /dev/null +++ b/setup.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python + +import shutil + +from distutils.core import setup + +shutil.copy("README.md", "README.txt") + +setup(name='gnucashxml', + version='1.0', + description="Parse GNU Cash XML files", + author="Jorgen Schaefer", + author_email="forcer@forcix.cx", + url="https://github.com/jorgenschaefer/gnucashxml", + py_modules=['gnucashxml'] + ) -- cgit v1.2.3