-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
61 lines (54 loc) · 1.82 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
57
58
59
60
61
"""
Provides setup script
"""
from os import path, makedirs
from setuptools import setup, find_packages, version
from hapdoc import __version__
# Load readme
with open('README.md', 'r', encoding='utf-8') as file:
long_description = file.read()
# Write default template in Home directory
with open('hapdoc/templates/vitepress/index.html', 'r', encoding='utf-8') as file:
default_template = file.read()
directory = path.join(path.expanduser('~'), 'HapticX', 'hapdoc', 'templates', 'default')
if not path.exists(directory):
makedirs(directory)
with open(path.join(directory, 'index.html'), 'w', encoding='utf-8') as file:
file.write(default_template)
setup(
name='hapdoc',
description='autodoc tool for everything',
long_description=long_description,
long_description_content_type='text/markdown',
author='Ethosa',
author_email='social.ethosa@gmail.com',
maintainer='HapticX',
maintainer_email='hapticx.company@gmail.com',
url='https://github.com/HapticX/hapdoc',
version=__version__,
packages=find_packages(),
py_modules=['hapdoc'],
install_requires=['click', 'fastapi', 'uvicorn', 'jinja2'],
package_data={
'hapdoc': ['*.html']
},
include_package_data=True,
entry_points={
'console_scripts': [
'hapdoc = hapdoc.hapdoc:hapdoc'
]
},
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Framework :: FastAPI',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Documentation',
'Topic :: Software Development :: Documentation'
]
)