File: setup.py

package info (click to toggle)
python-certbot-dns-netcup 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 124 kB
  • sloc: python: 198; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 576 bytes parent folder | download | duplicates (2)
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__'],
)