-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
41 lines (38 loc) · 1.43 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
from setuptools import find_packages, setup
# PyPI only supports nicely-formatted README files in reStructuredText.
# Newsapps seems to prefer Markdown. Use a version of the pattern from
# https://coderwall.com/p/qawuyq/use-markdown-readme-s-in-python-modules
# to convert the Markdown README to rst if the pypandoc package is
# present.
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, OSError):
long_description = open('README.md').read()
# Load the version from the version module
exec(open('autosharing/version.py').read())
setup(
name='django-autosharing',
version=__version__,
description=("Simple Django app for periodically sharing Django models using "
"social media"),
long_description=long_description,
author="Geoff Hing for Chicago Tribune News Applications",
author_email="[email protected]",
packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=[
'Django',
'tweepy',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Framework :: Django',
],
test_suite='runtests.runtests',
)