Skip to content

Commit

Permalink
prepare for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jun 14, 2024
1 parent d7f5b69 commit a79e1b4
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 41 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,46 +149,46 @@ jobs:
pytest
if: matrix.platform == 'windows-latest'

- name: Upload wheels as build artifacts (non-windows)
if: matrix.platform != 'windows-latest'
run: |
for wheel_file in dist/*.whl; do
echo "Uploading $wheel_file"
echo "::set-output name=wheel_file::$wheel_file"
echo "::set-output name=artifact_name::$(basename $wheel_file)"
done
id: get_wheel_files_nonwindows

- name: Upload wheels as build artifacts (windows)
if: matrix.platform == 'windows-latest'
shell: pwsh
run: |
foreach ($wheel_file in Get-ChildItem -Path dist -Filter *.whl) {
Write-Output "Uploading $wheel_file"
echo "::set-output name=wheel_file::$wheel_file"
echo "::set-output name=artifact_name::$(Split-Path $wheel_file -Leaf)"
}
id: get_wheel_files_windows

- name: Upload wheel file (non-windows)
if: matrix.platform != 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: ${{ steps.get_wheel_files_nonwindows.outputs.artifact_name }}
path: ${{ steps.get_wheel_files_nonwindows.outputs.wheel_file }}
# - name: Upload wheels as build artifacts (non-windows)
# if: matrix.platform != 'windows-latest'
# run: |
# for wheel_file in dist/*.whl; do
# echo "Uploading $wheel_file"
# echo "::set-output name=wheel_file::$wheel_file"
# echo "::set-output name=artifact_name::$(basename $wheel_file)"
# done
# id: get_wheel_files_nonwindows
#
# - name: Upload wheels as build artifacts (windows)
# if: matrix.platform == 'windows-latest'
# shell: pwsh
# run: |
# foreach ($wheel_file in Get-ChildItem -Path dist -Filter *.whl) {
# Write-Output "Uploading $wheel_file"
# echo "::set-output name=wheel_file::$wheel_file"
# echo "::set-output name=artifact_name::$(Split-Path $wheel_file -Leaf)"
# }
# id: get_wheel_files_windows
#
# - name: Upload wheel file (non-windows)
# if: matrix.platform != 'windows-latest'
# uses: actions/upload-artifact@v4
# with:
# name: ${{ steps.get_wheel_files_nonwindows.outputs.artifact_name }}
# path: ${{ steps.get_wheel_files_nonwindows.outputs.wheel_file }}
#
# - name: Upload wheel file (windows)
# if: matrix.platform == 'windows-latest'
# uses: actions/upload-artifact@v4
# with:
# name: ${{ steps.get_wheel_files_windows.outputs.artifact_name }}
# path: ${{ steps.get_wheel_files_windows.outputs.wheel_file }}

- name: Upload wheel file (windows)
if: matrix.platform == 'windows-latest'
- name: Upload wheels as build artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ steps.get_wheel_files_windows.outputs.artifact_name }}
path: ${{ steps.get_wheel_files_windows.outputs.wheel_file }}

# - name: Upload wheels as build artifacts
# uses: actions/upload-artifact@v4
# with:
# name: wheels-${{ matrix.platform }}-${{ matrix.python-version }}
# path: dist/*.whl
name: wheels
path: dist/*.whl

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@

.DS_Store
/dist/

tests/__pycache__/

*.whl
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
![CI](https://github.com/virtualcell/vcell-solvers/actions/workflows/cd.yml/badge.svg)

# vcell-fvsolver
Virtual Cell solvers [virtualcell/vcell-solvers](https://github.com/virtualcell/vcell-solvers) is a collection of numerical simulation codes used in the Virtual Cell framework [virtualcell/vcell](https://github.com/virtualcell/vcell)).
Virtual Cell Finite Volume solver [virtualcell/vcell-solvers](https://github.com/virtualcell/vcell-fvsolver)
is a reaction-diffusion-advection PDE solver for computational cell biology.
This solver is used within the Virtual Cell modeling and simulation application [virtualcell/vcell](https://github.com/virtualcell/vcell)
and as a component in the Virtual Cell Python API [virtualcell/pyvcell](https://github.com/virtualcell/pyvcell) (coming soon).


## The Virtual Cell Project
The Virtual Cell is a modeling and simulation framework for computational biology. For details see http://vcell.org and http://github.com/virtualcell.

Expand All @@ -27,4 +29,4 @@ and generates the output files (.log, .zip, .mesh, .meshmetrics, .hdf5). The
.functions file is not used by the solver, but is helpful for interpreting the
results in the context of the original model.

This package is intented to be used by the Virtual Cell Python API, pyvcell (coming soon).
This package is intended to be used by the Virtual Cell Python API [virtualcell/pyvcell](https://github.com/virtualcell/pyvcell) (coming soon).
4 changes: 3 additions & 1 deletion tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import pyvcell_fvsolver as fv


def test_version():
assert fv.__version__ == "0.0.1"

def test_version():

def test_version_function():
assert fv.version() is not None

0 comments on commit a79e1b4

Please sign in to comment.