-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
42 lines (38 loc) · 1.32 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
# https://coderwall.com/p/qawuyq
# Thanks James.
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = ''
print 'warning: pandoc or pypandoc does not seem to be installed; using empty long_description'
import os
requirements_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'requirements.txt')
with open(requirements_file, 'r') as f:
install_requires = [x.strip() for x in f.readlines()]
from setuptools import setup
setup(
name = 'drf_to_s3',
version = __import__('drf_to_s3').__version__,
author = 'Body Labs',
author_email = 'paul.melnikow@bodylabs.com',
description = 'Django REST Framework Interface for direct upload to S3',
long_description = long_description,
url = 'https://github.com/bodylabs/drf-to-s3',
license = 'MIT',
packages = [
'drf_to_s3',
'drf_to_s3/views',
],
install_requires=install_requires,
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP'
]
)