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

- introduced a version.py

- read version.py from setup.py without importing saqc
- set version to 2.0.1
parent 78930a9f
No related branches found
No related tags found
7 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!400Relase 2.0.1,!371fix version mess
Pipeline #54196 passed with stage
in 5 minutes and 7 seconds
......@@ -2,9 +2,8 @@
# -*- coding: utf-8 -*-
"""The system for automated quality controll package."""
__version__ = "1.4"
from saqc.version import __version__
# import order: from small to big
from saqc.constants import (
UNFLAGGED,
GOOD,
......@@ -12,6 +11,7 @@ from saqc.constants import (
BAD,
)
# import order: from small to big, to a void cycles
from saqc.core import (
Flags,
SaQC,
......
#!/usr/bin/env python
__version__ = "2.0.1"
from setuptools import setup, find_packages
from distutils.util import convert_path
# 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:
exec(f.read(), vdict)
version = vdict["__version__"]
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="saqc",
version="2.0.0",
version=version,
author="Bert Palm, David Schaefer, Peter Luenenschloss, Lennard Schmidt",
author_email="david.schaefer@ufz.de",
description="Data quality checking and processing tool/framework",
......
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