-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
executable file
·50 lines (45 loc) · 1.38 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import io
import re
from setuptools import setup
with io.open("imgix/_version.py", "rt", encoding="utf8") as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
with codecs.open('README.md', encoding='utf-8') as fp:
readme = fp.read()
with codecs.open('CHANGELOG.md', encoding='utf-8') as fp:
changelog = fp.read()
test_require = [
'pytest',
'pytest-cov',
'flake8',
]
setup(
name='imgix',
version=version,
author='imgix',
author_email='[email protected]',
packages=['imgix'],
url='https://github.com/imgix/imgix-python',
license='BSD-2-Clause',
description='Python client library for imgix.',
long_description=u'\n\n'.join([readme, changelog]),
long_description_content_type=u'text/markdown',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
setup_requires=['pytest-runner'],
extras_require={
'dev': ['tox'],
'test': test_require,
},
tests_require=test_require,
)