mirror of
https://github.com/certbot/certbot.git
synced 2025-08-09 15:02:48 +03:00
Automatically run test files with pytest (#9576)
* Switch to pytest git grep -l unittest.main | xargs sed -i 's/unittest.main()/sys.exit(pytest.main([__file__]))/g' git ls-files -m | xargs -I {} sh -c "echo 'import sys\nimport pytest' >> '{}'" isort --float-to-top . * add pytest dep * use sys.argv
This commit is contained in:
@@ -14,6 +14,10 @@ install_requires = [
|
||||
'setuptools>=41.6.0',
|
||||
]
|
||||
|
||||
test_extras = [
|
||||
'pytest',
|
||||
]
|
||||
|
||||
setup(
|
||||
name='certbot-nginx',
|
||||
version=version,
|
||||
@@ -47,6 +51,9 @@ setup(
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
install_requires=install_requires,
|
||||
extras_require={
|
||||
'test': test_extras,
|
||||
},
|
||||
entry_points={
|
||||
'certbot.plugins': [
|
||||
'nginx = certbot_nginx._internal.configurator:NginxConfigurator',
|
||||
|
Reference in New Issue
Block a user