Skip to content

Commit

Permalink
Fix build info after first upload
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-alliander committed Sep 1, 2023
1 parent 821f634 commit ee5875d
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
build:
uses: ./.github/workflows/_core.yaml
with:
deploy: true
deploy: false
secrets:
PYCGMES_PYPI_TOKEN: ${{ secrets.PYCGMES_PYPI_TOKEN }}
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ repository = "https://github.com/alliander-opensource/pycgmes"
license = "Apache 2.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: AWS CDK :: 2",
"Framework :: FastAPI",
"Framework :: Pydantic",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
34 changes: 1 addition & 33 deletions shacl/Readme.md
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.
33 changes: 33 additions & 0 deletions shacl/build.md
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.
5 changes: 1 addition & 4 deletions shacl/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ name = "pycgmes-shacl"
version = "0.9.11"
description = "Python dataclasses for CGMES 3.0.0"
authors = ["pycgmes <pycgmes@alliander.com>"]
# readme = "README.md"
readme = "Readme.md"
repository = "https://github.com/alliander-opensource/pycgmes"
license = "Apache 2.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: AWS CDK :: 2",
"Framework :: FastAPI",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down

0 comments on commit ee5875d

Please sign in to comment.