forked from joeyespo/grip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (39 loc) · 1.06 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
"""\
Grip
----
Render local readme files before sending off to Github.
Grip is easy to set up
``````````````````````
::
$ pip install grip
$ cd myproject
$ grip
* Running on http://localhost:5000/
Links
`````
* `Website <http://github.com/joeyespo/grip>`_
"""
import os
import sys
from setuptools import setup, find_packages
if sys.argv[-1] == 'publish':
sys.exit(os.system('python setup.py sdist upload'))
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='grip',
version='2.0.0',
description='Render local readme files before sending off to Github.',
long_description=__doc__,
author='Joe Esposito',
author_email='joe@joeyespo.com',
url='http://github.com/joeyespo/grip',
license='MIT',
platforms='any',
packages=find_packages(),
package_data={'': ['LICENSE'], 'grip': ['static/*', 'templates/*']},
install_requires=read('requirements.txt'),
zip_safe=False,
entry_points={'console_scripts': ['grip = grip.command:main']},
)