Skip to content

Commit 29fa4ed

Browse files
authored
fix: Fixed release job and conda recipe (#75)
* ci: Updated conda recipe * ci: Fixed release job
1 parent a812399 commit 29fa4ed

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.conda/meta.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ source:
1313
url: ../dist/torchscan-{{ environ.get('BUILD_VERSION') }}.tar.gz
1414

1515
build:
16+
number: 0
1617
noarch: python
1718
script: python setup.py install --single-version-externally-managed --record=record.txt
1819

@@ -29,8 +30,9 @@ test:
2930
# Python imports
3031
imports:
3132
- torchscan
32-
requires:
33-
- python
33+
- torchscan.modules
34+
- torchscan.process
35+
- torchscan.utils
3436

3537
about:
3638
home: https://github.com/frgfm/torch-scan

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
- name: Get release tag
2727
id: release_tag
2828
run: |
29-
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//:1}
29+
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
3030
- name: Build and publish
3131
env:
3232
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
3333
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
34-
BUILD_VERSION: ${{ steps.release_tag.outputs.VERSION }}
34+
VERSION: ${{ steps.release_tag.outputs.VERSION }}
3535
run: |
36-
python setup.py sdist bdist_wheel
36+
BUILD_VERSION=${VERSION:1} python setup.py sdist bdist_wheel
3737
twine check dist/*
3838
twine upload dist/*
3939
@@ -70,13 +70,13 @@ jobs:
7070
- name: Get release tag
7171
id: release_tag
7272
run: |
73-
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//:1}
73+
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
7474
- name: Build and publish
7575
env:
7676
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
77-
BUILD_VERSION: ${{ steps.release_tag.outputs.VERSION }}
77+
VERSION: ${{ steps.release_tag.outputs.VERSION }}
7878
run: |
79-
python setup.py sdist
79+
BUILD_VERSION=${VERSION:1} python setup.py sdist
8080
mkdir conda-dist
8181
conda-build .conda/ -c pytorch --output-folder conda-dist
8282
ls -l conda-dist/noarch/*tar.bz2

0 commit comments

Comments
 (0)