forked from cfv-project/cfv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (58 loc) · 2.13 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
62
63
64
65
66
67
68
69
#! /usr/bin/env python
import re
from setuptools import find_packages, setup
RE_VERSION = r"^__version__\s*=\s*'([^']*)'$"
def _read(path):
with open(path, 'rt', encoding='utf8') as f:
return f.read()
def _get_version(path):
re_version = re.compile(RE_VERSION)
with open(path, 'rt') as f:
for line in f:
m = re_version.match(line)
if m is not None:
return m.group(1)
return None
version = _get_version('lib/cfv/common.py')
setup(
name='cfv',
version=version,
description='Command-line File Verify - versatile file checksum creator and verifier',
long_description=_read('README.md'),
long_description_content_type='text/markdown',
url='https://github.com/cfv-project/cfv',
author='David Gnedt (Current Maintainer)',
author_email='%s@%s' % ('cfv-project', 'davizone.at'),
license='GPL',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Topic :: System :: Archiving',
'Topic :: Utilities',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
keywords='cfv checksum verify sfv csv crc bsdmd5 md5sum sha1sum sha224sum sha256sum sha384sum sha512sum torrent par par2',
project_urls={
'Bug Tracker': 'https://github.com/cfv-project/cfv/issues',
'Source Code': 'https://github.com/cfv-project/cfv',
'Original Project': 'http://cfv.sourceforge.net/',
},
python_requires='>=3.5',
packages=find_packages('lib'),
package_dir={'': 'lib'},
include_package_data=True,
data_files=[('man/man1', ['cfv.1'])],
entry_points={
'console_scripts': [
'cfv=cfv.common:main',
],
},
)