forked from whilp/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (36 loc) · 1.02 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
try:
import setuptools
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
from distutils.command.build_py import build_py
import sys, os
libdir = "lib"
sys.path.insert(0, libdir)
import cli as pkg
setup_options = {
"name": pkg.__project__,
"version": pkg.__version__,
"description": pkg.__description__,
"long_description": pkg.__doc__,
"classifiers": pkg.__classifiers__,
"keywords": pkg.__keywords__,
"author": pkg.__author__,
"author_email": pkg.__author_email__,
"url": pkg.__url__,
"packages": find_packages(libdir),
"package_dir": {"": libdir},
"include_package_data": True,
"zip_safe": False,
"install_requires": pkg.__requires__,
"entry_points": """
# -*- Entry points: -*-
""",
"test_suite": "cli.tests",
"cmdclass": { "build_py": build_py },
}
setup(**setup_options)