Skip to content

Commit

Permalink
Merge pull request #4 from candleindark/enh
Browse files Browse the repository at this point in the history
Update path, package name, and documentation due to repo name change
  • Loading branch information
candleindark authored Sep 13, 2024
2 parents 35b2fbf + 1ebe7aa commit 12feb36
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 21 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# dandisets-linkml-status
# dandisets-linkml-status-tools

[![PyPI - Version](https://img.shields.io/pypi/v/dandisets-linkml-status.svg)](https://pypi.org/project/dandisets-linkml-status)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dandisets-linkml-status.svg)](https://pypi.org/project/dandisets-linkml-status)
[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)

-----
Expand All @@ -15,4 +13,4 @@

[//]: # (todo: make sure this is the correct license. Update LICENSE.TXT accordingly as well)

`dandisets-linkml-status` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
`dandisets-linkml-status-tools` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "dandisets-linkml-status"
name = "dandisets-linkml-status-tools"
dynamic = ["version"]
description = 'A tool for reporting the status of the translation of DANDI schemas from Pydantic definitions to LinkML'
description = 'Tools for reporting the status of the translation of DANDI schemas from Pydantic definitions to LinkML definitions'
readme = "README.md"
requires-python = ">=3.9"
license = "MIT" # todo: Is this the correct license?
Expand All @@ -32,15 +32,15 @@ dependencies = [
]

[project.urls]
Documentation = "https://github.com/dandi/dandisets-linkml-status#readme"
Issues = "https://github.com/dandi/dandisets-linkml-status/issues"
Source = "https://github.com/dandi/dandisets-linkml-status"
Documentation = "https://github.com/dandi/dandisets-linkml-status-tools#readme"
Issues = "https://github.com/dandi/dandisets-linkml-status-tools/issues"
Source = "https://github.com/dandi/dandisets-linkml-status-tools"

[project.scripts]
dandisets-linkml-status = "dandisets_linkml_status.cli:app"
dandisets-linkml-status = "dandisets_linkml_status_tools.cli:app"

[tool.hatch.version]
path = "src/dandisets_linkml_status/__about__.py"
path = "src/dandisets_linkml_status_tools/__about__.py"

[tool.hatch.metadata]
allow-direct-references = true
Expand All @@ -61,19 +61,19 @@ extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/dandisets_linkml_status tests}"
check = "mypy --install-types --non-interactive {args:src/dandisets_linkml_status_tools tests}"

[tool.coverage.run]
source_pkgs = ["dandisets_linkml_status", "tests"]
source_pkgs = ["dandisets_linkml_status_tools", "tests"]
branch = true
parallel = true
omit = [
"src/dandisets_linkml_status/__about__.py",
"src/dandisets_linkml_status_tools/__about__.py",
]

[tool.coverage.paths]
dandisets_linkml_status = ["src/dandisets_linkml_status", "*/dandisets-linkml-status/src/dandisets_linkml_status"]
tests = ["tests", "*/dandisets-linkml-status/tests"]
dandisets_linkml_status_tools = ["src/dandisets_linkml_status_tools", "*/dandisets-linkml-status-tools/src/dandisets_linkml_status_tools"]
tests = ["tests", "*/dandisets-linkml-status-tools/tests"]

[tool.coverage.report]
exclude_lines = [
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if __name__ == "__main__":
import sys

from dandisets_linkml_status.cli import app
from dandisets_linkml_status_tools.cli import app

sys.exit(app())
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from dandi.dandiapi import DandiAPIClient
from pydantic2linkml.cli.tools import LogLevel

from dandisets_linkml_status.cli.tools import compile_validation_report, output_reports
from dandisets_linkml_status_tools.cli.tools import compile_validation_report, output_reports

if TYPE_CHECKING:
from dandisets_linkml_status.cli.models import DandisetValidationReport
from dandisets_linkml_status_tools.cli.models import DandisetValidationReport

logger = logging.getLogger(__name__)
app = typer.Typer()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# Otherwise, import the Python-based YAML dumper
from yaml import SafeDumper # type: ignore

from dandisets_linkml_status.cli.models import (
from dandisets_linkml_status_tools.cli.models import (
DandisetValidationReport,
LinkmlValidationErrsType,
PydanticValidationErrsType,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli/test__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from typer.testing import CliRunner

from dandisets_linkml_status.cli import app
from dandisets_linkml_status_tools.cli import app

runner = CliRunner()

Expand Down

0 comments on commit 12feb36

Please sign in to comment.