Skip to content

Commit

Permalink
Update copier version
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholls committed Jun 14, 2024
1 parent a7e1f92 commit d006a11
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v0.5.2
_commit: v0.6.2
_src_path: gl:climate-resource/copier-core-python-repository
email: [email protected]
initial_setup: true
Expand All @@ -12,3 +12,4 @@ project_name_human: OpenSCM-Units
project_name_pip: openscm-units
project_name_python: openscm_units
project_url: https://github.com/openscm/openscm-units
track_lock_file: false
9 changes: 0 additions & 9 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

5 changes: 4 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ runs:
pipx install poetry
which poetry
poetry --version # Check poetry installation
- name: Lock poetry # lock file is needed for the next step, but we don't track our lock file
- name: Lock poetry
# Lock file is needed for the next step,
# but we don't track our lock file
# so we we generate one here.
shell: bash
run: poetry lock
- name: Set up Python ${{ inputs.python-version }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ jobs:
- name: Check build
run: |
tar -tvf dist/openscm_units-*.tar.gz --wildcards '*openscm_units/py.typed'
tar -tvf dist/openscm_units-*.tar.gz --wildcards 'openscm_units-*/LICENCE'
check-dependency-licences:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Notebooks
*.ipynb

# Lock file
poetry.lock

# Databases
*.db

Expand Down
11 changes: 8 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"
python: "3.11"
jobs:
post_create_environment:
- pip install poetry
- poetry config virtualenvs.create false
post_install:
- poetry install --with docs --all-extras
# RtD seems to be not happy with poetry installs,
# hence use pip directly instead.
- poetry export -f requirements.txt --output requirements.txt --with docs
- python -m pip install -r requirements.txt
- python -m pip install .
- python -m pip list

# Build documentation in the docs/ directory with Sphinx
# Set sphinx configuration
sphinx:
configuration: docs/source/conf.py
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Handling of units related to simple climate modelling.
[![PyPI install](https://github.com/openscm/openscm-units/actions/workflows/install.yaml/badge.svg?branch=main)](https://github.com/openscm/openscm-units/actions/workflows/install.yaml)

**Other info :**
[![License](https://img.shields.io/github/license/openscm/openscm-units.svg)](https://github.com/openscm/openscm-units/blob/main/LICENSE)
[![Licence](https://img.shields.io/github/license/openscm/openscm-units.svg)](https://github.com/openscm/openscm-units/blob/main/LICENCE)
[![Last Commit](https://img.shields.io/github/last-commit/openscm/openscm-units.svg)](https://github.com/openscm/openscm-units/commits/main)
[![Contributors](https://img.shields.io/github/contributors/openscm/openscm-units.svg)](https://github.com/openscm/openscm-units/graphs/contributors)

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ authors = [
readme = "README.md"
packages = [{include = "openscm_units", from = "src"}]
license = "BSD-3-Clause"
include = ["LICENCE"] # poetry uses US English so assumes it will be spelt LICENSE

[tool.poetry.dependencies]
python = "^3.9"
Expand Down

0 comments on commit d006a11

Please sign in to comment.