Skip to content

Commit 0422b47

Browse files
authored
Create setup.py
1 parent 95b0e90 commit 0422b47

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

setup.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import os
2+
from setuptools import find_packages, setup
3+
4+
VERSION = __import__('css_grid').__version__
5+
NAME = 'django-css-grid'
6+
URL = 'https://github.com/raiderrobert/django-css-grid/'
7+
8+
def read_file(filename):
9+
"""Read a file into a string"""
10+
path = os.path.abspath(os.path.dirname(__file__))
11+
filepath = os.path.join(path, filename)
12+
try:
13+
return open(filepath).read()
14+
except IOError:
15+
return ''
16+
17+
install_requires = ['django>=1.8']
18+
19+
setup(
20+
name=NAME,
21+
version=VERSION,
22+
author='Robert Roskam',
23+
author_email='me@robertroskam.com',
24+
install_requires=install_requires,
25+
packages=find_packages(),
26+
include_package_data=True, # declarations in MANIFEST.in
27+
license='MIT',
28+
url=URL,
29+
download_url=URL+'/tarball/'+VERSION,
30+
description="A django app for creating css grids",
31+
long_description=read_file('README.md'),
32+
keywords=['pomodoro', 'time management', 'productivity'],
33+
classifiers=[
34+
'Development Status :: 4 - Beta',
35+
'Environment :: Web Environment',
36+
'Framework :: Django',
37+
'Intended Audience :: Developers',
38+
'License :: OSI Approved :: BSD License',
39+
'Natural Language :: English',
40+
'Programming Language :: Python :: 3.6',
41+
],
42+
zip_safe=False
43+
)

0 commit comments

Comments
 (0)