forked from callowayproject/django-app-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (34 loc) · 1.05 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""django app skeleton setup"""
import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
def get_readme():
"""Return the README file contents. Supports text,rst, and markdown"""
for name in ('README', 'README.rst', 'README.md'):
if os.path.exists(name):
return read_file(name)
return ''
DESC = 'A basic skeleton and script to make a packageable django application'
setup(
name="django-app-skeleton",
version='1.0.4',
url='https://github.com/callowayproject/django-app-skeleton',
author='Calloway Project',
author_email='[email protected]',
description=DESC,
long_description=get_readme(),
packages=find_packages(),
include_package_data=True,
classifiers=[
'Framework :: Django',
],
)