-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (45 loc) · 1.47 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
42
43
44
45
46
47
48
49
50
51
# Copyright (c) 2013 Simplistix Ltd
# See license.txt for license details.
import os, sys
if sys.version_info[:2] > (3, 0):
from configparser import RawConfigParser
else:
from ConfigParser import RawConfigParser
from setuptools import setup, find_packages
name = 'files'
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=name,
version='1.0dev',
author='Chris Withers',
author_email='[email protected]',
license='MIT',
description="Handy utilities for working with files, directories and their permissions.",
long_description=open(os.path.join(base_dir,'docs','description.txt')).read(),
url='http://www.simplistix.co.uk/software/python/dir',
classifiers=[
'Development Status :: 3 - Alpha',
# 'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
],
packages=find_packages(),
zip_safe=False,
include_package_data=True,
extras_require=dict(
test=test_requires,
docs=['sphinx',
'zc.rst2',
'pkginfo >= 1.0b2',
'setuptools-git'],
dev='setuptools-git'
)
)