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

ci

parent e456b964
No related branches found
No related tags found
1 merge request!716Rolling release
......@@ -182,17 +182,20 @@ docs:
testpypi:
stage: deploy
only:
- develop
refs:
- develop
- rolling-release
except:
- schedules
variables:
RELEASE: DEVELOP
TESTPYPI_USER: __token__
TESTPYPI_USER: __token__
PYPI_PKG_NAME: "saqc-dev" # used in setup.py
TWINE_USERNAME: __token__
TWINE_PASSWORD: $TESTPYPI_TOKEN
script:
- pip install build twine
- python -m build
- twine upload -r testpypi -u __token__ -p $TESTPYPI_USER dist/*
- twine check --strict dist/*
- twine upload -r testpypi dist/*
# make html docu with sphinx
pages:
......
......@@ -12,13 +12,13 @@ with open("README.md", "r") as fh:
long_description = fh.read()
if os.environ.get("RELEASE") == "DEVELOP":
name = "saqc-dev"
else:
name = "saqc"
name = os.environ.get("PYPI_PKG_NAME", "saqc")
if not name:
raise ValueError(
"Environment variable PYPI_PKG_NAME must not be an empty string."
)
version = versioneer.get_version()
if "dirty" in version:
raise ValueError(
f"The repository you build is dirty. Please commit changes first. {version=}"
......
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