Skip to content

Commit

Permalink
Workaround for invenio uritemplate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus committed Jan 16, 2024
1 parent 43b0a25 commit 4cc9310
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nrp-devtools"
version = "0.1.3"
version = "0.1.4"
description = "NRP repository development tools"
readme = "README.md"
authors = [
Expand Down
3 changes: 3 additions & 0 deletions src/nrp_devtools/commands/pdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def check_invenio_callable(config, **kwargs):
def install_python_repository(config, **kwargs):
run_pdm(config, "install", "--dev", "--no-lock")

# fixup for uritemplate / uritemplate.py
run_cmdline(config.venv_dir / "bin" / "pip", "install", "-U",
"--force-reinstall", "--upgrade-strategy", "eager", "uritemplate")

def create_pdm_file(config: OARepoConfig, output_directory: str):
original_pdm_file = tomli.loads(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ The repository contains the following files and directories:

- `oarepo.yaml` - the main configuration file for the repository
- `pyproject.toml` - python dependencies and plugins
- `site` - directory with the site sources, including styles, images, fonts, and docker files
- `ui` - directory containing the UI sources, such as title page, search page, record detail page, etc.
- `ui/branding` - branding information, including colors, logo, favicon etc.
- `models` - directory containing the metadata schemas
Expand Down

0 comments on commit 4cc9310

Please sign in to comment.