Skip to content

Commit

Permalink
Merge pull request #16 from statisticsnorway/structure-repo
Browse files Browse the repository at this point in the history
Structure repo into src and generated directories
  • Loading branch information
mmwinther authored Nov 15, 2023
2 parents 4435d2a + 7c48ce3 commit 2f9ec48
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ jobs:
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
package_directory: "generated/python/datadoc_model_legacy"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ This package contains pydantic models defining the fields and data types used in
Fields and data types defined in models in this package are specified on internal Statistics Norway wiki pages:

- <https://statistics-norway.atlassian.net/l/cp/kQ9rpshS>

## Code generation

The models are defined as [JSON Schema](https://json-schema.org/) documents. These reside within the `src/` directory in this repo. Code for a range of languages is generated from the JSON Schema and will live inside the `generated/` directory, with a subdirectory for each language.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ license = "MIT"
readme = "README.md"
repository = "https://github.com/statisticsnorway/ssb-datadoc-model"

packages = [
{ include = "datadoc_model" },
]
packages = [{ include = "datadoc_model" }]

[tool.poetry.dependencies]
python = ">=3.8"
Expand All @@ -18,7 +16,6 @@ pydantic = ">=2.4.0"
[tool.poetry.dev-dependencies]
black = "*"
ipython = "*"
bump2version = "*"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2f9ec48

Please sign in to comment.