Skip to content

Commit

Permalink
Added secondary setup.py to make it easier to upload to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunix committed Jun 3, 2014
1 parent d75f68c commit 359be5c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ missing
py-compile
/itstool
/itstool.1
/setup.py
/MANIFEST
/build
/dist
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Makefile
itstool
itstool.1
its/Makefile
setup.py
])

AC_OUTPUT
25 changes: 25 additions & 0 deletions setup.py.in
Original file line number Diff line number Diff line change
@@ -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',
])]
)

0 comments on commit 359be5c

Please sign in to comment.