certbot/certbot-dns-google/setup.py
ohemorange 407dc158f6
Set up dns plugins to use pyproject.toml (#10425)
Final part of https://github.com/certbot/certbot/issues/10403

I tested running `tools/snap/generate_dnsplugins_snapcraft.sh
certbot-dns-dnsimple` and it put the correct description in to the
`snapcraft.yaml` file.
2025-08-15 09:17:15 -07:00

26 lines
591 B
Python

import os
from setuptools import setup
version = '5.0.0.dev0'
install_requires = [
'google-api-python-client>=1.6.5',
'google-auth>=2.16.0',
]
if os.environ.get('SNAP_BUILD'):
install_requires.append('packaging')
else:
install_requires.extend([
# We specify the minimum acme and certbot version as the current plugin
# version for simplicity. See
# https://github.com/certbot/certbot/issues/8761 for more info.
f'acme>={version}',
f'certbot>={version}',
])
setup(
version=version,
install_requires=install_requires,
)