Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to PDM for dependency management #169

Merged
merged 27 commits into from
Sep 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ __pycache__
dask-worker-space
.ipynb_checkpoints
.vscode
.pdm.toml
/dist

*.DS_Store
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: local
hooks:
- id: pdm-check
name: pdm check
description: Check that PDM lockfile is up to date
entry: pdm install --check --dry-run
files: "^pyproject.toml$"
language: python
language_version: python3
pass_filenames: false
10 changes: 5 additions & 5 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ version: 2
sphinx:
configuration: docs/conf.py

# https://github.com/readthedocs/readthedocs.org/issues/4912#issuecomment-1143587902
build:
os: ubuntu-20.04
tools:
python: '3.8'
python: "3.8"
jobs:
post_install:
- pip install poetry==1.1.13
- poetry config virtualenvs.create false
- poetry install --no-dev -E docs -E viz
- pip install --upgrade pdm
# https://github.com/pdm-project/pdm/discussions/1365#discussioncomment-3581356
# NOTE: pandoc fails in isolation mode
- VIRTUAL_ENV=$(dirname $(dirname $(which python))) pdm install --no-isolation -G viz -dG docs
4 changes: 1 addition & 3 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

set -ex

poetry config virtualenvs.create false
poetry install -E binder -E viz
VIRTUAL_ENV=$(dirname $(dirname $(which python))) pdm install -G viz -dG binder
2 changes: 1 addition & 1 deletion binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
poetry
pdm
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

DISTRIBUTION_METADATA = importlib.metadata.metadata("stackstac")

author = DISTRIBUTION_METADATA["Author"]
author = DISTRIBUTION_METADATA["Author-email"].split(" <")[0]
project = DISTRIBUTION_METADATA["Name"]
version = DISTRIBUTION_METADATA["Version"]
copyright = f"{datetime.datetime.now().year}, {author}"
Expand Down
Loading