-
-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (51 loc) · 2.01 KB
/
setup.py
File metadata and controls
59 lines (51 loc) · 2.01 KB
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
#!/usr/bin/env python
from distutils.core import setup
import os
def get_version():
version_file = os.path.join(os.path.dirname(__file__), 'cppman', '__version__.py')
with open(version_file, 'r') as f:
for line in f:
if line.startswith('__version__'):
return line.split('=')[1].strip().strip("'\"")
raise RuntimeError('Unable to find version string.')
__version__ = get_version()
_package_data = [
'lib/index.db',
'lib/pager.sh',
'lib/cppman.vim'
]
_data_files = [
('share/doc/cppman', ['README.rst', 'AUTHORS', 'COPYING', 'ChangeLog']),
('share/man/man1', ['misc/cppman.1']),
('share/bash-completion/completions', ['misc/completions/cppman.bash']),
('share/zsh/vendor-completions/', ['misc/completions/zsh/_cppman']),
('share/fish/vendor_completions.d/', ['misc/completions/fish/cppman.fish'])
]
with open('requirements.txt') as f:
_requirements = f.read().splitlines()
with open('README.rst', encoding='utf-8') as f:
_long_description = f.read()
setup(
name = 'cppman',
version = __version__,
description = 'C++ manual pages for Linux/MacOS',
long_description = _long_description,
long_description_content_type = 'text/x-rst',
author = 'Wei-Ning Huang (AZ)',
author_email = 'aitjcize@gmail.com',
url = 'https://github.com/aitjcize/cppman',
license = 'GPL',
packages = ['cppman', 'cppman.formatter'],
package_data = {'cppman': _package_data},
data_files = _data_files,
scripts = ['bin/cppman'],
install_requires=_requirements,
classifiers = [
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Documentation',
],
)