forked from upbit/pixivpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
27 lines (24 loc) · 769 Bytes
/
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
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requires = ['requests']
version = ''
with open('pixivpy3/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
setup(
name='PixivPy',
packages=['pixivpy3'],
version=version,
description='Pixiv API for Python (with 6.x AppAPI supported)',
author='upbit',
author_email='[email protected]',
install_requires=requires,
url='https://github.com/upbit/pixivpy',
download_url='https://github.com/upbit/pixivpy/releases',
keywords=['pixiv', 'api', 'pixivpy'],
classifiers=[],
)