Files
@ 52778a401e6e
Branch filter:
Location: gimmecert/setup.py
52778a401e6e
3.1 KiB
text/x-python
GC-35: Freeze time when testing status command outputs:
Freezing the time will ensure the tests can be run in future without
having to make modifications for issuance dates - otherwise the tests
will fail because certificates will be reported as expired.
Freezing the time will ensure the tests can be run in future without
having to make modifications for issuance dates - otherwise the tests
will fail because certificates will be reported as expired.
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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2018 Branko Majic
#
# This file is part of Gimmecert.
#
# Gimmecert is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# Gimmecert is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# Gimmecert. If not, see <http://www.gnu.org/licenses/>.
#
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
python_requirements = ">=3.4,<3.8"
install_requirements = [
'cryptography>=2.4,<2.5',
'python-dateutil>=2.7,<2.8',
]
doc_requirements = [
'sphinx>=1.8,<1.9',
]
test_lint_requirements = [
'flake8>=3.6,<3.7',
]
test_requirements = [
'freezegun>=0.3,<0.4',
'pytest>=4.0,<4.1',
'pytest-cov>=2.6,<2.7',
'tox>=3.5,<3.6',
'pexpect>=4.6,<4.7',
]
release_requirements = [
'twine',
]
setup_requirements = [
'pytest-runner>=4.2,<4.3',
]
development_requirements = doc_requirements + test_requirements + test_lint_requirements + release_requirements
extras_requirements = {
'devel': development_requirements,
'doc': doc_requirements,
'test': test_requirements,
'testlint': test_lint_requirements,
}
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='gimmecert',
version='0.0.0',
packages=find_packages(exclude=['tests', 'functional_tests']),
include_package_data=True,
license='GPLv3+',
description='A simple tool for quickly issuing server and client certificates.',
long_description=README,
url='http://projects.majic.rs/gimmecert',
author='Branko Majic',
author_email='branko@majic.rs',
python_requires=python_requirements,
install_requires=install_requirements,
setup_requires=setup_requirements,
tests_require=test_requirements,
extras_require=extras_requirements,
entry_points={
'console_scripts': ['gimmecert=gimmecert.cli:main'],
},
classifiers=[
'Development Status :: 1 - Planning',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Site Management',
'Topic :: Security',
'Topic :: Software Development :: Testing',
'Topic :: Utilities',
],
)
|