Skip to content

Commit 9d20ca8

Browse files
authored
Merge pull request #5 from Jayesh251/master
updating dev branch
2 parents 8d7484d + 28083e3 commit 9d20ca8

4 files changed

Lines changed: 35 additions & 29 deletions

File tree

.github/workflows/package.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- uses: actions/checkout@v4
2020

2121
- uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
2224

2325
- name: Install cibuildwheel
2426
run: python -m pip install cibuildwheel==2.21.3
@@ -31,9 +33,8 @@ jobs:
3133
run: |
3234
brew uninstall pkg-config || echo "pkg-config not installed, skipping uninstallation."
3335
brew uninstall pkg-config@0.29.2 || echo "pkg-config@0.29.2 not available, skipping uninstallation."
34-
brew install gsl
35-
brew install hdf5
36-
36+
brew install gsl hdf5
37+
3738
- name: Windows dependencies
3839
if: ${{ runner.os == 'Windows' }}
3940
uses: mamba-org/setup-micromamba@v1
@@ -81,7 +82,6 @@ jobs:
8182
run: |
8283
python -m cibuildwheel --output-dir wheelhouse
8384
ls wheelhouse
84-
8585
- name: MacOS package
8686
if: runner.os == 'macOS'
8787
env:
@@ -92,7 +92,7 @@ jobs:
9292
brew uninstall pkg-config@0.29.2 || :
9393
brew install gsl hdf5 meson ninja cmake &&
9494
export PKG_CONFIG=`which pkg-config` &&
95-
echo "<<<<<<<<<##########################################>>>>>>>>>>" &&
95+
echo "<<<<<<<<<<##########################################>>>>>>>>>>" &&
9696
echo "$$$$$ `pkg-config --libs gsl`" &&
9797
echo "@@@@@ `pkg-config --cflags gsl`"
9898
CIBW_ARCHS: 'arm64'
@@ -102,7 +102,6 @@ jobs:
102102
export "MACOSX_DEPLOYMENT_TARGET=$(echo ${{ matrix.os }} | cut -c 7-8).0" # required because gsl2.8 has minimum target of 14.0
103103
python -m cibuildwheel --output-dir wheelhouse
104104
ls wheelhouse
105-
106105
- name: Windows package
107106
if: runner.os == 'Windows'
108107
env:
@@ -114,12 +113,14 @@ jobs:
114113
micromamba activate moose
115114
python -m cibuildwheel --output-dir wheelhouse
116115
dir wheelhouse
117-
118116
- name: Upload to PyPI
117+
if: always()
119118
env:
120119
TWINE_USERNAME: __token__ # Use __token__ as the username
121120
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # Use the secret with your PyPI token as the password
122121
run: |
123122
python -m pip install --upgrade twine # Ensure Twine is installed again
123+
python -m twine --version # Debug: Check Twine version
124+
which python # Debug: Ensure Python is available
124125
which twine # Debug: Check if Twine is correctly installed
125-
twine upload wheelhouse/*.whl # Upload the built wheels to PyPI
126+
python -m twine upload wheelhouse/*.whl # Upload the built wheels to PyPI

.github/workflows/pymoose.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ jobs:
1414
python-version: ["3.12"]
1515
include:
1616
- os: ubuntu-22.04
17-
apt: 10
17+
apt: 10 # Linux will install the latest GSL version
1818
- os: macos-14
19-
brew: 20
19+
brew: 20 # macOS will install the latest GSL version
2020
- os: windows-latest
2121
winget: 30
22+
gsl_version: "2.6"
23+
- os: windows-latest
24+
winget: 30
25+
gsl_version: "2.7"
26+
- os: windows-latest
27+
winget: 30
28+
gsl_version: "2.8"
2229
steps:
2330
- name: mamba-setup
2431
uses: mamba-org/setup-micromamba@v1
@@ -57,8 +64,7 @@ jobs:
5764
- if: ${{ matrix.brew }}
5865
run: |
5966
brew list pkg-config && brew uninstall pkg-config || echo "pkg-config not installed, skipping uninstall."
60-
brew list pkg-config@0.29.2 && brew uninstall pkg-config@0.29.2 || echo "pkg-config@0.29.2 not available, skipping uninstall."
61-
brew install gsl
67+
brew install gsl # Always install the latest GSL version on macOS
6268
brew install hdf5
6369
- name: checkout
6470
uses: actions/checkout@v4

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,20 @@ details about MOOSE simulator, visit https://moose.ncbs.res.in .
4444
----------
4545
# Installation
4646

47-
See [INSTALL.md](INSTALL.md) for instructions on installation.
47+
See [INSTALL.md](https://github.com/subhacom/moose-core/blob/master/INSTALL.md) for instructions on installation.
4848

49-
Have a look at examples, tutorials and demo here
50-
https://github.com/BhallaLab/moose-examples.
49+
Have a look at examples, tutorials, and demos here:
50+
[https://github.com/BhallaLab/moose-examples](https://github.com/BhallaLab/moose-examples).
5151

5252
# Build
5353

54-
To build `pymoose`, follow instructions given in
55-
[INSTALLATION.md](INSTALLATION.md) and for platform specific
56-
information see:
57-
- Linux: [UbuntuBuild.md](UbuntuBuild.md)
58-
- MacOSX: [AppleM1Build.md](AppleM1Build.md)
59-
- Windows: [WindowsBuild.md](WindowsBuild.md)
54+
To build `pymoose`, follow the instructions given in
55+
[INSTALL.md](https://github.com/subhacom/moose-core/blob/master/INSTALL.md)
56+
and for platform-specific information, see:
57+
58+
- **Linux**: [UbuntuBuild.md](https://github.com/subhacom/moose-core/blob/master/UbuntuBuild.md)
59+
- **MacOSX**: [AppleM1Build.md](https://github.com/subhacom/moose-core/blob/master/AppleM1Build.md)
60+
- **Windows**: [WindowsBuild.md](https://github.com/subhacom/moose-core/blob/master/WindowsBuild.md)
6061

6162
# ABOUT VERSION 4.1.0, `Jhangri`
6263

@@ -72,13 +73,11 @@ This release has the following major changes:
7273
2. `HHGate2D`: separate `xminA`, `xminB`, etc. for `A` and `B` tables
7374
replaced by single `xmin`, `xmax`, `xdivs`, `ymin`, `ymax`, and
7475
`ydivs` fields for both tables.
75-
2. Build system switched from cmake to meson
76-
2. Native binaries for Windows
77-
6. Updated to conform to c/c++-17 standard
78-
7. Various bugfixes.
76+
3. Build system switched from cmake to meson
77+
4. Native binaries for Windows
78+
5. Updated to conform to c/c++-17 standard
79+
6. Various bugfixes.
7980

8081
# LICENSE
8182

82-
MOOSE is released under GPLv3.
83-
84-
83+
MOOSE is released under GPLv3.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ requires = [
99
[project]
1010
name = 'pymoose-development-Jayesh'
1111
# dynamic = ['version']
12-
version = '4.1.0'
12+
version = '4.1.2'
1313
description = 'Python scripting interface of MOOSE Simulator (https://moose.ncbs.res.in)'
1414
readme = 'README.md'
1515
classifiers = [

0 commit comments

Comments
 (0)