-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (63 loc) · 2.49 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env python
# find_package data is
# (c) 2005 Ian Bicking and contributors; written for Paste
# (http://pythonpaste.org)
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license.php
# Don't use __future__ in this script, it breaks buildout
# from __future__ import print_function
import os
import subprocess
import sys
import shutil
from fnmatch import fnmatchcase
try:
# Prefer setuptools for the installation to have no problem with the
# "--single-version-externally-managed" option that pip uses when
# installing packages.
from setuptools import setup
from setuptools import convert_path
from setuptools.command.install import install
except ImportError:
print('\n*** setuptools not found! Falling back to distutils\n\n')
from distutils.core import setup # NOQA
from distutils.command.install import install
from distutils.util import convert_path # NOQA
with open('requirements.txt', 'r') as fh:
dependencies = [l.strip() for l in fh]
class k_install(install):
def run(self):
install.run(self)
setup(name='unit_nk',
version='6.0.4',
description='testing nikola',
long_description='long desc',
author='cc',
author_email='[email protected]',
url='http://getnikola.com',
packages = ['unit_nk'],
license='MIT',
keywords='website, static',
classifiers=('Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Plugins',
'Environment :: Web Environment',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: OS Independent',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Topic :: Internet',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Text Processing :: Markup'),
install_requires=dependencies,
cmdclass={'install': k_install},
zip_safe = False,
)