diff options
author | Shaun McCance <shaunm@gnome.org> | 2014-06-03 11:57:15 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2014-06-03 11:57:15 -0500 |
commit | 359be5c350fc3d869807f663cee2b028adf1f5d7 (patch) | |
tree | 70f032f562922352a93d613e71b62f120fbdaa30 | |
parent | d75f68cbc58075b57aee53d57b9156655a2fc99a (diff) | |
download | itstool-359be5c350fc3d869807f663cee2b028adf1f5d7.tar.gz |
Added secondary setup.py to make it easier to upload to pypi
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | setup.py.in | 25 |
4 files changed, 32 insertions, 1 deletions
@@ -15,3 +15,7 @@ missing py-compile /itstool /itstool.1 +/setup.py +/MANIFEST +/build +/dist diff --git a/Makefile.am b/Makefile.am index c4efc15..15c28cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,7 +10,8 @@ EXTRA_DIST = \ $(bin_SCRIPTS) \ itstool.in \ $(man_MANS) \ - itstool.1.in + itstool.1.in \ + setup.py ChangeLog: @if test -f $(top_srcdir)/.git/HEAD; then \ diff --git a/configure.ac b/configure.ac index c29efad..7027112 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,7 @@ Makefile itstool itstool.1 its/Makefile +setup.py ]) AC_OUTPUT diff --git a/setup.py.in b/setup.py.in new file mode 100644 index 0000000..0b3d866 --- /dev/null +++ b/setup.py.in @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +# setup.py.in is converted to setup.py by the configure script. This is not +# intended as the recommended way to build and install itstool. See the INSTALL +# file for details on installing with make. This file is here to make it easier +# to upload itstool to pypi. + +from distutils.core import setup + +setup(name='itstool', + version='@VERSION@', + description='XML to PO and back again using W3C ITS rules', + author='Shaun McCance', + author_email='shaunm@gnome.org', + url='http://itstool.org/', + scripts=['itstool'], + data_files=[('@DATADIR@/itstool/its', [ + 'its/docbook.its', + 'its/docbook5.its', + 'its/its.its', + 'its/mallard.its', + 'its/ttml.its', + 'its/xhtml.its', + ])] +) |