Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
48 lines (42 loc) · 1.49 KB
/
Copy pathsetup.py
File metadata and controls
48 lines (42 loc) · 1.49 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
40
41
42
43
44
45
46
47
48
from __future__ importabsolute_import
# coding=utf-8
importos
importsys
fromsetuptoolsimportfind_packages
fromsetuptoolsimportsetup
here=os.path.abspath(os.path.dirname(__file__))
PY3=sys.version_info[0] ==3
install_requires= []
dependency_links= []
req_files= ['requirements.txt']
ifnotPY3:
req_files.append('py2-requirements.txt')
forfileinreq_files:
withopen(os.path.join(here, file)) asf:
lines=f.readlines()
install_requires.extend([p.strip() forpinlinesif' 'notinp])
dependency_links.extend([p.split()[-1].strip() forpinlines
if' 'inp])
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='ciici123@gmail.com',
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,
)