forked from upbit/pixivpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (32 loc) · 1.09 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
import io
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requires = [pkg.strip() for pkg in open('requirements.txt', 'r').readlines()]
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)',
long_description=io.open('README.md', mode='r', encoding='utf-8').read(),
long_description_content_type="text/markdown",
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=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
)