-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
executable file
·51 lines (47 loc) · 1.66 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
#!/usr/bin/env python3
"""Setup script for HTMLArk."""
import re
from setuptools import setup
# Extract version number from source code
with open('htmlark.py', 'r') as f:
source_code = f.read()
version_regex = re.compile(r'''^\s*__version__\s*=\s*['"](\d.*)['"]''', re.MULTILINE)
project_version = version_regex.search(source_code).group(1)
with open('README.rst', 'r') as f:
readme_text = f.read()
setup(
name="HTMLArk",
version=project_version,
description="Pack a webpage including support files into a single HTML file.",
long_description=readme_text,
url="https://github.com/BitLooter/htmlark",
author="David Powell",
author_email="[email protected]",
license="MIT",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Archiving',
'Topic :: Text Processing :: Markup :: HTML'
],
keywords="development html webpage css javascript",
py_modules=['htmlark'],
install_requires=['beautifulsoup4'],
extras_require={
'parsers': ['lxml', 'html5lib'],
'http': ['requests'],
},
entry_points={
'console_scripts': [
'htmlark = htmlark:_main_wrapper',
]
}
)