Skip to content

Commit

Permalink
Define supported python (#23)
Browse files Browse the repository at this point in the history
* add badge to README

* Update pyproject.toml

* Update lint-and-test.yaml

* update classifiers

* Update lint-and-test.yaml

* Update README.md

* Update smarteole_example.ipynb

* Update lint-and-test.yaml

* Update README.md

* Update smarteole_example.ipynb
  • Loading branch information
aclerc authored Sep 6, 2024
1 parent 57a1a2f commit affc586
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.x"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand All @@ -32,7 +32,7 @@ jobs:
key: ${{ matrix.python-version }}-venv-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ matrix.python-version }}-venv
- name: 'create virtualenv and install dependencies'
- name: 'create environment and install dependencies'
if: steps.cache-venv.outputs.cache-hit != 'true'
run: |
python -m venv .venv
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# wind-up
A tool to assess yield uplift of wind turbines

[![lint-and-test](https://github.com/resgroup/wind-up/actions/workflows/lint-and-test.yaml/badge.svg)](https://github.com/resgroup/wind-up/actions/workflows/lint-and-test.yaml)
[![Python 3.10](https://img.shields.io/badge/python-≥3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)
[![image](https://img.shields.io/pypi/v/res-wind-up.svg)](https://pypi.python.org/pypi/res-wind-up)
[![image](https://img.shields.io/pypi/l/res-wind-up.svg)](https://github.com/resgroup/wind-up/blob/main/LICENSE.txt)
[![image](https://img.shields.io/pypi/pyversions/res-wind-up.svg)](https://pypi.python.org/pypi/res-wind-up)
[![Lint & Format: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
[![Typing: mypy](https://img.shields.io/badge/typing-mypy-yellow.svg)](https://github.com/python/mypy)
[![TaskRunner: poethepoet](https://img.shields.io/badge/poethepoet-enabled-1abc9c.svg)](https://github.com/nat-n/poethepoet)
[![lint-and-test](https://github.com/resgroup/wind-up/actions/workflows/lint-and-test.yaml/badge.svg)](https://github.com/resgroup/wind-up/actions/workflows/lint-and-test.yaml)

## Getting Started
See [`examples`](examples) folder for example analysis using the wind-up package. [`smarteole_example.ipynb`](examples%2Fsmarteole_example.ipynb) is a good place to start.
Expand Down
2 changes: 1 addition & 1 deletion examples/smarteole_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"Dataset citation:\n",
"Thomas Duc, & Eric Simley. (2022). SMARTEOLE Wind Farm Control open dataset (1.0) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.7342466\n",
"\n",
"wind-up methodology description: `docs/wind-up uplift validation methodology.pdf`"
"See [wind-up uplift validation methodology.pdf](https://github.com/resgroup/wind-up/blob/define-supported-python/docs/wind-up%20uplift%20validation%20methodology.pdf) for a description of the calculation methodology."
]
},
{
Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ authors = [
]
description = "A tool to assess yield uplift of wind turbines"
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.9,<4.0"
license = { file = "LICENSE.txt" }
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering"
]
dependencies = [
'eval-type-backport',
Expand Down

0 comments on commit affc586

Please sign in to comment.