Skip to content

Commit 066462e

Browse files
author
Rusty Holleman
committed
Merge branch 'master' of https://github.com/rustychris/stompy
2 parents b9bcbac + 43d4cd7 commit 066462e

31 files changed

+186
-75
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: Publish Python distribution to PyPI and TestPyPI
2+
3+
on: push
4+

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/stompy.iml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,33 @@
1-
# stompy
1+
# stompy: spatial tools for ocean modeling in python
22

33
Various python modules related to modeling and oceanographic data analysis.
44

5-
## Installation
5+
## Prerequisites
66

7-
There is not yet a pip or conda installer setup. (if you use this code and would find that useful, please
8-
add an issue on github so I know somebody cares).
7+
`stompy` requires a Python 3 environment with `gdal` installed. There are many ways to set this up. The recommended method would be creating a `mamba` (or `conda`) environment:
98

10-
### Requirements
9+
```
10+
mamba create -n <env-name> python gdal
11+
mamba activate <env-name>
12+
```
1113

12-
`stompy` makes extensive use of the core packages of a modern scientific python installation,
13-
plus a few slightly more specialized modules:
14+
## Installation
1415

15-
* python 2.7 or 3
16-
* six
17-
* numpy
18-
* scipy
19-
* gdal
20-
* shapely
21-
* matplotlib
22-
* xarray
23-
* pandas
24-
* netCDF
25-
26-
### Installation
2716

28-
Python must be able to find the `stompy` subdirectory of the repository. So on Linux, this might look like:
17+
### Installing with `pip`
2918

3019
```
31-
cd $HOME/src
32-
git clone https://github.com/rustychris/stompy.git
33-
export PYTHONPATH=$PYTHONPATH:$HOME/src/stompy
20+
pip install stompy-ocean
3421
```
3522

36-
At this point, you should be able to start python and successfully run `import stompy.grid.unstructured_grid`, for example.
23+
### Installing with `mamba`/`conda`
24+
25+
Coming soon
26+
27+
## Documentation
28+
29+
See the [Documentation pages](https://stompy.readthedocs.io/en/latest/) for descriptions of the various modules.
30+
31+
## Issues
3732

38-
33+
If you run into any bugs using `stompy`, you are encouraged to submit an [Issue](https://github.com/rustychris/stompy/issues) or PR to this repo.

pyproject.toml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# pyproject.toml
2+
3+
[build-system]
4+
requires = ["setuptools>=67.0.0", "wheel"]
5+
build-backend = "setuptools.build_meta"
6+
7+
[project]
8+
name = "stompy-ocean"
9+
version = "0.0.3"
10+
description = "Various python modules related to modeling and oceanographic data analysis."
11+
readme = {file = "README.md", content-type = "text/markdown"}
12+
authors = [{ name = "Rusty Holleman", email = "[email protected]" }]
13+
license = { file = "LICENSE" }
14+
classifiers = [
15+
"License :: OSI Approved :: MIT License",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3",
18+
]
19+
keywords = ["modeling", "oceanography", "grid"]
20+
dependencies = ["cmocean",
21+
"matplotlib",
22+
"netCDF4",
23+
"pandas",
24+
"requests",
25+
"scipy",
26+
"Shapely",
27+
"six",
28+
"xarray",
29+
"seawater",
30+
"gdal<3.9",
31+
"numpy<2.0",
32+
"cgal"
33+
]
34+
requires-python = ">=3.0"
35+
36+
[tool.setuptools]
37+
packages=['stompy', 'stompy.grid', 'stompy.io', 'stompy.io.local',
38+
'stompy.model', 'stompy.model.delft', 'stompy.model.fvcom',
39+
'stompy.model.pypart', 'stompy.model.suntans',
40+
'stompy.plot', 'stompy.plot.cmaps',
41+
'stompy.spatial']
42+
43+
[tool.setuptools.package-data]
44+
stompy = ["tide_consts.txt"]
45+
46+
[project.urls]
47+
Homepage = "https://github.com/rustychris/stompy"

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
cmocean
2-
future
32
gdal
43
matplotlib
5-
pyqt
64
netCDF4
75
numpy
86
pandas

0 commit comments

Comments
 (0)