Skip to content

Commit

Permalink
Attempt to pin the reqs and add mambaforge for docs build (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottstanie authored Jul 17, 2023
1 parent daffb33 commit 4831efb
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 50 deletions.
7 changes: 6 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ version: 2
mkdocs:
configuration: mkdocs.yml

build:
os: "ubuntu-20.04"
tools:
python: "mambaforge-4.10"

conda:
environment: docs/conda-env.yml

Expand All @@ -14,4 +19,4 @@ python:
- method: pip
path: .
extra_requirements:
- docs
- docs
27 changes: 13 additions & 14 deletions docs/conda-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ name: compass-docs-env
channels:
- conda-forge
dependencies:
- python[version='>=3.9']
- numpy
- lxml
- gdal[version='>=3']
- pandas
- pyproj
- pysolid
- pytest
- ruamel.yaml
- scipy
- yamale
- h5py
- shapely
- requests
- python[version='>=3.8']
- numpy=1.24
- lxml=4.9
- gdal=3.6
- pandas=2.0
- pyproj=3.5
- pysolid=0.3
- ruamel.yaml=0.17
- scipy=1.10
- yamale=4.0
- h5py=3.8
- shapely=2.0
- requests=2.31
35 changes: 32 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
[build-system]
requires = [
"setuptools>=42"
]
requires = [ "setuptools>=64.0" ]
build-backend = "setuptools.build_meta"

[project]
name = "compass"
description = "A Package to Generate Coregistered Multi-temporal SAR SLC"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.8"
license = {file = "LICENSE.txt"}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dynamic = ["version", "optional-dependencies"]

[tool.setuptools.dynamic]
version = {attr = "compass.__version__"}

[project.urls]
Homepage = "https://github.com/opera-adt/compass"
"Bug Tracker" = "https://github.com/opera-adt/compass/issues"

# Entry points for the command line interface
[project.scripts]
"s1_cslc.py" = "compass.s1_cslc:main"
"s1_geocode_stack.py" = "compass.s1_geocode_stack:main"
"validate_product.py" = "compass.utils.validate_product:main"

# extra requirements: `pip install compass[docs]` or `pip install .[docs]`
[tool.setuptools.dynamic.optional-dependencies.docs]
file = ["docs/requirements.txt"]
32 changes: 0 additions & 32 deletions setup.cfg

This file was deleted.

0 comments on commit 4831efb

Please sign in to comment.