Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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 CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

### Changed

- The publish job and `task publish` refuse to run while `ECCENCA_MARKETPLACE_URL` is unset: without it `cmemc package publish` publishes to `https://eccenca.market`, so a package meant for a self-hosted marketplace went public on its first merge to main. A package published to eccenca.market sets `ECCENCA_MARKETPLACE_URL=https://eccenca.market` in its CI variables once
- The `shapes` skill says that a class the package does not own - from a vocabulary it ships unchanged or depends on, such as QUDT or FOAF - gets its icon from a `foaf:depiction` on the package's node shape, so its resources show an icon in Explore without the package changing the source's vocabulary; the `vocabulary` skill's depictions reference points there

## [1.8.0] 2026-10-18
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ copier copy -r develop gh:eccenca/cmem-package-template your-new-vocabulary-pack
| `package_description` | Short description | - |
| `python_dependencies` | Comma-separated Python package dependencies (project packages only) | - |
| `vocab_dependencies` | Comma-separated vocabulary/project dependencies (project packages only) | - |
| `marketplace` | Publish this package to the marketplace? A no leaves the publish job out of `.gitlab-ci.yml` | `true` |
| `marketplace` | Publish this package to a marketplace? The publish job and `task publish` publish to the marketplace `ECCENCA_MARKETPLACE_URL` names and refuse to run without it; a no leaves the publish job out of `.gitlab-ci.yml` | `true` |
| `github_page` | Link to GitHub page of the package | - |

## Generated Structure
Expand Down
8 changes: 5 additions & 3 deletions copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ marketplace:
type: bool
default: true
help: >-
marketplace: Will this package be published to the eccenca marketplace?
Answer no for internal packages - the publish job is then left out of
the generated .gitlab-ci.yml.
marketplace: Will this package be published to a marketplace? The
publish job publishes to the marketplace ECCENCA_MARKETPLACE_URL names
(https://eccenca.market for a public package) and refuses to run without
it. Answer no for packages nobody publishes - the publish job is then
left out of the generated .gitlab-ci.yml.

github_page:
type: str
Expand Down
3 changes: 3 additions & 0 deletions src/.gitlab-ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ publish:
elif [ -z "${ECCENCA_MARKETPLACE_ACCOUNT}" ]; then
echo "ECCENCA_MARKETPLACE_ACCOUNT not available ..."
exit 1
elif [ -z "${ECCENCA_MARKETPLACE_URL}" ]; then
echo "ECCENCA_MARKETPLACE_URL not available: name the marketplace this package publishes to (https://eccenca.market for a public package) ..."
exit 1
else
task publish
fi
Expand Down
5 changes: 5 additions & 0 deletions src/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ tasks:
msg: >
No package archive for version {{.PACKAGE_VERSION}} found in
{{.DIST_DIR}}. Run 'task build' first.
- sh: test -n "${ECCENCA_MARKETPLACE_URL}"
msg: >
ECCENCA_MARKETPLACE_URL is not set. Name the marketplace this package
publishes to (https://eccenca.market for a public package): without it
cmemc publishes to https://eccenca.market.
cmds:
- cmemc package publish {{.DIST_DIR}}/{{.PACKAGE_ID}}-{{.PACKAGE_VERSION}}.cpa

Loading