-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
63 lines (57 loc) · 2.4 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
52
53
54
55
56
57
58
59
60
61
62
63
# from distutils.core import setup
import sys
from setuptools import setup
# To use a consistent encoding across file types
# https://stackoverflow.com/questions/33891373/difference-between-io-open-vs-open-in-python
# from codecs import open
# from os import path
short_description = "Package to use with the Polr Project 's REST API. Can also be used from CLI."
# here = path.abspath(path.dirname(__file__))
# with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
# long_description = f.read()
# Workaround until PyPI is able to build README.rst
rtd = 'https://mypolr.readthedocs.io'
long_description = 'Read documentation for more info on {}'.format(rtd)
# Only include pytest-runner if invoked:
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner', 'pytest', 'responses'] if needs_pytest else []
setup(
name='mypolr',
packages=['mypolr'],
url='https://github.com/fauskanger/mypolr',
download_url='https://pypi.org/project/mypolr/#files',
project_urls={
'Documentation': 'https://mypolr.readthedocs.io',
'User Guide': 'https://mypolr.readthedocs.io/en/latest/usage.html#advanced-usage'
},
license='MIT',
author='Thomas Fauskanger',
author_email='',
keywords='polr-project shorturl api',
description=short_description,
long_description=long_description,
install_requires=['requests'],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*', # 2.7 or 3.3+
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Other Audience',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development',
'Topic :: Utilities'
],
# include all files in MANIFEST.in in source distributions (i.e. LICENSE)
include_package_data=True,
# Obtains version from git tags with setuptools_scm
use_scm_version=True,
setup_requires=['setuptools_scm'] + pytest_runner,
tests_requires=['pytest', 'responses']
)