-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from arup-group/fixes-post-release
Post-release updates & fixes
- Loading branch information
Showing
7 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,11 +65,8 @@ To install PAM, we recommend using the [mamba](https://mamba.readthedocs.io/en/l | |
### As a user | ||
<!--- --8<-- [start:docs-install-user] --> | ||
``` shell | ||
git clone [email protected]:arup-group/pam.git | ||
cd pam | ||
mamba create -n pam -c conda-forge -c city-modelling-lab --file requirements/base.txt | ||
mamba create -n pam -c conda-forge -c city-modelling-lab cml-pam | ||
mamba activate pam | ||
pip install --no-deps . | ||
``` | ||
<!--- --8<-- [end:docs-install-user] --> | ||
### As a developer | ||
|
@@ -82,6 +79,11 @@ mamba activate pam | |
pip install --no-deps -e . | ||
``` | ||
<!--- --8<-- [end:docs-install-dev] --> | ||
|
||
### Installing with pip | ||
|
||
Installing directly with pip as a user (`pip install cml-pam`) or as a developer (`pip install -e '.[dev]'`) is also possible, but you will need the `libgdal` & `libspatialindex` geospatial non-python libraries pre-installed. | ||
|
||
For more detailed instructions, see our [documentation](https://arup-group.github.io/pam/latest/installation/). | ||
|
||
## Contributing | ||
|
@@ -111,4 +113,4 @@ mike deploy 0.2 | |
mike serve | ||
``` | ||
|
||
Then you can view the documentation in a browser at http://localhost:8000/. | ||
Then you can view the documentation in a browser at <http://localhost:8000/>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,27 +7,29 @@ As a PAM user, it is easiest to install PAM using the [mamba](https://mamba.read | |
|
||
1. Install mamba with the [Mambaforge](https://github.com/conda-forge/miniforge#mambaforge) executable for your operating system. | ||
2. Open the command line (or the "miniforge prompt" in Windows). | ||
3. Download (a.k.a., clone) the PAM repository: `git clone [email protected]:arup-group/pam.git` | ||
4. Change into the `pam` directory: `cd pam` | ||
5. Create the PAM mamba environment: `mamba create -n pam -c conda-forge -c city-modelling-lab --file requirements/base.txt` | ||
6. Activate the PAM mamba environment: `mamba activate pam` | ||
7. Install the PAM package into the environment, ignoring dependencies (we have dealt with those when creating the mamba environment): `pip install --no-deps .` | ||
3. Create the PAM mamba environment and install `cml-pam` into it: `mamba create -n pam -c conda-forge -c city-modelling-lab cml-pam` | ||
4. Activate the PAM mamba environment: `mamba activate pam` | ||
|
||
All together: | ||
|
||
--8<-- "README.md:docs-install-user" | ||
|
||
We do not recommend trying to install PAM directly with pip (e.g. in a virtual environment) as you need to first install underlying native geospatial libraries, the method for which differs by operating system. | ||
If you choose to install into a virtual environment, ensure you have `libgdal` and `libspatialindex` installed on your device before installing with pip. | ||
If you choose to install into a virtual environment, ensure you have `libgdal` and `libspatialindex` installed on your device before installing with pip: | ||
|
||
``` bash | ||
pip install cml-pam | ||
``` | ||
|
||
### Running the example notebooks | ||
|
||
If you have followed the non-developer installation instructions above, you will need to install `jupyter` into your `pam` environment to run the [example notebooks](https://github.com/arup-group/pam/tree/main/examples): | ||
|
||
``` shell | ||
mamba install -n pam jupyter | ||
``` | ||
|
||
With Jupyter installed, it's easiest to then add the environment as a jupyter kernel: | ||
With Jupyter installed, it's easiest to then add the environment as a jupyter kernel: | ||
|
||
``` shell | ||
mamba activate pam | ||
|
@@ -36,10 +38,11 @@ jupyter notebook | |
``` | ||
|
||
### Choosing a different environment name | ||
|
||
If you would like to use a different name to `pam` for your mamba environment, the installation becomes (where `[my-env-name]` is your preferred name for the environment): | ||
|
||
``` shell | ||
mamba create -n [my-env-name] -c conda-forge -c city-modelling-lab --file requirements/base.txt | ||
mamba create -n [my-env-name] -c conda-forge -c city-modelling-lab cml-pam | ||
mamba activate [my-env-name] | ||
ipython kernel install --user --name=[my-env-name] | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "0.3.0" | ||
__version__ = "0.3.1.dev" | ||
|
||
|
||
class PAMValidationError(Exception): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters