-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
137 setuptools is not installing requirements properly (#138)
* shift from setuptools to poetry * add poetry.lock * remove python from env and manage by poetry instead * windows pip test. ubuntu poetry test. auto version from init * update README
- Loading branch information
1 parent
ed228f4
commit 5a4fc50
Showing
10 changed files
with
4,317 additions
and
190 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build and test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
Windows_pip: | ||
runs-on: windows-latest | ||
timeout-minutes: 60 | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install pyopia | ||
run: pip install ./ | ||
|
||
- name: Test | ||
run: python -m pytest -v | ||
Ubuntu_poetry: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install poetry | ||
uses: abatilo/actions-poetry@v2 | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Run the automated tests | ||
run: poetry run pytest -v |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
flake8 | ||
docopt | ||
setuptools | ||
pytest-error-for-skips | ||
sphinx_rtd_theme>=0.5.0 | ||
sphinxcontrib-napoleon>=0.7 | ||
sphinx-togglebutton | ||
sphinx-copybutton | ||
readthedocs-sphinx-search | ||
myst-nb | ||
jupyter_book | ||
ipykernel>=6.19.4 | ||
flake8 | ||
docopt | ||
setuptools | ||
pytest-error-for-skips | ||
sphinx_rtd_theme>=0.5.0 | ||
sphinxcontrib-napoleon>=0.7 | ||
sphinx-togglebutton | ||
sphinx-copybutton | ||
readthedocs-sphinx-search | ||
myst-nb | ||
jupyter_book | ||
ipykernel>=6.19.4 |
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 |
---|---|---|
|
@@ -2,5 +2,4 @@ name: pyopia | |
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.10 | ||
- pip | ||
- poetry |
Large diffs are not rendered by default.
Oops, something went wrong.
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,51 @@ | ||
[tool.poetry] | ||
name = "pyopia" | ||
version = "0" | ||
description = "A Python Ocean Particle Image Analysis toolbox." | ||
authors = ["Emlyn Davies <emlyn.davies@sintef.no>"] | ||
readme = "README.md" | ||
packages = [{include = "pyopia"}] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.10,<3.12" | ||
flake8 = "^6.1.0" | ||
numpy = "^1.24.0" | ||
pandas = {version = ">=2.1", extras = ["computation", "hdf5"]} | ||
h5py = "^3.9.0" | ||
scipy = "^1.11.2" | ||
scikit-image = "^0.21.0" | ||
pytest = ">=7.2.0" | ||
imageio = "^2.31.3" | ||
matplotlib = ">=3.7" | ||
tqdm = "^4.66.1" | ||
pytest-error-for-skips = "^2.0.2" | ||
nbclient = "0.7" | ||
sphinx = "5.0" | ||
sphinx-rtd-theme = ">=0.5.0" | ||
sphinxcontrib-napoleon = ">=0.7" | ||
sphinx-togglebutton = "^0.3.2" | ||
sphinx-copybutton = "^0.5.2" | ||
readthedocs-sphinx-search = "^0.3.1" | ||
myst-nb = "^0.17.2" | ||
jupyter-book = "^0.15.1" | ||
ipykernel = ">=6.19.4" | ||
urllib3 = "<2.0" | ||
gdown = "^4.7.1" | ||
cmocean = "^3.0.3" | ||
toml = "^0.10.2" | ||
xarray = "^2023.8.0" | ||
typer = {extras = ["all"], version = "^0.9.0"} | ||
tensorflow-io-gcs-filesystem = "0.31.0" | ||
tensorflow-cpu = "^2.13.0" | ||
|
||
[tool.poetry-version-plugin] | ||
source = "init" | ||
|
||
[tool.poetry.scripts] | ||
pyopia = "pyopia.cli:app" | ||
|
||
[build-system] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.setuptools_scm] |
This file was deleted.
Oops, something went wrong.