Skip to content

Commit bc1eadc

Browse files
committed
Use main as Primary Branch (#367)
This PR updates our git workflow to use `main` as the MHKiT default branch : - Many modern projects use `main` as the default branch, aligning with the GitHub recommendation and broader conventions. - There is some non-linear history in the previous rebase causing issues between `develop` & `master` - `main` was created from the current `develop` branch creating a 1-to-1 liner history between `develop` and the new `main` branch
1 parent eb360a0 commit bc1eadc

File tree

6 files changed

+20
-23
lines changed

6 files changed

+20
-23
lines changed

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Py 3.10, 3.11, 3.12 | Windows Mac Linux
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- develop
88
pull_request:
99
branches:
10-
- master
10+
- main
1111
- develop
1212

1313
jobs:
@@ -44,7 +44,7 @@ jobs:
4444
4545
- id: hindcast-logic
4646
run: |
47-
if [[ "${{ github.event.pull_request.base.ref }}" == "master" || "${{ steps.changes.outputs.wave_io_hindcast }}" == "true" ]]; then
47+
if [[ "${{ github.event.pull_request.base.ref }}" == "main" || "${{ steps.changes.outputs.wave_io_hindcast }}" == "true" ]]; then
4848
echo "should-run-hindcast=true" >> "$GITHUB_OUTPUT"
4949
else
5050
echo "should-run-hindcast=false" >> "$GITHUB_OUTPUT"

.github/workflows/pypi.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Builds mhkit and publishes to testpypi.org on every commit to master. On tagged commits, also publishes to pypi.org.
1+
# Builds mhkit and publishes to testpypi.org on every commit to main. On tagged commits, also publishes to pypi.org.
22
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
33

44
name: Build and release 🐍 📦
55

66
on:
77
push:
88
branches:
9-
- master
9+
- main
1010
release:
1111
types: [published]
1212

README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<a href=https://github.com/MHKiT-Software/MHKiT-Python/actions/workflows/main.yml>
55
<img src="https://github.com/MHKiT-Software/MHKiT-Python/actions/workflows/main.yml/badge.svg">
66
</a>
7-
<a href=https://coveralls.io/github/MHKiT-Software/MHKiT-Python?branch=master>
8-
<img src="https://coveralls.io/repos/github/MHKiT-Software/MHKiT-Python/badge.svg?branch=master">
7+
<a href=https://coveralls.io/github/MHKiT-Software/MHKiT-Python?branch=main>
8+
<img src="https://coveralls.io/repos/github/MHKiT-Software/MHKiT-Python/badge.svg?branch=main">
99
</a>
1010
<a href=https://pepy.tech/project/mhkit>
1111
<img src="https://pepy.tech/badge/mhkit">
@@ -33,14 +33,16 @@ See the [MHKiT documentation](https://mhkit-software.github.io/MHKiT) for more i
3333
## Installation
3434

3535
MHKiT-Python requires Python (3.10, 3.11, 3.12) along with several Python
36-
package dependencies. MHKiT-Python can be installed from PyPI using the command:
36+
package dependencies. MHKiT-Python can be installed using the Conda package manager:
3737

38-
`pip install mhkit`
38+
```bash
39+
conda install -c conda-forge mhkit
40+
```
3941

40-
MHKiT can alternatively be installed using conda:
42+
MHKiT can alternatively be installed from PyPi using pip:
4143

4244
```bash
43-
conda install -c conda-forge mhkit
45+
pip install mhkit
4446
```
4547

4648
See [installation instructions](https://mhkit-software.github.io/MHKiT/installation.html) for more information.
@@ -82,7 +84,7 @@ The GitHub platform has the branch feature that facilitates code contributions a
8284
1. Navigate to your fork of MHKiT-Python (see instructions above)
8385
2. Above the list of files, click **Branches**.
8486
3. Click **New Branch**.
85-
4. Enter a name for the branch. Be sure to select **MHKiT-Software/MHKiT-Python:master** as the source.
87+
4. Enter a name for the branch. Be sure to select **MHKiT-Software/MHKiT-Python:main** as the source.
8688
5. Click **Create branch**. You will now have a branch on your fork of MHKiT-Python that you can use to work with the code base.
8789

8890
## Creating a pull request

examples/qc_example.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"metadata": {},
66
"source": [
77
"# MHKiT Quality Control Module\n",
8-
"The following example runs a simple quality control analysis on wave elevation data using the [MHKiT QC module](https://mhkit-software.github.io/MHKiT/mhkit-python/api.qc.html). The data file used in this example is stored in the [\\\\\\\\MHKiT\\\\\\\\examples\\\\\\\\data](https://github.com/MHKiT-Software/MHKiT-Python/tree/master/examples/data) directory.\n",
8+
"The following example runs a simple quality control analysis on wave elevation data using the [MHKiT QC module](https://mhkit-software.github.io/MHKiT/mhkit-python/api.qc.html). The data file used in this example is stored in the [\\\\\\\\MHKiT\\\\\\\\examples\\\\\\\\data](https://github.com/MHKiT-Software/MHKiT-Python/tree/main/examples/data) directory.\n",
99
"\n",
1010
"Start by importing the necessary Python packages and MHKiT modules."
1111
]
@@ -438,7 +438,7 @@
438438
],
439439
"metadata": {
440440
"kernelspec": {
441-
"display_name": "Python 3",
441+
"display_name": "base",
442442
"language": "python",
443443
"name": "python3"
444444
},

examples/river_example.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"source": [
99
"# MHKiT River Module\n",
1010
"\n",
11-
"The following example will familiarize the user with the [MHKIT river module](https://mhkit-software.github.io/MHKiT/mhkit-python/api.river.html) by stepping through the calculation of annual energy produced for one turbine in the Tanana River near Nenana, Alaska. The data file used in this example is retrieved from the USGS website, a local version of the data is stored in the [\\\\\\\\MHKiT\\\\\\\\examples\\\\\\\\data](https://github.com/MHKiT-Software/MHKiT-Python/tree/master/examples/data) directory.\n",
11+
"The following example will familiarize the user with the [MHKIT river module](https://mhkit-software.github.io/MHKiT/mhkit-python/api.river.html) by stepping through the calculation of annual energy produced for one turbine in the Tanana River near Nenana, Alaska. The data file used in this example is retrieved from the USGS website, a local version of the data is stored in the [\\\\\\\\MHKiT\\\\\\\\examples\\\\\\\\data](https://github.com/MHKiT-Software/MHKiT-Python/tree/main/examples/data) directory.\n",
1212
"\n",
1313
"Start by importing the necessary python packages and MHKiT module."
1414
]
@@ -357,7 +357,7 @@
357357
],
358358
"metadata": {
359359
"kernelspec": {
360-
"display_name": "Python 3",
360+
"display_name": "base",
361361
"language": "python",
362362
"name": "python3"
363363
},

examples/tidal_example.ipynb

+2-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# MHKiT Tidal Module\n",
88
"\n",
9-
"The following example will familiarize the user with the [MHKiT tidal module](https://mhkit-software.github.io/MHKiT/mhkit-python/api.tidal.html) by stepping through the calculation of the velocity duration curve. The data file used in this example is stored in the [\\\\\\\\MHKiT\\\\\\\\examples\\\\\\\\data](https://github.com/MHKiT-Software/MHKiT-Python/tree/master/examples/data) directory.\n",
9+
"The following example will familiarize the user with the [MHKiT tidal module](https://mhkit-software.github.io/MHKiT/mhkit-python/api.tidal.html) by stepping through the calculation of the velocity duration curve. The data file used in this example is stored in the [\\\\\\\\MHKiT\\\\\\\\examples\\\\\\\\data](https://github.com/MHKiT-Software/MHKiT-Python/tree/main/examples/data) directory.\n",
1010
"\n",
1111
"Start by importing the necessary MHKiT module."
1212
]
@@ -376,7 +376,7 @@
376376
],
377377
"metadata": {
378378
"kernelspec": {
379-
"display_name": "Python 3 (ipykernel)",
379+
"display_name": "base",
380380
"language": "python",
381381
"name": "python3"
382382
},
@@ -391,11 +391,6 @@
391391
"nbconvert_exporter": "python",
392392
"pygments_lexer": "ipython3",
393393
"version": "3.11.7"
394-
},
395-
"vscode": {
396-
"interpreter": {
397-
"hash": "1b38577481a8c337d860514619746143ecc67292e11e5807b52b737c5351e332"
398-
}
399394
}
400395
},
401396
"nbformat": 4,

0 commit comments

Comments
 (0)