1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# encoding: utf-8
from setuptools import setup
def exec_file(path):
"""Execute a python file and return the `globals` dictionary."""
with open(path, 'rb') as f:
code = compile(f.read(), path, 'exec')
namespace = {}
try:
exec(code, namespace, namespace)
except ImportError: # ignore missing dependencies at setup time
pass # and return dunder-globals anyway!
return namespace
metadata = exec_file('certbot_dns_netcup.py')
setup(
version = metadata['__version__'],
url = metadata['__url__'],
)
|