-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
54 lines (47 loc) · 1.71 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
import subprocess
from os import path
from setuptools import setup, find_packages
def load_file(filename):
working_directory = path.abspath(path.dirname(__file__))
with open(path.join(working_directory, filename), encoding='utf-8') as f:
long_description = f.read()
return long_description
setup(
name='mkdocs-pdf-with-js-plugin',
version=subprocess.check_output(["git", "describe", "--tags"]).decode().strip(),
description='A MkDocs plugin that exports your documentation as PDF with rendered JavaScript content.',
long_description=load_file('README.md'),
long_description_content_type="text/markdown",
keywords='mkdocs pdf javascript selenium',
url='https://github.com/smaxtec/mkdocs-pdf-with-js-plugin',
author='Stefan Brandstaetter',
author_email='[email protected]',
license='MIT',
python_requires='>=3.4',
install_requires=[
'beautifulsoup4',
'mkdocs>=1.0.4',
'selenium',
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Topic :: Documentation',
'Topic :: Printing',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
packages=find_packages(),
include_package_data=True,
entry_points={
'mkdocs.plugins': [
'pdf-with-js = pdf_with_js.plugin:PdfWithJS'
]
}
)