Skip to content

Commit c0a052b

Browse files
committed
update setup and manifest
1 parent 49bd471 commit c0a052b

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
include *.txt
2-
recursive-include docs *.txt
1+
include *.md
2+
recursive-include examples python-xbrl *.md *.py

setup.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
import sys
33

44
from setuptools import setup, find_packages
5+
#from distutils.core import setup
56

67
# Read the version from __init__ to avoid importing python-xbrl while installing.
78
# This lets the install work when the user does not have BeautifulSoup
89
# 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)
1112

1213
# Use BeautifulSoup 3 on Python 2.5 and earlier and BeautifulSoup 4 otherwise
1314
if sys.version_info < (2, 6):
@@ -25,9 +26,9 @@
2526
"marshmallow>=0.7",
2627
])
2728

28-
setup_params = dict(
29+
setup = dict(
2930
name='python-xbrl',
30-
version=VERSION,
31+
version='1.0.1',
3132
author='Joe Cabrera',
3233
author_email='[email protected]',
3334
keywords='xbrl, Financial, Accounting, file formats',
@@ -37,6 +38,7 @@
3738
"Intended Audience :: Developers",
3839
"Natural Language :: English",
3940
"Operating System :: OS Independent",
41+
"Programming Language :: Python :: 2.6",
4042
"Programming Language :: Python :: 2.7",
4143
"Topic :: Software Development :: Libraries :: Python Modules",
4244
'Topic :: Office/Business :: Financial',
@@ -49,15 +51,14 @@
4951
'datetime',
5052
'pprint'
5153
],
54+
scripts=['python-xbrl/parser.py','python-xbrl/gaap.py'],
55+
packages=find_packages(exclude=['examples', 'tests']),
5256
url='https://github.com/greedo/python-xbrl/',
5357
license='Apache License',
5458
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']),
5761
include_package_data=True,
5862
zip_safe=True,
5963
test_suite='tests',
6064
)
61-
62-
if __name__ == '__main__':
63-
setup(**setup_params)

0 commit comments

Comments
 (0)