|
2 | 2 | import sys |
3 | 3 |
|
4 | 4 | from setuptools import setup, find_packages |
| 5 | +#from distutils.core import setup |
5 | 6 |
|
6 | 7 | # Read the version from __init__ to avoid importing python-xbrl while installing. |
7 | 8 | # This lets the install work when the user does not have BeautifulSoup |
8 | 9 | # installed. |
9 | | -VERSION = re.search(r"__version__ = '(.*?)'", |
10 | | - open("python-xbrl/__init__.py").read()).group(1) |
| 10 | +#VERSION = re.search(r"__version__ = '(.*?)'", |
| 11 | +# open("python-xbrl/__init__.py").read()).group(1) |
11 | 12 |
|
12 | 13 | # Use BeautifulSoup 3 on Python 2.5 and earlier and BeautifulSoup 4 otherwise |
13 | 14 | if sys.version_info < (2, 6): |
|
25 | 26 | "marshmallow>=0.7", |
26 | 27 | ]) |
27 | 28 |
|
28 | | -setup_params = dict( |
| 29 | +setup = dict( |
29 | 30 | name='python-xbrl', |
30 | | - version=VERSION, |
| 31 | + version='1.0.1', |
31 | 32 | author='Joe Cabrera', |
32 | 33 | |
33 | 34 | keywords='xbrl, Financial, Accounting, file formats', |
|
37 | 38 | "Intended Audience :: Developers", |
38 | 39 | "Natural Language :: English", |
39 | 40 | "Operating System :: OS Independent", |
| 41 | + "Programming Language :: Python :: 2.6", |
40 | 42 | "Programming Language :: Python :: 2.7", |
41 | 43 | "Topic :: Software Development :: Libraries :: Python Modules", |
42 | 44 | 'Topic :: Office/Business :: Financial', |
|
49 | 51 | 'datetime', |
50 | 52 | 'pprint' |
51 | 53 | ], |
| 54 | + scripts=['python-xbrl/parser.py','python-xbrl/gaap.py'], |
| 55 | + packages=find_packages(exclude=['examples', 'tests']), |
52 | 56 | url='https://github.com/greedo/python-xbrl/', |
53 | 57 | license='Apache License', |
54 | 58 | description='library for parsing xbrl documents providing output as both a basic model object and serialized objects', |
55 | | - long_description=open("./README", "r").read(), |
56 | | - packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
| 59 | + long_description=open("./README.md", "r").read(), |
| 60 | + #packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
57 | 61 | include_package_data=True, |
58 | 62 | zip_safe=True, |
59 | 63 | test_suite='tests', |
60 | 64 | ) |
61 | | - |
62 | | -if __name__ == '__main__': |
63 | | - setup(**setup_params) |
|
0 commit comments