Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
thomass-dev committed Oct 16, 2024
1 parent 9c9ac3d commit ec2ec99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/skore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ jobs:
fail-fast: true
matrix:
os: ['ubuntu-latest', 'windows-latest']
python-version: ['3.12']
# os: ['ubuntu-latest', 'windows-latest']
# python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
12 changes: 5 additions & 7 deletions skore/hatch/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@

class MetadataHook(MetadataHookInterface):
def update(self, metadata):
license = Path(self.root, self.config["license-file"]).read_text()
readme = Path(self.root, self.config["readme-file"]).read_text()
version = self.config["version-default"]
readme = Path(self.root, self.config["readme-file"]).read_text(encoding="utf8")
license = Path(self.root, self.config["license-file"]).read_text(
encoding="utf8"
)

with suppress(FileNotFoundError):
version = Path(self.root, "VERSION.txt").read_text(encoding="utf8")
version = Path(self.root, "VERSION.txt").read_text()

metadata["version"] = version
metadata["readme"] = {"text": readme, "content-type": "text/markdown"}
metadata["license"] = {"text": license, "content-type": "text/plain"}
metadata["readme"] = {"text": readme, "content-type": "text/markdown"}
metadata["version"] = version

0 comments on commit ec2ec99

Please sign in to comment.