1#!/usr/bin/env python
2
3from setuptools import setup
4import sys
5PY3 = sys.version_info >= (3,)
6
7VERSION = "0.5.4"
8
9COMMANDS = ['fscat',
10            'fsinfo',
11            'fsls',
12            'fsmv',
13            'fscp',
14            'fsrm',
15            'fsserve',
16            'fstree',
17            'fsmkdir',
18            'fsmount']
19
20
21CONSOLE_SCRIPTS = ['{0} = fs.commands.{0}:run'.format(command)
22                   for command in COMMANDS]
23
24classifiers = [
25    "Development Status :: 5 - Production/Stable",
26    'Intended Audience :: Developers',
27    'License :: OSI Approved :: BSD License',
28    'Operating System :: OS Independent',
29    'Programming Language :: Python',
30    'Programming Language :: Python :: 2.6',
31    'Programming Language :: Python :: 2.7',
32    'Programming Language :: Python :: 3',
33    'Topic :: System :: Filesystems',
34]
35
36with open('README.txt', 'r') as f:
37    long_desc = f.read()
38
39
40extra = {}
41if PY3:
42    extra["use_2to3"] = True
43
44setup(install_requires=['setuptools', 'six'],
45      name='fs',
46      version=VERSION,
47      description="Filesystem abstraction layer",
48      long_description=long_desc,
49      license="BSD",
50      author="Will McGugan",
51      author_email="will@willmcgugan.com",
52      url="http://pypi.python.org/pypi/fs/",
53      platforms=['any'],
54      packages=['fs',
55                'fs.expose',
56                'fs.expose.dokan',
57                'fs.expose.fuse',
58                'fs.expose.wsgi',
59                'fs.tests',
60                'fs.wrapfs',
61                'fs.osfs',
62                'fs.contrib',
63                'fs.contrib.bigfs',
64                'fs.contrib.davfs',
65                'fs.contrib.tahoelafs',
66                'fs.commands'],
67      package_data={'fs': ['tests/data/*.txt']},
68      entry_points={"console_scripts": CONSOLE_SCRIPTS},
69      classifiers=classifiers,
70      **extra
71      )
72