mirror of
https://github.com/certbot/certbot.git
synced 2026-01-29 10:02:08 +03:00
* Fix account_tests * Fix hook executable test * Remove the temporary decorator @broken_on_windows * Fix util_test * No broken unit test on Windows anymore * More elegant mock * Fix context manager * Fix lint * Fix mypy * Adapt coverage * Corrections * Fix lint * Adapt coverage * Update certbot/tests/compat/filesystem_test.py Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Update util_test.py * Fix pylint * Forbid os.access * Update os_test.py * Update os.py * Fix lint * Update filesystem.py * Update filesystem.py * Update filesystem.py * Update os.py * Start fixing tests * Platform independent hooks * Fix probe fd close * Add broken_on_windows for integration tests * Fix a lot of tests * Use a python hook script, to prepare cross-platform * New approach to be compliant with Linux and Windows on hook scripts * New tests fixed * Test for permissions on Windows * Permissions comparison for Windows * No broken tests in certbot core anymore * Change mode * Specific config for appveyor * Use forked pebble for now * Various fixes * Assert file permissions for world on private keys * Clean code * Fix several things * Add integration target * Optimize integration env * Re-enable all AppVeyor envs * Use again official pebble * Update pebble_artifacts.py * Set PYTEST_ADDOPTS silently * Update appveyor.yml * Pin pywin32 for tests, give a minimal requirement for certbot. * Remove injection of nginx in PATH * Clean debug code * Various cleanup, ensure to remove workspace after tests * Update tox target * Improve assertions. Control the keyword echoed in hooks * Fix for virtualenv on Python 3.7.4 for Windows * Update certbot-ci/certbot_integration_tests/certbot_tests/assertions.py Co-Authored-By: Brad Warren <bmw@users.noreply.github.com> * Add conditionally pywin in certbot-ci like in certbot
69 lines
2.3 KiB
Python
69 lines
2.3 KiB
Python
import sys
|
|
|
|
from distutils.version import StrictVersion
|
|
from setuptools import setup, find_packages, __version__ as setuptools_version
|
|
|
|
|
|
version = '0.32.0.dev0'
|
|
|
|
install_requires = [
|
|
'coverage',
|
|
'cryptography',
|
|
'pyopenssl',
|
|
'pytest',
|
|
'pytest-cov',
|
|
'pytest-xdist',
|
|
'python-dateutil',
|
|
'pyyaml',
|
|
'requests',
|
|
'six',
|
|
]
|
|
|
|
# Add pywin32 on Windows platforms to handle low-level system calls.
|
|
# This dependency needs to be added using environment markers to avoid its installation on Linux.
|
|
# However environment markers are supported only with setuptools >= 36.2.
|
|
# So this dependency is not added for old Linux distributions with old setuptools,
|
|
# in order to allow these systems to build certbot from sources.
|
|
if StrictVersion(setuptools_version) >= StrictVersion('36.2'):
|
|
install_requires.append("pywin32>=224 ; sys_platform == 'win32'")
|
|
elif 'bdist_wheel' in sys.argv[1:]:
|
|
raise RuntimeError('Error, you are trying to build certbot wheels using an old version '
|
|
'of setuptools. Version 36.2+ of setuptools is required.')
|
|
|
|
setup(
|
|
name='certbot-ci',
|
|
version=version,
|
|
description="Certbot continuous integration framework",
|
|
url='https://github.com/certbot/certbot',
|
|
author="Certbot Project",
|
|
author_email='client-dev@letsencrypt.org',
|
|
license='Apache License 2.0',
|
|
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
|
|
classifiers=[
|
|
'Development Status :: 3 - Alpha',
|
|
'Intended Audience :: Developers',
|
|
'License :: OSI Approved :: Apache Software License',
|
|
'Programming Language :: Python',
|
|
'Programming Language :: Python :: 2',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3',
|
|
'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 :: Security',
|
|
],
|
|
|
|
packages=find_packages(),
|
|
include_package_data=True,
|
|
install_requires=install_requires,
|
|
|
|
entry_points={
|
|
'console_scripts': [
|
|
'certbot_test=certbot_integration_tests.utils.certbot_call:main',
|
|
'run_acme_server=certbot_integration_tests.utils.acme_server:main',
|
|
],
|
|
}
|
|
)
|