Skip to content
Snippets Groups Projects
Commit 70b348ed authored by Bert Palm's avatar Bert Palm 🎇
Browse files

fixed distutil deprecation warning with setup.py

parent 72fc3910
No related branches found
No related tags found
1 merge request!714fix_distutils_deprecation
Pipeline #182796 passed with stages
in 11 minutes and 34 seconds
This commit is part of merge request !714. Comments created here will be created in the context of that merge request.
# SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
#
# SPDX-License-Identifier: GPL-3.0-or-later
from distutils.util import convert_path
import os
from setuptools import find_packages, setup
# read the version string from saqc without importing it. See the
# link for a more detailed description of the problem and the solution
# https://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package
vdict = {}
version_fpath = convert_path("saqc/version.py")
with open(version_fpath) as f:
with open(os.path.join("saqc", "version.py")) as f:
vdict = {}
exec(f.read(), vdict)
version = vdict["__version__"]
version = vdict["__version__"]
with open("README.md", "r") as fh:
long_description = fh.read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment