forked from cjw296/fixed
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
41 lines (37 loc) · 1.19 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright (c) 2012 Simplistix Ltd
# See license.txt for license details.
import os
try:
from ConfigParser import RawConfigParser
except Exception:
from configparser import RawConfigParser
from setuptools import setup, find_packages
base_dir = os.path.dirname(__file__)
# read test requirements from tox.ini
config = RawConfigParser()
config.read(os.path.join(base_dir, 'tox.ini'))
test_requires = []
for item in config.get('testenv', 'deps').split():
test_requires.append(item)
# Tox doesn't need itself, but we need it for testing.
test_requires.append('tox')
setup(
name='fixed',
author='Chris Withers',
version='1.0dev',
author_email='[email protected]',
license='MIT',
description="A library for quickly processing fixed width files.",
long_description=open(os.path.join(base_dir,'docs','description.txt')).read(),
url='http://www.simplistix.co.uk/software/python/fixed',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
],
packages=find_packages(),
zip_safe=False,
include_package_data=True,
extras_require=dict(
test=test_requires,
)
)