2012-10-03 22:11:02 +00:00
|
|
|
#!/usr/bin/env python
|
2016-04-29 13:32:33 +00:00
|
|
|
|
|
|
|
# Project skeleton maintained at https://github.com/jaraco/skeleton
|
2015-11-25 01:10:37 +00:00
|
|
|
|
|
|
|
import io
|
|
|
|
|
2012-10-03 22:11:02 +00:00
|
|
|
import setuptools
|
|
|
|
|
2015-12-20 03:29:56 +00:00
|
|
|
with io.open('README.rst', encoding='utf-8') as readme:
|
2015-11-25 01:10:37 +00:00
|
|
|
long_description = readme.read()
|
|
|
|
|
2016-04-29 14:31:36 +00:00
|
|
|
name = 'wolframalpha'
|
|
|
|
description = 'Wolfram|Alpha 2.0 API client'
|
2017-08-14 12:14:57 +00:00
|
|
|
nspkg_technique = 'native'
|
|
|
|
"""
|
|
|
|
Does this package use "native" namespace packages or
|
|
|
|
pkg_resources "managed" namespace packages?
|
|
|
|
"""
|
2016-03-05 13:56:02 +00:00
|
|
|
|
2017-01-05 14:31:05 +00:00
|
|
|
params = dict(
|
2016-03-05 13:56:02 +00:00
|
|
|
name=name,
|
2015-11-25 01:10:37 +00:00
|
|
|
use_scm_version=True,
|
2012-10-03 22:11:02 +00:00
|
|
|
author="Jason R. Coombs",
|
|
|
|
author_email="jaraco@jaraco.com",
|
2016-03-05 13:56:02 +00:00
|
|
|
description=description or name,
|
2015-11-25 01:10:37 +00:00
|
|
|
long_description=long_description,
|
2016-03-05 13:56:02 +00:00
|
|
|
url="https://github.com/jaraco/" + name,
|
2012-10-03 22:11:02 +00:00
|
|
|
packages=setuptools.find_packages(),
|
2015-11-25 01:10:37 +00:00
|
|
|
include_package_data=True,
|
2017-08-14 12:14:57 +00:00
|
|
|
namespace_packages=(
|
|
|
|
name.split('.')[:-1] if nspkg_technique == 'managed'
|
|
|
|
else []
|
|
|
|
),
|
2017-03-12 17:33:19 +00:00
|
|
|
python_requires='>=2.7',
|
2014-06-08 09:42:42 +00:00
|
|
|
install_requires=[
|
|
|
|
'six',
|
2016-05-14 21:28:10 +00:00
|
|
|
'xmltodict',
|
2016-09-03 19:23:08 +00:00
|
|
|
'jaraco.itertools>=2.0',
|
2014-06-08 09:42:42 +00:00
|
|
|
],
|
2015-11-25 01:10:37 +00:00
|
|
|
extras_require={
|
2017-04-21 16:31:54 +00:00
|
|
|
'testing': [
|
2018-03-03 18:33:07 +00:00
|
|
|
# upstream
|
2017-04-21 16:31:54 +00:00
|
|
|
'pytest>=2.8',
|
2018-02-10 18:24:23 +00:00
|
|
|
'pytest-sugar>=0.9.1',
|
2017-09-13 08:24:11 +00:00
|
|
|
'collective.checkdocs',
|
2018-03-03 18:33:07 +00:00
|
|
|
'pytest-flake8',
|
|
|
|
|
|
|
|
# local
|
2018-03-05 03:02:07 +00:00
|
|
|
'pmxbot',
|
2017-04-21 16:31:54 +00:00
|
|
|
],
|
|
|
|
'docs': [
|
2018-03-03 18:33:07 +00:00
|
|
|
# upstream
|
2017-04-21 16:31:54 +00:00
|
|
|
'sphinx',
|
|
|
|
'jaraco.packaging>=3.2',
|
|
|
|
'rst.linker>=1.9',
|
2018-03-03 18:33:07 +00:00
|
|
|
|
|
|
|
# local
|
2017-04-21 16:31:54 +00:00
|
|
|
],
|
2015-11-25 01:10:37 +00:00
|
|
|
},
|
2012-10-03 22:11:02 +00:00
|
|
|
setup_requires=[
|
2016-10-24 14:07:33 +00:00
|
|
|
'setuptools_scm>=1.15.0',
|
2015-11-25 01:10:37 +00:00
|
|
|
],
|
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Programming Language :: Python :: 2.7",
|
|
|
|
"Programming Language :: Python :: 3",
|
2012-10-03 22:11:02 +00:00
|
|
|
],
|
2015-11-25 01:10:37 +00:00
|
|
|
entry_points={
|
2015-12-10 23:34:25 +00:00
|
|
|
'pmxbot_handlers': [
|
2018-03-05 03:02:07 +00:00
|
|
|
'Wolfram|Alpha = wolframalpha.pmxbot',
|
|
|
|
],
|
2015-11-25 01:10:37 +00:00
|
|
|
},
|
2012-10-03 22:11:02 +00:00
|
|
|
)
|
|
|
|
if __name__ == '__main__':
|
2017-01-05 14:31:05 +00:00
|
|
|
setuptools.setup(**params)
|