Satisfy the security checks on unclosed files in `setup.py`
It was not actually a problem per se, but some code checkers
complained on a possible resource leakage. So, why not fix it?
@@ -2,8 +2,10 @@ import os.path
from setuptools import setup, find_packages
-LONG_DESCRIPTION = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
+with open(os.path.join(os.path.dirname(__file__), 'README.md')) as f:
+ LONG_DESCRIPTION = f.read()
DESCRIPTION = LONG_DESCRIPTION.splitlines()[0].lstrip('#').strip()
+
PROJECT_URLS = {
'Documentation': 'https://kopf.readthedocs.io',
'Bug Tracker': 'https://github.com/zalando-incubator/kopf/issues',
