2014-04-04 14:27:33 -07:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
|
|
|
|
|
2016-04-07 16:57:44 -04:00
|
|
|
README = open('README.rst').read()
|
2016-04-11 11:36:25 -04:00
|
|
|
HISTORY = open('HISTORY.rst').read().replace('.. :changelog:', '')
|
2016-04-08 17:57:19 -04:00
|
|
|
|
|
|
|
|
with open("pydiscourse/__init__.py", "r") as module_file:
|
|
|
|
|
for line in module_file:
|
|
|
|
|
if line.startswith("__version__"):
|
|
|
|
|
version_string = line.split("=")[1]
|
2018-10-29 18:15:41 -04:00
|
|
|
VERSION = version_string.strip().replace("\"", "")
|
2014-04-04 14:27:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
2016-04-07 17:41:54 -04:00
|
|
|
name="pydiscourse",
|
2014-04-04 14:27:33 -07:00
|
|
|
version=VERSION,
|
2016-04-07 17:41:54 -04:00
|
|
|
description="A Python library for the Discourse API",
|
2016-04-11 11:36:25 -04:00
|
|
|
long_description=README + '\n\n' + HISTORY,
|
2016-04-07 17:41:54 -04:00
|
|
|
author="Marc Sibson and contributors",
|
|
|
|
|
author_email="ben+pydiscourse@benlopatin.com",
|
2014-04-04 14:27:33 -07:00
|
|
|
license="BSD",
|
2016-04-07 17:41:54 -04:00
|
|
|
url="https://github.com/bennylope/pydiscourse",
|
2014-04-04 14:27:33 -07:00
|
|
|
packages=find_packages(exclude=["tests.*", "tests"]),
|
2016-04-08 17:57:19 -04:00
|
|
|
install_requires=[
|
2018-02-15 11:03:19 +11:00
|
|
|
'requests>=2.4.2',
|
2016-04-08 17:57:19 -04:00
|
|
|
],
|
2016-04-08 17:47:26 -04:00
|
|
|
tests_require=[
|
|
|
|
|
'mock',
|
|
|
|
|
],
|
2016-04-07 17:41:54 -04:00
|
|
|
test_suite='tests',
|
2014-04-08 08:30:58 -07:00
|
|
|
entry_points={
|
|
|
|
|
'console_scripts': [
|
|
|
|
|
'pydiscoursecli = pydiscourse.main:main'
|
|
|
|
|
]
|
|
|
|
|
},
|
2014-04-04 14:27:33 -07:00
|
|
|
classifiers=[
|
2019-10-06 12:04:51 -04:00
|
|
|
"Development Status :: 5 - Production/Stable"
|
2014-04-04 14:27:33 -07:00
|
|
|
"Environment :: Web Environment",
|
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
|
"Programming Language :: Python",
|
2014-05-27 22:28:21 -07:00
|
|
|
"Programming Language :: Python :: 2.7",
|
2016-04-07 17:41:54 -04:00
|
|
|
"Programming Language :: Python :: 3.5",
|
2019-10-06 12:04:51 -04:00
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
|
"Programming Language :: Python :: 3.7",
|
2016-04-07 17:41:54 -04:00
|
|
|
'Programming Language :: Python :: Implementation :: PyPy',
|
2014-04-04 14:27:33 -07:00
|
|
|
],
|
|
|
|
|
zip_safe=False,
|
|
|
|
|
)
|