-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (45 loc) · 1.52 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
from setuptools import setup
from setuptools import find_packages
import re
import os
def get_release():
regexp = re.compile(r"^__version__\W*=\W*'([\d.abrc]+)'")
root = os.path.dirname(__file__)
init_py = os.path.join(root, 'grabflickr', '__init__.py')
with open(init_py) as f:
for line in f:
match = regexp.match(line)
if match is not None:
return match.group(1)
else:
raise RuntimeError('Cannot find version in grabflickr/__init__.py')
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name='grabflickr',
description='Download photoset of flickr, support single process, multiprocess and gevent(Asynchronous I/O)',
long_description=open('README.rst').read(),
version=get_release(),
author='carlcarl',
author_email='[email protected]',
url='https://github.com/carlcarl/grabflickr',
packages=find_packages(),
install_requires=required,
license='MIT',
entry_points={
'console_scripts': [
'gf = grabflickr.grabflickr:main',
]
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2 :: Only',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: Unix',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries',
]
)