Skip to content

Commit

Permalink
Clean up deployment version handling (jupyter-server#167)
Browse files Browse the repository at this point in the history
* version cleanup

* clean up version handling

* print version file
  • Loading branch information
Steve Silvester authored and GitHub Enterprise committed Sep 20, 2021
1 parent c668f7c commit c6823f3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@ ENV PATH="${CONDA_DIR}/envs/${CONDA_ENV}/bin:${CONDA_DIR}/bin:${PATH}" \

# Add the user
RUN useradd -d ${APP_DIR} -m -s /bin/bash ${NB_USER}

COPY --from=build --chown=${NB_USER}:${NB_USER} ${CONDA_DIR} ${CONDA_DIR}
COPY --chown=${NB_USER}:${NB_USER} deployment/config/condarc ${APP_DIR}/.condarc
COPY --chown=${NB_USER}:${NB_USER} deployment/config/npmrc ${APP_DIR}/.npmrc
COPY --chown=${NB_USER}:${NB_USER} version ${APP_DIR}
COPY --chown=${NB_USER}:${NB_USER} deployment ${APP_DIR}
RUN python -c "import data_studio_jupyter_extensions; print(data_studio_jupyter_extensions.__version__)"
RUN cat ${APP_DIR}/version

USER ${NB_USER}
WORKDIR ${APP_DIR}
Expand Down
2 changes: 1 addition & 1 deletion data_studio_jupyter_extensions/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.13.1" # pragma: no cover
__version__ = "0.13.2" # pragma: no cover
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ testpaths = [
]

[tool.tbump.version]
current = "0.13.1"
current = "0.13.2"
regex = '''
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?
Expand Down
1 change: 1 addition & 0 deletions rio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pipelines:
trigger:
gitPush: false
package:
version: '$(cat version)'
dockerfile: true

- name: pypi-release
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.1
0.13.2

0 comments on commit c6823f3

Please sign in to comment.