Skip to content

Commit

Permalink
adding extra field variables
Browse files Browse the repository at this point in the history
  • Loading branch information
scaomath committed Apr 23, 2024
1 parent 73376b4 commit ce167d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,19 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Install build
run: python -m pip install build
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)

- name: Update version in setup.py
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release
uses: pypa/gh-action-pypi-publish@main
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'torch-cfd',
packages=find_packages(include=['torch_cfd', 'torch_cfd.*']),
version = '0.0.1',
version='{{VERSION_PLACEHOLDER}}',
license='Apache-2.0',
description = 'PyTorch CFD',
long_description='PyTorch Computational Fluid Dynamics Library',
Expand Down

0 comments on commit ce167d3

Please sign in to comment.