forked from kibitzr/kibitzr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
87 lines (76 loc) · 2.2 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env python
import os
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
try:
# Might be missing if no pandoc installed
with open('CHANGELOG.rst') as history_file:
history = history_file.read()
except IOError:
history = ""
def changelog_version():
with open('CHANGELOG.md') as fp:
for line in fp:
if line.startswith('## '):
version = line.split()[1].strip('[]')
if set(version).issubset('0123456789.'):
return version
def read_requirements():
with open(os.path.join('requirements', 'base.in')) as fp:
lines = [line.split('#', 1)[0].strip()
for line in fp]
# drop empty lines:
return [line
for line in lines
if line and not line.startswith('#')]
install_requires = read_requirements()
if os.name == 'nt':
# sh predecessor working under Windows:
install_requires.append('pbs')
else:
install_requires.extend(['sh'])
setup(
name='kibitzr',
version='6.0.4',
description="Self hosted web page changes monitoring",
long_description=readme + '\n\n' + history,
author="Peter Demin",
author_email='[email protected]',
url='https://github.com/kibitzr/kibitzr',
packages=[
'kibitzr',
],
package_dir={
'kibitzr': 'kibitzr',
},
entry_points={
'console_scripts': [
'kibitzr=kibitzr.cli:extended_cli'
]
},
include_package_data=True,
install_requires=install_requires,
license="MIT license",
zip_safe=False,
keywords='kibitzr',
classifiers=[
'Development Status :: 6 - Mature',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
test_suite='tests',
setup_requires=['pytest-runner'],
tests_require=[
'pytest',
'pytest-pep8',
'pylint',
'mock',
'pytest-mock',
],
)