summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2014-06-03 11:57:15 -0500
committerShaun McCance <shaunm@gnome.org>2014-06-03 11:57:15 -0500
commit359be5c350fc3d869807f663cee2b028adf1f5d7 (patch)
tree70f032f562922352a93d613e71b62f120fbdaa30
parentd75f68cbc58075b57aee53d57b9156655a2fc99a (diff)
downloaditstool-359be5c350fc3d869807f663cee2b028adf1f5d7.tar.gz
Added secondary setup.py to make it easier to upload to pypi
-rw-r--r--.gitignore4
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac1
-rw-r--r--setup.py.in25
4 files changed, 32 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 263ae3d..4ad2b76 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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',
+ ])]
+)