Skip to content

Commit

Permalink
update installation guides (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
RHammond2 authored Jun 27, 2024
1 parent a10d5fa commit fca6da8
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 25 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Fixes a bug in `RepairManager.purge_subassemble_requests()` where the pending tows are cleared regardless of whether or not the focal subassembly is the cause of the tow, leading to a simulation failure.
- Fixes a bug in `utilities/utilities.py:create_variable_from_string()` to operate in a way that is expected. The original method was removing all numerics, but only leading punctuation and numerics should be replaced, with any punctuation being replaced with an underscore.
- Adds additional inline comments for clarification on internal methods.
- Update README.md to be inline with current conda and Python standards.

## v0.9.3 (15 February 2024)

Expand Down
83 changes: 59 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,7 @@ folder, but here are a few highlights:

### Requirements

* Python 3.8 through 3.10

> **Note**
> For Python 3.10 users that seek to install more than the base dependencies, it has
> been noted that pip may take a long time to resolve all of the package requirements,
> so it is recommended to use the following workflow:
```console
# Enter the source code directory
cd wombat/

# First install the base package requirements
pip install -e .

# Then install whichever additional dependencies are required/desired
pip install -e '.[dev]' # '.[docs]' or '.[all]'
```
* Python 3.9 through 3.12

### Environment Setup

Expand All @@ -91,7 +75,7 @@ for the appropriate OS version.
Using conda, create a new virtual environment:

```console
conda create -n <environment_name> python=3.8 --no-default-packages
conda create -n <environment_name> python=3.11
conda activate <environment_name>
conda install -c anaconda pip

Expand All @@ -104,15 +88,23 @@ conda deactivate

### Installation

Once in your desired environment, WOMBAT can be installed from PyPI via `pip install`
or from source.

#### Pip

This option is best for those working with the latest release, or including WOMBAT as
a tool in a workflow without the desire to modify the source code.

```console
pip install wombat
```

#### From Source

This option is ideal for users that wish to work with the examples, modify the source
code, and/or contribute back to the project.

Install it directly into an activated virtual environment:

```console
Expand All @@ -136,14 +128,15 @@ wombat.__version__

For further usage, please see the documentation site at https://wisdem.github.io/WOMBAT.


### Requirements for Contributing to WOMBAT

#### Code Contributions

Code contributors should note that there is both an additional dependency suite for
running the tests and enabling the pre-commit workflow to automically standardize the
core code formatting principles.
running the tests and enabling the pre-commit workflow to automatically standardize the
core code formatting principles. In short, the following steps should be taken, but be
sure to read the
[contributor's guide](https://wisdem.github.io/WOMBAT/contributing.html)

```console
git clone https://github.com/WISDEM/WOMBAT.git
Expand All @@ -170,7 +163,7 @@ Basic pre-commit issues that users might encounter and their remedies:
applied changes. Once all checks pass, the commit is safe to be pushed.
* `isort`, `black`, or simple file checks failed, but made changes
* rerun the `add` and `commit` processes as needed until the changes satisfy the checks
* `pylint` or `flake8` failed:
* `ruff` failed:
* Address the errors and rerun the `add` and `commit` processes
* `mypy` has type errors that seem incorrect
* Double check the typing is in fact as correct as it seems it should be and rerun the
Expand All @@ -194,8 +187,8 @@ Build the site

> **Note**
> You may want to change the "execute_notebooks" parameter in the `docs/_config.yaml`
> file to "off" unless you're updating the coded examples or they will be run every time
> you build the site.
> file to "off" unless you're updating the coded examples, or they will be run every
> time you build the site.
```console
jupyter-book build docs
Expand All @@ -210,3 +203,45 @@ git clone https://github.com/WISDEM/WOMBAT.git
cd wombat
pip install -e '.[all]'
```

### Dependencies

Standard dependencies:

* attrs>=21
* numpy>=1.21
* scipy>=1.8
* pandas>=2
* polars>=0.17
* pyarrow>=10
* jupyterlab>=3
* simpy>=4.0.1
* pyyaml>=6
* geopy>=2.3
* networkx>=2.7
* matplotlib>=3.3
* types-attrs>=19
* types-typed-ast>=1.5
* types-PyYAML>=6
* types-python-dateutil>=2.8

Optional "dev" dependencies:

* pre-commit>=2.20
* isort>=5.10
* pytest>=7
* pytest-cov>=4
* mypy==0.991
* ruff>=0.2
* pyupgrade

Optional "docs" dependencies:

* jupyter-book>=0.15
* myst-nb>=0.16
* myst-parser>=0.17
* linkify-it-py>=2
* sphinx-autodoc-typehints
* sphinxcontrib-autoyaml
* sphinxcontrib-bibtex>=2.4
* sphinxcontrib-spelling>=7
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for the appropriate OS version.
Using conda, create a new virtual environment, replacing `<environment_name>` with a name
of your choosing (without spaces):
```text
$ conda create -n <environment_name> python=3
$ conda create -n <environment_name> python=3.x # use your preferred 3.9-3.12 version
$ conda activate <environment_name>
```
You can now use ``conda activate <environment_name>`` to enter the environment and
Expand Down

0 comments on commit fca6da8

Please sign in to comment.