Skip to content

Commit

Permalink
Prepare repository for pipeline deployment or pypi.org
Browse files Browse the repository at this point in the history
Try bumpversion

Revert version changes

Remove version bump in docs

bumpversion with true commit

Bump version: 0.10.2 → 0.11.0

bumpversion with true tag

Bump version: 0.11.0 → 0.11.1

Revert psuh to main protection in pre-commit

commit-args for bumpversion

commit-args for bumpversion

Bump version: 0.11.2 → 0.11.3
  • Loading branch information
AlexanderHeidelbach committed Mar 22, 2024
1 parent e639c9a commit 78ca178
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 443 deletions.
5 changes: 2 additions & 3 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[bumpversion]
current_version = 0.10.2
current_version = 0.11.3
commit = True
tag = True
commit_args = --no-verify

[bumpversion:file:b2luigi/__init__.py]

[bumpversion:file:docs/conf.py]
16 changes: 16 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
stages:
- pre_commit
- test
- publish
- docs

variables:
Expand All @@ -10,11 +11,14 @@ variables:
ARTIFACTS_DOCS_PATH: "docs-build"
ARTIFACTS_COV_PATH: "coverage/"
GITLAB_BELLE2_TOOLS_B2SETUP: "/cvmfs/belle.cern.ch/tools/b2setup"
FLIT_INDEX_URL: "https://upload.pypi.org/legacy/"
FLIT_USERNAME: __token__

workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'push' && ($CI_COMMIT_BRANCH == 'main') && $CI_COMMIT_TITLE =~ /Merge branch.*/
- if: $CI_COMMIT_TAG
- if: $GITLAB_FORCE_RUNNING_PIPELINE == 'yes'

default:
Expand Down Expand Up @@ -57,8 +61,20 @@ test:
- coverage/
expose_as: 'test result and coverage'

publish:
stage: publish
needs: [test]
script:
- git clean -df
- pip install -U --user setuptools wheel twine flit
- export PATH=$PATH:~/.local/bin
- flit publish
only:
- tags

docs:
stage: docs
needs: [test]
script:
- pip install -U --user flit
- export PATH=$PATH:~/.local/bin
Expand Down
Loading

0 comments on commit 78ca178

Please sign in to comment.