Skip to content

Commit

Permalink
Add index.html to manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenchrist committed May 5, 2024
1 parent c5b499a commit 1cc9bde
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

## [0.10.3] - 2024-05-05

### Fixed
- datacontract catalog: Add index.html to manifest

## [0.10.2] - 2024-05-05

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include datacontract/templates/index.html
include datacontract/templates/datacontract.html
include datacontract/templates/style/output.css
2 changes: 2 additions & 0 deletions datacontract/catalog/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ def create_index_html(contracts, path):
)

# Load the required template
# needs to be included in /MANIFEST.in
template = env.get_template("index.html")

# needs to be included in /MANIFEST.in
style_content, _, _ = package_loader.get_source(env, "style/output.css")

tz = pytz.timezone("UTC")
Expand Down
4 changes: 3 additions & 1 deletion datacontract/export/html_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import yaml
from jinja2 import Environment, PackageLoader, select_autoescape

from datacontract.model.data_contract_specification import DataContractSpecification
from datacontract.model.data_contract_specification import \
DataContractSpecification


def to_html(data_contract_spec: DataContractSpecification) -> str:
Expand All @@ -21,6 +22,7 @@ def to_html(data_contract_spec: DataContractSpecification) -> str:
)

# Load the required template
# needs to be included in /MANIFEST.in
template = env.get_template("datacontract.html")

if data_contract_spec.quality is not None and isinstance(data_contract_spec.quality.specification, str):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "datacontract-cli"
version = "0.10.2"
version = "0.10.3"
description = "Test data contracts"
readme = "README.md"
authors = [
Expand Down

0 comments on commit 1cc9bde

Please sign in to comment.