From acd3a4195d93af270831b657012162b271cf2ce7 Mon Sep 17 00:00:00 2001 From: William Toohey Date: Tue, 9 Jan 2018 17:05:30 +1000 Subject: [PATCH] PyPi! --- .gitignore | 1 + README.md | 9 +++++---- setup.py | 6 +++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9c4c81b..e89d917 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.pyc dist/ kbinxml.egg-info/ +build/ diff --git a/README.md b/README.md index 91ea10d..17c1b36 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,11 @@ An encoder/decoder for Konami's binary XML format, used in some of their games. ### Setup: -`pip install git+https://github.com/mon/kbinxml/` +`pip install kbinxml` +You can use `kbinxml` from the commandline to convert files. + +Python usage: ```python In [1]: from kbinxml import KBinXML In [2]: text = KBinXML('Hello, world!') @@ -14,6 +17,4 @@ Out[4]: b'\xa0B\x80\x7f\x00\x00\x00\x08\x0b\x04\xdfM9\xfe\xff\x00\x00\x00\x00\x1 In [5]: bin = KBinXML(Out[4]) In [6]: bin.to_text() Out[7]: u'\nHello, world!\n' -``` - -You can also use `kbinxml` from the commandline to convert files. \ No newline at end of file +``` \ No newline at end of file diff --git a/setup.py b/setup.py index 1e7bbea..35fedd9 100644 --- a/setup.py +++ b/setup.py @@ -9,14 +9,18 @@ requires = [ if sys.version_info < (3,0): requires.append('future') +version = '1.2' setup( name='kbinxml', - version='1.1', + description="Decoder/encoder for Konami's binary XML format", + long_description="See Github for up to date documentation", + version=version, entry_points = { 'console_scripts': ['kbinxml=kbinxml:main'], }, packages=['kbinxml'], url='https://github.com/mon/kbinxml/', + download_url = 'https://github.com/mon/kbinxml/archive/{}.tar.gz'.format(version), author='mon', author_email='me@mon.im', install_requires=requires