-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (35 loc) · 1.09 KB
/
setup.py
File metadata and controls
39 lines (35 loc) · 1.09 KB
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
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
import sys
class InstallHook(_install):
def run(self):
self.preInstall()
_install.run(self)
def preInstall(self):
if sys.version_info[0] >= 3 or sys.version_info <= (2,5):
raise Exception("This module only supports Python 2.6 or 2.7")
setup(
cmdclass = {"install": InstallHook},
name = "py.Disk",
version = "1.1.0",
description = "Object oriented API for working with files and folders",
author = "Jesse Cowles",
author_email = "jcowles@indigital.net",
url = "http://projects.indigitaldev.net/jcowles/py.Disk",
package_dir = {"":"src"},
packages = find_packages("src"),
zip_safe = False,
test_suite = "test",
install_requires = [
"py.Lang >=2.0.0, <2.1",
"py.OS >=1.0.0, <1.1",
],
classifiers = [
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
],
)