Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
simplified build process/version number
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Oct 19, 2016
1 parent 83b9d08 commit b65e0e2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 216 deletions.
129 changes: 0 additions & 129 deletions .README.in

This file was deleted.

70 changes: 0 additions & 70 deletions Makefile

This file was deleted.

5 changes: 1 addition & 4 deletions ib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#
##

# these values substituted during release build.
api = "0"
version = "0"
revision = "r0"
__version__ = '0.8.0'


32 changes: 19 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
that the Python programmer can use to connect to IB, request stock ticker
data, submit orders for stocks and options, and more.
"""
import os
import re
from distutils.core import setup


Expand All @@ -27,23 +29,27 @@

doclines = __doc__.split('\n')

# Version Number
with open(os.path.join(os.path.dirname(__file__), 'ib', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)


try: # Python 3
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError: # Python 2
from distutils.command.build_py import build_py

setup(cmdclass = {'build_py': build_py},
name = 'IbPy',
version = "0", # make value
description = doclines[0],
author = 'Troy Melhase',
author_email = '[email protected]',
url = 'http://code.google.com/p/ibpy/',
license = 'BSD License',
packages = ['ib', 'ib/lib', 'ib/ext', 'ib/opt', 'ib/sym'],
classifiers = filter(None, classifiers.split('\n')),
long_description = '\n'.join(doclines[2:]),
platforms = ['any'],
download_url = 'http://ibpy.googlecode.com/files/:release_file:',
setup(
cmdclass={'build_py': build_py},
name='IbPy2',
version=version,
description=doclines[0],
author='Troy Melhase',
author_email='[email protected]',
url='https://github.com/blampe/IbPy',
license='BSD License',
packages=['ib', 'ib/lib', 'ib/ext', 'ib/opt', 'ib/sym'],
classifiers=filter(None, classifiers.split('\n')),
long_description='\n'.join(doclines[2:]),
platforms=['any']
)

0 comments on commit b65e0e2

Please sign in to comment.