This repository has been archived by the owner on Apr 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
56 lines (47 loc) · 1.81 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
#! /usr/bin/env python3
from setuptools import setup
import re
package_name = 'md2pdf_client'
filename = package_name + '.py'
def get_version():
with open(filename) as f:
for line in f:
version = re.search("__version__\s?=\s?\"(\d+\.\d+\.\d+)\"", line)
if version:
return version.group(1)
# Return 0.0.0 if version not found
return label.replace("0.0.0")
def get_long_description():
try:
with open('README.md', 'r') as f:
return f.read()
except IOError:
return ''
setup(
name=package_name,
version=get_version(),
author='Sean Lanigan',
author_email='sean.lanigan@exteltechnologies.com',
description='Use an md2pdf server to render Markdown text into a pretty PDF',
url='https://github.com/seanlano/md2pdf-client',
long_description='''
md2pdf is a little project that aims to make it easy to produce
professional-looking PDF documents from Markdown files via a LaTeX template and
the help of Pandoc.
With with an appropriate template, LaTeX PDF output is undeniably the prettiest-
looking way to create documents. But, learning LaTeX is hard. Markdown
is much easier to use, and when used with Pandoc can still produce superb PDF
documents. md2pdf makes it simple to manage having the right LaTeX templates and
configuration across a whole team, by using a central server to do the PDF
generation and then share the result with those who need it.
This simple Python program is the md2pdf client application. It is intended to
be used with an `md2pdf-webserver` instance, running locally or remotely.
''',
py_modules=[package_name],
entry_points={
'console_scripts': [
'md2pdf_client = md2pdf_client:main'
]
},
license='GNU Affero General Public License v3 or later',
)