-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (49 loc) · 1.36 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
56
from setuptools import setup, find_packages
def format(input, start = 0):
result = ''
indent = False
count = 0
with open(input, 'r') as file:
for line in file:
if count > start:
if line[:1] == '\t' and not indent:
indent = True
result += '::\n\n'
if line[:1].isalnum() and indent:
indent = False
result += line.replace('> ', '\t').replace('>', '\t')
count += 1
return result
blurb = ('Docgen is a Python module that generates markdown documentation for'
' Python code that adheres to Google\'s style guide.\n'
)
setup(
name = 'docgen',
version = '0.1.1',
author = 'Justin Willis',
author_email = '[email protected]',
packages = find_packages(),
include_package_data = True,
zip_safe = False,
url = 'https://bitbucket.org/bkvaluemeal/docgen',
license = 'ISC License',
description = 'A markdown documentation generator for Python',
long_description = blurb + format('README.md', 3),
entry_points = {
'console_scripts': [
'docgen = docgen.__main__:main'
]
},
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Documentation'
],
keywords = 'markdown documentation generator',
install_requires = [
]
)