setup.py 1.69 KB
Newer Older
Bram Daams's avatar
Bram Daams committed
1
#!/usr/bin/env python
Bram Daams's avatar
Bram Daams committed
2

Bram Daams's avatar
Bram Daams committed
3
4
"""The setup script."""

Bram Daams's avatar
Bram Daams committed
5
from setuptools import find_packages, setup
Bram Daams's avatar
Bram Daams committed
6
7

with open('README.md') as readme_file:
Bram Daams's avatar
Bram Daams committed
8
    README = readme_file.read()
Bram Daams's avatar
Bram Daams committed
9
10

with open('HISTORY.md') as history_file:
Bram Daams's avatar
Bram Daams committed
11
    HISTORY = history_file.read()
Bram Daams's avatar
Bram Daams committed
12

Bram Daams's avatar
Bram Daams committed
13
REQUIREMENTS = [
Bram Daams's avatar
Bram Daams committed
14
15
16
17
18
19
20
21
    'arrow',
    'click>=7.0',
    'python-crontab',
    'requests',
    'configparser',
    'tzlocal',
    ]

Bram Daams's avatar
Bram Daams committed
22
SETUP_REQUIREMENTS = []
Bram Daams's avatar
Bram Daams committed
23

Bram Daams's avatar
Bram Daams committed
24
TEST_REQUIREMENTS = []
Bram Daams's avatar
Bram Daams committed
25
26

setup(
Bram Daams's avatar
Bram Daams committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
    author="Bram Daams",
    author_email='b.daams@science.ru.nl',
    python_requires='>=3.5',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
        'Natural Language :: English',
        "Topic :: System :: Monitoring",
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
Bram Daams's avatar
Bram Daams committed
41
    ],
Bram Daams's avatar
Bram Daams committed
42
43
44
45
46
47
48
    description="A cron shell wrapper for registering and "
                "updating cron jobs automatically in healthchecks",
    entry_points={
        'console_scripts': [
            'sch=sch.cli:main',
        ],
    },
Bram Daams's avatar
Bram Daams committed
49
    install_requires=REQUIREMENTS,
Bram Daams's avatar
Bram Daams committed
50
    license="GNU General Public License v3",
Bram Daams's avatar
Bram Daams committed
51
    long_description=README + '\n\n' + HISTORY,
Bram Daams's avatar
Bram Daams committed
52
53
54
55
    long_description_content_type="text/markdown",
    include_package_data=True,
    keywords='sch',
    name='sch',
Bram Daams's avatar
Bram Daams committed
56
57
    packages=find_packages(),
    setup_requires=SETUP_REQUIREMENTS,
Bram Daams's avatar
Bram Daams committed
58
    test_suite='tests',
Bram Daams's avatar
Bram Daams committed
59
    tests_require=TEST_REQUIREMENTS,
Bram Daams's avatar
Bram Daams committed
60
    url='https://gitlab.science.ru.nl/bram/sch',
Bram Daams's avatar
Bram Daams committed
61
    version='0.6.2',
Bram Daams's avatar
Bram Daams committed
62
    zip_safe=False,
Bram Daams's avatar
Bram Daams committed
63
)