-
Notifications
You must be signed in to change notification settings - Fork 48
/
setup.py
48 lines (42 loc) · 1.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
from __future__ import absolute_import
# coding=utf-8
import os
import sys
from setuptools import find_packages
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
PY3 = sys.version_info[0] == 3
install_requires = []
dependency_links = []
req_files = ['requirements.txt']
if not PY3:
req_files.append('py2-requirements.txt')
for file in req_files:
with open(os.path.join(here, file)) as f:
lines = f.readlines()
install_requires.extend([p.strip() for p in lines if ' ' not in p])
dependency_links.extend([p.split()[-1].strip() for p in lines
if ' ' in p])
setup(
name='pythoncn',
description='A social forum for pythonista',
url='https://github.com/python-cn/firefly',
version='0.1.0',
author='Python-cn Team',
author_email='[email protected]',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
packages=find_packages('.', exclude=('tests*')),
install_requires=install_requires,
dependency_links=dependency_links,
)