Newer
Older
# SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
# SPDX-License-Identifier: GPL-3.0-or-later
# 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
name = os.environ.get("PYPI_PKG_NAME", "saqc")
if not name:
raise ValueError("Environment variable PYPI_PKG_NAME must not be an empty string.")
v = versioneer.get_versions()
print(f"saqc version: {v}")
if v["error"]:
raise RuntimeError(v["error"])
if v["dirty"]:
raise ValueError(
f"The repository you build is dirty. Please commit changes first {v}."
)
name=name,
version=versioneer.get_version(), # keep this line as it is
cmdclass=versioneer.get_cmdclass(), # keep this line as it is
author="Bert Palm, David Schaefer, Florian Gransee, Peter Luenenschloss",
description="A timeseries data quality control and processing tool/framework",
long_description_content_type="text/markdown",
url="https://git.ufz.de/rdm-software/saqc",
"docstring_parser",
"fancy-collections",
license_files=("LICENSE.md", "LICENSES/GPL-3.0-or-later.txt"),
entry_points={
"console_scripts": ["saqc=saqc.__main__:main"],
},