Skip to content

Commit

Permalink
Merge pull request #9 from dolthub/max/conda
Browse files Browse the repository at this point in the history
Max/conda
  • Loading branch information
max-hoffman authored Apr 6, 2021
2 parents 808954f + 30ea755 commit 835d1b3
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ jobs:
conda_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Update Doltcli version
run: sed -i 's/version{{':'}} .*/version{{':'}} "'"$VERSION"'"/' "$FILE"
run: |
sed -i 's/version = \S*/version = "'"$VERSION"'"/' "$FILE"
env:
FILE: conda/meta.yaml
VERSION: ${{ github.event.inputs.version }}
- uses: EndBug/add-and-commit@v7
with:
message: ${{ format('[ga-bump-release] update Doltcli conda version to {0}', github.event.inputs.version) }}
add: ${{ format('{0}/conda/meta.yaml', github.workspace) }}
cwd: "."
- name: publish-to-conda
uses: maxibor/conda-package-publish-action@v1.1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Update Doltcli version
run: sed -i 's/version =.*/version = "'"$VERSION"'"/' "$FILE"
run: sed -i 's/version = .*/version = "'"$VERSION"'"/' "$FILE"
env:
FILE: pyproject.toml
VERSION: ${{ github.event.inputs.version }}
Expand Down
5 changes: 5 additions & 0 deletions conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python:
- 3.9
- 3.8
- 3.7
- 3.6
19 changes: 19 additions & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{% set version = "0.1.2" %}

package:
name: doltcli
version: {{ version }}

buiLd:
script:
- PIP_NO_INDEX="False" $PYTHON -m pip install doltcli=={{ version }}

requirements:
build:
- python {{ python }}
run:
- python
- dataclasses

about:
home: https://github.com/dolthub/doltcli

0 comments on commit 835d1b3

Please sign in to comment.