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

rolling release pipeline

parent 3b91944b
No related branches found
No related tags found
1 merge request!716Rolling release
......@@ -179,6 +179,21 @@ docs:
# Extra Pipeline (run with a successful run of all other jobs on develop)
# ===========================================================
testpypi:
stage: deploy
only:
- develop
except:
- schedules
variables:
RELEASE: DEVELOP
TESTPYPI_USER: __token__
TESTPYPI_USER: __token__
script:
- pip install build twine
- python -m build
- twine upload -r testpypi -u __token__ -p $TESTPYPI_USER dist/*
# make html docu with sphinx
pages:
stage: deploy
......
# SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
# SPDX-License-Identifier: GPL-3.0-or-later
import os
import versioneer
from setuptools import find_packages, setup
......@@ -10,9 +11,22 @@ from setuptools import find_packages, setup
with open("README.md", "r") as fh:
long_description = fh.read()
if os.environ.get("RELEASE") == "DEVELOP":
name = "saqc-dev"
else:
name = "saqc"
version = versioneer.get_version()
if "dirty" in version:
raise ValueError(
f"The repository you build is dirty. Please commit changes first. {version=}"
)
setup(
name="saqc",
version=versioneer.get_version(),
name=name,
version=version,
cmdclass=versioneer.get_cmdclass(),
author="Bert Palm, David Schaefer, Florian Gransee, Peter Luenenschloss",
author_email="david.schaefer@ufz.de",
......
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