Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/python-package-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,16 @@ jobs:
activate-environment: build
environment-file: .github/conda-envs/build.yml
- name: Build a Conda tarbal
env:
VERSION: ${{ env.VERSION }}
run: |
source "${CONDA}/etc/profile.d/conda.sh"
conda activate build
echo "Building conda package with VERSION=${VERSION}"
conda build -c conda-forge -c cmutel -c lca ./recipe/
- name: Publish to Anaconda
run: |
source "${CONDA}/etc/profile.d/conda.sh"
conda activate build
anaconda -t ${{ secrets.CONDA_LCA }} upload \
/usr/share/miniconda/envs/build/conda-bld/noarch/*.conda
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ jobs:
env:
VERSION: ${{ github.ref_name }}
run: |
source "${CONDA}/etc/profile.d/conda.sh"
conda activate build
echo "Building conda package with VERSION=${VERSION}"
conda build -c conda-forge -c cmutel -c lca recipe/
- name: Upload to anaconda.org
run: |
source "${CONDA}/etc/profile.d/conda.sh"
conda activate build
anaconda -t ${{ secrets.CONDA_UPLOAD_TOKEN }} upload \
/usr/share/miniconda/envs/build/conda-bld/noarch/*.conda
- name: Update wiki
Expand Down
5 changes: 3 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{% set ab_version = os.environ.get('VERSION', 'dev') %}
package:
name: activity-browser
version: "{{ os.environ.get('VERSION', 'dev') }}"
version: {{ ab_version }}

source:
path: ..

build:
noarch: python
number: 0
script: "{{ PYTHON }} setup.py install --single-version-externally-managed --record record.txt"
script: export VERSION="{{ ab_version }}" && {{ PYTHON }} setup.py install --single-version-externally-managed --record record.txt
entry_points:
- activity-browser = activity_browser:run_activity_browser
- activity-browser-cleanup = activity_browser.bwutils:cleanup
Expand Down
Loading