mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 22:33:00 -04:00
Make certbot-apache an empty project on windows, skip any test on it
This commit is contained in:
parent
188f75008d
commit
8d8b707e46
5 changed files with 43 additions and 36 deletions
|
|
@ -1,22 +1,39 @@
|
|||
import sys
|
||||
|
||||
from setuptools import find_packages
|
||||
from setuptools import setup
|
||||
|
||||
version = '1.16.0.dev0'
|
||||
|
||||
# Remember to update local-oldest-requirements.txt when changing the minimum
|
||||
# acme/certbot version.
|
||||
install_requires = [
|
||||
'acme>=1.8.0',
|
||||
'certbot>=1.10.1',
|
||||
'python-augeas',
|
||||
'setuptools>=39.0.1',
|
||||
'zope.component',
|
||||
'zope.interface',
|
||||
]
|
||||
|
||||
dev_extras = [
|
||||
'apacheconfig>=0.3.2',
|
||||
]
|
||||
if sys.platform == 'win32':
|
||||
# On Windows, makes certbot-apache essentially an empty project to avoid any
|
||||
# problem at build time or run time with python-augeas
|
||||
packages = []
|
||||
install_requires = []
|
||||
extra_require = {}
|
||||
entry_points = {}
|
||||
else:
|
||||
packages = find_packages()
|
||||
# Remember to update local-oldest-requirements.txt when changing the minimum
|
||||
# acme/certbot version.
|
||||
install_requires = [
|
||||
'acme>=1.8.0',
|
||||
'certbot>=1.10.1',
|
||||
'python-augeas',
|
||||
'setuptools>=39.0.1',
|
||||
'zope.component',
|
||||
'zope.interface',
|
||||
]
|
||||
extra_require = {
|
||||
'dev': [
|
||||
'apacheconfig>=0.3.2',
|
||||
],
|
||||
}
|
||||
entry_points = {
|
||||
'certbot.plugins': [
|
||||
'apache = certbot_apache._internal.entrypoint:ENTRYPOINT',
|
||||
],
|
||||
}
|
||||
|
||||
setup(
|
||||
name='certbot-apache',
|
||||
|
|
@ -47,15 +64,9 @@ setup(
|
|||
'Topic :: Utilities',
|
||||
],
|
||||
|
||||
packages=find_packages(),
|
||||
packages=packages,
|
||||
include_package_data=True,
|
||||
install_requires=install_requires,
|
||||
extras_require={
|
||||
'dev': dev_extras,
|
||||
},
|
||||
entry_points={
|
||||
'certbot.plugins': [
|
||||
'apache = certbot_apache._internal.entrypoint:ENTRYPOINT',
|
||||
],
|
||||
},
|
||||
extras_require=extra_require,
|
||||
entry_points=entry_points,
|
||||
)
|
||||
|
|
|
|||
6
certbot-apache/tests/conftest.py
Normal file
6
certbot-apache/tests/conftest.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import sys
|
||||
|
||||
def pytest_ignore_collect(path, config):
|
||||
# Do not run any test for certbot-apache on Windows.
|
||||
if sys.platform == 'win32':
|
||||
return True
|
||||
|
|
@ -10,8 +10,6 @@ import re
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
SKIP_PROJECTS_ON_WINDOWS = ['certbot-apache']
|
||||
|
||||
|
||||
def call_with_print(command):
|
||||
print(command)
|
||||
|
|
@ -22,16 +20,7 @@ def main(args):
|
|||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
command = [sys.executable, os.path.join(script_dir, 'pip_install_editable.py')]
|
||||
|
||||
new_args = []
|
||||
for arg in args:
|
||||
if os.name == 'nt' and arg in SKIP_PROJECTS_ON_WINDOWS:
|
||||
print((
|
||||
'Info: currently {0} is not supported on Windows and will not be tested.'
|
||||
.format(arg)))
|
||||
else:
|
||||
new_args.append(arg)
|
||||
|
||||
for requirement in new_args:
|
||||
for requirement in args:
|
||||
current_command = command[:]
|
||||
current_command.append(requirement)
|
||||
call_with_print(' '.join(current_command))
|
||||
|
|
@ -40,5 +29,6 @@ def main(args):
|
|||
call_with_print(' '.join([
|
||||
sys.executable, '-m', 'pytest', pkg]))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main(sys.argv[1:])
|
||||
|
|
|
|||
|
|
@ -18,5 +18,6 @@ def main(args):
|
|||
|
||||
pip_install.main(new_args)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main(sys.argv[1:])
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ REQUIREMENTS = [
|
|||
]
|
||||
|
||||
if sys.platform == 'win32':
|
||||
REQUIREMENTS.remove('-e certbot-apache')
|
||||
REQUIREMENTS.append('-e windows-installer')
|
||||
|
||||
VERSION_PATTERN = re.compile(r'^(\d+)\.(\d+).*$')
|
||||
|
|
|
|||
Loading…
Reference in a new issue