-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (44 loc) · 1.6 KB
/
setup.py
File metadata and controls
50 lines (44 loc) · 1.6 KB
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
# -*- coding: utf-8 -*-
import os
import io
from setuptools import setup, find_packages
with io.open('README.md', encoding='utf-8') as f:
long_description = f.read()
try:
import pypandoc
long_description = pypandoc.convert(long_description, 'rst', 'md')
long_description = long_description.replace('\r', '')
with io.open('README.rst', mode='w', encoding='utf-8') as f:
f.write(long_description)
except (ImportError, OSError):
print("!!! Can't convert README.md - install pandoc and/or pypandoc.")
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-djfiles',
version='0.2',
packages=find_packages(exclude=['djfiles.tests']),
include_package_data=True,
license='BSD License',
description='A simple Django app to upload files via admin panel.',
long_description=long_description,
url='https://github.com/luminousmen/djfiles',
author='Bobrov Kirill',
author_email='miaplanedo@gmail.com',
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires=[
'python-slugify',
],
)