-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
30 lines (26 loc) · 913 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
28
29
30
import re
import setuptools
with open('requirements.txt') as f:
requirements = f.read().splitlines()
with open('imgbbpy/__init__.py') as f:
version = re.search(r"__version__ = '([\d\.]+)'", f.read(), re.MULTILINE)[1] # type: ignore
with open('README.md') as f:
readme = f.read()
setuptools.setup(
name='imgbbpy',
author='scrazzz',
url='https://github.com/scrazzz/imgbbpy/',
project_urls={
'Documentation': 'https://github.com/scrazzz/imgbbpy/blob/main/documentation.md',
'Issue tracker': 'https://github.com/scrazzz/imgbbpy/issues'
},
version=version,
packages=['imgbbpy'],
license='MIT',
description='An Asynchronous and Synchronous API Wrapper for the Imgbb API.',
long_description=readme,
long_description_content_type='text/markdown',
include_package_data=True,
install_requires=requirements,
python_requires='>=3.7.0'
)