forked from jacebrowning/memegen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (44 loc) · 1.42 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
#!/usr/bin/env python
"""Setup script for the package."""
import os
import logging
import setuptools
from memegen import __project__, __version__
try:
README = open("README.rst").read()
CHANGELOG = open("CHANGELOG.rst").read()
except IOError:
LONG_DESCRIPTION = "<placeholder>"
else:
LONG_DESCRIPTION = README + '\n' + CHANGELOG
def load_requirements():
"""Exclude specific requirements based on platform."""
requirements = []
for line in open("requirements.txt").readlines():
line = line.strip()
name = line.split('=')[0].strip()
if os.name == 'nt':
if name in ['psycopg2', 'gunicorn']:
logging.warning("Skipped requirement: %s", line)
continue
requirements.append(line)
return requirements
setuptools.setup(
name=__project__,
version=__version__,
description="The open source meme generator.",
url='https://github.com/jacebrowning/memegen',
author='Jace Browning',
author_email='[email protected]',
packages=setuptools.find_packages(),
entry_points={'console_scripts': []},
long_description=LONG_DESCRIPTION,
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.5',
],
install_requires=load_requirements(),
)