-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
51 lines (45 loc) · 1.51 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
"""
Setup.py for FFs
"""
import os
import re
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
HERE = os.path.realpath(os.path.dirname(__file__))
VERSION_FILE = os.path.join(HERE, "ffs/_version.py")
verstrline = open(VERSION_FILE, "rt").read()
VSRE = r'^__version__ = [\'"]([^\'"]*)[\'"]'
mo = re.search(VSRE, verstrline, re.M)
if mo:
VERSION = mo.group(1)
else:
raise RuntimeError("Unable to find version string in {0}".format(VERSION_FILE))
os.chdir(HERE)
install_requires = ['six>=1.2.0']
if sys.version_info < (2, 6):
install_requires.append('smplejson')
setup(
name = "ffs",
version = VERSION,
author = "David Miller",
author_email = "[email protected]",
url = "http://www.deadpansincerity.com/docs/ffs",
description = "Python Filesystem Api helpers",
long_description = open(os.path.join(HERE, 'README.rst')).read() + "\n\n" + open(os.path.join(HERE, 'HISTORY.rst')).read(),
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 3.1",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries"
],
install_requires=install_requires,
packages = ['ffs', 'ffs.contrib'],
)