Skip to content

Commit

Permalink
setup.py correct now!
Browse files Browse the repository at this point in the history
  • Loading branch information
greedo committed Aug 30, 2014
1 parent c0a052b commit aa36eaa
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import re
import sys

from setuptools import setup, find_packages
#from distutils.core import setup
#from setuptools import setup, find_packages
from distutils.core import setup

# Read the version from __init__ to avoid importing python-xbrl while installing.
# This lets the install work when the user does not have BeautifulSoup
Expand All @@ -11,38 +11,36 @@
# open("python-xbrl/__init__.py").read()).group(1)

# Use BeautifulSoup 3 on Python 2.5 and earlier and BeautifulSoup 4 otherwise
if sys.version_info < (2, 6):
REQUIRES = [
"beautifulSoup>=3.0",
]
else:
REQUIRES = [
"beautifulsoup4"
]
#if sys.version_info < (2, 6):
# REQUIRES = [
# "beautifulSoup>=3.0",
# ]
#else:
# REQUIRES = [
# "beautifulsoup4"
# ]

if sys.version_info < (2, 7):
REQUIRES.extend([
"ordereddict>=1.1",
"marshmallow>=0.7",
])
#if sys.version_info < (2, 7):
# REQUIRES.extend([
# "ordereddict>=1.1",
# "marshmallow>=0.7",
# ])

setup = dict(
setup(
name='python-xbrl',
version='1.0.1',
author='Joe Cabrera',
author_email='[email protected]',
keywords='xbrl, Financial, Accounting, file formats',
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 1",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Software Development :: Libraries :: Python Modules",
'Topic :: Office/Business :: Financial',
"License :: OSI Approved :: Apache License",
],
install_requires=[
'BeautifulSoup',
Expand All @@ -52,13 +50,11 @@
'pprint'
],
scripts=['python-xbrl/parser.py','python-xbrl/gaap.py'],
packages=find_packages(exclude=['examples', 'tests']),
#packages=find_packages(exclude=['examples', 'tests']),
url='https://github.com/greedo/python-xbrl/',
license='Apache License',
description='library for parsing xbrl documents providing output as both a basic model object and serialized objects',
long_description=open("./README.md", "r").read(),
#packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=True,
test_suite='tests',
)

0 comments on commit aa36eaa

Please sign in to comment.