-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
821f634
commit ee5875d
Showing
5 changed files
with
37 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2023 Alliander | ||
SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
# Why this directory | ||
|
||
It contains the SHACL build files, only meant to build a second distribution package. | ||
The CI & co happen in the main poetry/github files. | ||
|
||
The main `pycgmes` package does not have the SHACL files. | ||
|
||
# Actual Shacl files | ||
|
||
They are in the [main tree](../pycgmes/shacl/). | ||
|
||
# Build | ||
|
||
To be able to build multiple pacakges based om the same source, things need to be a bit different, because: | ||
|
||
- poetry does not allow another name for `pyproject.toml` | ||
- you cannot by default include files outside the directory of the `pyproject.toml` | ||
|
||
This is neatly worked around via a plugin, written by one of the maintainer of poetry, so it feels safe enough. | ||
|
||
```bash | ||
poetry self add poetry-multiproject-plugin | ||
poetry build-project --with-top-namespace pycgmes | ||
``` | ||
|
||
Note that to build pycgmes-shacl, you **need to** be in the shacl directory. Using `-C` will not work | ||
because of some relative paths. | ||
Addition to [pycgmes](https://pypi.org/project/pycgmes/) to handle shacl validation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2023 Alliander | ||
SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
# Why this directory | ||
|
||
It contains the SHACL build files, only meant to build a second distribution package. | ||
The CI & co happen in the main poetry/github files. | ||
|
||
The main `pycgmes` package does not have the SHACL files. | ||
|
||
# Actual Shacl files | ||
|
||
They are in the [main tree](../pycgmes/shacl/). | ||
|
||
# Build | ||
|
||
To be able to build multiple pacakges based om the same source, things need to be a bit different, because: | ||
|
||
- poetry does not allow another name for `pyproject.toml` | ||
- you cannot by default include files outside the directory of the `pyproject.toml` | ||
|
||
This is neatly worked around via a plugin, written by one of the maintainer of poetry, so it feels safe enough. | ||
|
||
```bash | ||
poetry self add poetry-multiproject-plugin | ||
poetry build-project --with-top-namespace pycgmes | ||
``` | ||
|
||
Note that to build pycgmes-shacl, you **need to** be in the shacl directory. Using `-C` will not work | ||
because of some relative paths. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters