Repository: p1c2u/jsonschema-path (language: python)

Issue:
Project rename
Because of possible confusion with other projects i.e. jsonschema-specifications and more straight forward naming the project should be renamed to `jsonschema-path`.


Discussion / hints:

Fix patch:
diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index f36397c..bc6fca3 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -8,7 +8,7 @@ parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
 serialize = 
 	{major}.{minor}.{patch}
 
-[bumpversion:file:jsonschema_spec/__init__.py]
+[bumpversion:file:jsonschema_path/__init__.py]
 
 [bumpversion:file:pyproject.toml]
 search = version = "{current_version}"
diff --git a/README.rst b/README.rst
index f28c9bd..15e361a 100644
--- a/README.rst
+++ b/README.rst
@@ -1,19 +1,19 @@
 ***************
-JSONSchema Spec
+JSONSchema Path
 ***************
 
-.. image:: https://img.shields.io/pypi/v/jsonschema-spec.svg
-     :target: https://pypi.python.org/pypi/jsonschema-spec
-.. image:: https://travis-ci.org/p1c2u/jsonschema-spec.svg?branch=master
-     :target: https://travis-ci.org/p1c2u/jsonschema-spec
-.. image:: https://img.shields.io/codecov/c/github/p1c2u/jsonschema-spec/master.svg?style=flat
-     :target: https://codecov.io/github/p1c2u/jsonschema-spec?branch=master
-.. image:: https://img.shields.io/pypi/pyversions/jsonschema-spec.svg
-     :target: https://pypi.python.org/pypi/jsonschema-spec
-.. image:: https://img.shields.io/pypi/format/jsonschema-spec.svg
-     :target: https://pypi.python.org/pypi/jsonschema-spec
-.. image:: https://img.shields.io/pypi/status/jsonschema-spec.svg
-     :target: https://pypi.python.org/pypi/jsonschema-spec
+.. image:: https://img.shields.io/pypi/v/jsonschema-path.svg
+     :target: https://pypi.python.org/pypi/jsonschema-path
+.. image:: https://travis-ci.org/p1c2u/jsonschema-path.svg?branch=master
+     :target: https://travis-ci.org/p1c2u/jsonschema-path
+.. image:: https://img.shields.io/codecov/c/github/p1c2u/jsonschema-path/master.svg?style=flat
+     :target: https://codecov.io/github/p1c2u/jsonschema-path?branch=master
+.. image:: https://img.shields.io/pypi/pyversions/jsonschema-path.svg
+     :target: https://pypi.python.org/pypi/jsonschema-path
+.. image:: https://img.shields.io/pypi/format/jsonschema-path.svg
+     :target: https://pypi.python.org/pypi/jsonschema-path
+.. image:: https://img.shields.io/pypi/status/jsonschema-path.svg
+     :target: https://pypi.python.org/pypi/jsonschema-path
 
 About
 #####
@@ -31,13 +31,13 @@ Installation
 
 .. code-block:: console
 
-   pip install jsonschema-spec
+   pip install jsonschema-path
 
 Alternatively you can download the code and install from the repository:
 
 .. code-block:: console
 
-   pip install -e git+https://github.com/p1c2u/jsonschema-spec.git#egg=jsonschema_spec
+   pip install -e git+https://github.com/p1c2u/jsonschema-path.git#egg=jsonschema_path
 
 
 Usage
@@ -45,7 +45,7 @@ Usage
 
 .. code-block:: python
 
-   >>> from jsonschema_spec import SchemaPath
+   >>> from jsonschema_path import SchemaPath
    
    >>> d = {
    ...     "properties": {
diff --git a/jsonschema_path/__init__.py b/jsonschema_path/__init__.py
new file mode 100644
index 0000000..93de4c7
--- /dev/null
+++ b/jsonschema_path/__init__.py
@@ -0,0 +1,11 @@
+from jsonschema_path.accessors import SchemaAccessor
+from jsonschema_path.handlers import default_handlers
+from jsonschema_path.paths import SchemaPath
+
+__author__ = "Artur Maciag"
+__email__ = "maciag.artur@gmail.com"
+__version__ = "0.2.4"
+__url__ = "https://github.com/p1c2u/jsonschema-path"
+__license__ = "Apache-2.0"
+
+__all__ = ["SchemaAccessor", "SchemaPath", "default_handlers"]
diff --git a/jsonschema_spec/accessors.py b/jsonschema_path/accessors.py
similarity index 90%
rename from jsonschema_spec/accessors.py
rename to jsonschema_path/accessors.py
index a7c5686..a28db0c 100644
--- a/jsonschema_spec/accessors.py
+++ b/jsonschema_path/accessors.py
@@ -16,12 +16,12 @@
 from referencing._core import Resolver
 from referencing.jsonschema import DRAFT202012
 
-from jsonschema_spec.handlers import default_handlers
-from jsonschema_spec.retrievers import SchemaRetriever
-from jsonschema_spec.typing import Lookup
-from jsonschema_spec.typing import ResolverHandlers
-from jsonschema_spec.typing import Schema
-from jsonschema_spec.utils import is_ref
+from jsonschema_path.handlers import default_handlers
+from jsonschema_path.retrievers import SchemaRetriever
+from jsonschema_path.typing import Lookup
+from jsonschema_path.typing import ResolverHandlers
+from jsonschema_path.typing import Schema
+from jsonschema_path.utils import is_ref
 
 
 class ResolverAccessor(LookupAccessor):
diff --git a/jsonschema_spec/handlers/__init__.py b/jsonschema_path/handlers/__init__.py
similarity index 61%
rename from jsonschema_spec/handlers/__init__.py
rename to jsonschema_path/handlers/__init__.py
index 364d473..d5a3412 100644
--- a/jsonschema_spec/handlers/__init__.py
+++ b/jsonschema_path/handlers/__init__.py
@@ -1,17 +1,17 @@
 from typing import TYPE_CHECKING
 
-from jsonschema_spec.handlers.file import FileHandler
-from jsonschema_spec.handlers.urllib import UrllibHandler
+from jsonschema_path.handlers.file import FileHandler
+from jsonschema_path.handlers.urllib import UrllibHandler
 
 if TYPE_CHECKING:
-    from jsonschema_spec.handlers.urllib import UrllibHandler as UrlHandler
+    from jsonschema_path.handlers.urllib import UrllibHandler as UrlHandler
 else:
     try:
-        from jsonschema_spec.handlers.requests import (
+        from jsonschema_path.handlers.requests import (
             UrlRequestsHandler as UrlHandler,
         )
     except ImportError:
-        from jsonschema_spec.handlers.urllib import UrllibHandler as UrlHandler
+        from jsonschema_path.handlers.urllib import UrllibHandler as UrlHandler
 
 __all__ = ["FileHandler", "UrlHandler"]
 
diff --git a/jsonschema_spec/handlers/file.py b/jsonschema_path/handlers/file.py
similarity index 91%
rename from jsonschema_spec/handlers/file.py
rename to jsonschema_path/handlers/file.py
index b18d0cd..e1c7d9c 100644
--- a/jsonschema_spec/handlers/file.py
+++ b/jsonschema_path/handlers/file.py
@@ -9,9 +9,9 @@
 
 from yaml import load
 
-from jsonschema_spec.handlers.protocols import SupportsRead
-from jsonschema_spec.handlers.utils import uri_to_path
-from jsonschema_spec.loaders import JsonschemaSafeLoader
+from jsonschema_path.handlers.protocols import SupportsRead
+from jsonschema_path.handlers.utils import uri_to_path
+from jsonschema_path.loaders import JsonschemaSafeLoader
 
 
 class FileHandler:
diff --git a/jsonschema_spec/handlers/protocols.py b/jsonschema_path/handlers/protocols.py
similarity index 100%
rename from jsonschema_spec/handlers/protocols.py
rename to jsonschema_path/handlers/protocols.py
diff --git a/jsonschema_spec/handlers/requests.py b/jsonschema_path/handlers/requests.py
similarity index 83%
rename from jsonschema_spec/handlers/requests.py
rename to jsonschema_path/handlers/requests.py
index 05d27f8..bbc8a4f 100644
--- a/jsonschema_spec/handlers/requests.py
+++ b/jsonschema_path/handlers/requests.py
@@ -7,9 +7,9 @@
 
 import requests
 
-from jsonschema_spec.handlers.file import BaseFilePathHandler
-from jsonschema_spec.handlers.file import FileHandler
-from jsonschema_spec.handlers.protocols import SupportsRead
+from jsonschema_path.handlers.file import BaseFilePathHandler
+from jsonschema_path.handlers.file import FileHandler
+from jsonschema_path.handlers.protocols import SupportsRead
 
 
 class UrlRequestsHandler(BaseFilePathHandler):
diff --git a/jsonschema_spec/handlers/urllib.py b/jsonschema_path/handlers/urllib.py
similarity index 78%
rename from jsonschema_spec/handlers/urllib.py
rename to jsonschema_path/handlers/urllib.py
index 59e82bc..459c4ed 100644
--- a/jsonschema_spec/handlers/urllib.py
+++ b/jsonschema_path/handlers/urllib.py
@@ -4,9 +4,9 @@
 from typing import Optional
 from urllib.request import urlopen
 
-from jsonschema_spec.handlers.file import BaseFilePathHandler
-from jsonschema_spec.handlers.file import FileHandler
-from jsonschema_spec.handlers.protocols import SupportsRead
+from jsonschema_path.handlers.file import BaseFilePathHandler
+from jsonschema_path.handlers.file import FileHandler
+from jsonschema_path.handlers.protocols import SupportsRead
 
 
 class UrllibHandler(BaseFilePathHandler):
diff --git a/jsonschema_spec/handlers/utils.py b/jsonschema_path/handlers/utils.py
similarity index 100%
rename from jsonschema_spec/handlers/utils.py
rename to jsonschema_path/handlers/utils.py
diff --git a/jsonschema_spec/loaders.py b/jsonschema_path/loaders.py
similarity index 100%
rename from jsonschema_spec/loaders.py
rename to jsonschema_path/loaders.py
diff --git a/jsonschema_spec/paths.py b/jsonschema_path/paths.py
similarity index 89%
rename from jsonschema_spec/paths.py
rename to jsonschema_path/paths.py
index 4f4fedb..3d2b4e8 100644
--- a/jsonschema_spec/paths.py
+++ b/jsonschema_path/paths.py
@@ -13,14 +13,14 @@
 from referencing._core import Resolved
 from referencing.jsonschema import DRAFT202012
 
-from jsonschema_spec.accessors import SchemaAccessor
-from jsonschema_spec.handlers import default_handlers
-from jsonschema_spec.handlers.protocols import SupportsRead
-from jsonschema_spec.readers import FilePathReader
-from jsonschema_spec.readers import FileReader
-from jsonschema_spec.readers import PathReader
-from jsonschema_spec.typing import ResolverHandlers
-from jsonschema_spec.typing import Schema
+from jsonschema_path.accessors import SchemaAccessor
+from jsonschema_path.handlers import default_handlers
+from jsonschema_path.handlers.protocols import SupportsRead
+from jsonschema_path.readers import FilePathReader
+from jsonschema_path.readers import FileReader
+from jsonschema_path.readers import PathReader
+from jsonschema_path.typing import ResolverHandlers
+from jsonschema_path.typing import Schema
 
 TSpec = TypeVar("TSpec", bound="SchemaPath")
 
diff --git a/jsonschema_spec/py.typed b/jsonschema_path/py.typed
similarity index 100%
rename from jsonschema_spec/py.typed
rename to jsonschema_path/py.typed
diff --git a/jsonschema_spec/readers.py b/jsonschema_path/readers.py
similarity index 85%
rename from jsonschema_spec/readers.py
rename to jsonschema_path/readers.py
index 13fc818..b496f35 100644
--- a/jsonschema_spec/readers.py
+++ b/jsonschema_path/readers.py
@@ -5,9 +5,9 @@
 from typing import Mapping
 from typing import Tuple
 
-from jsonschema_spec.handlers import all_urls_handler
-from jsonschema_spec.handlers import file_handler
-from jsonschema_spec.handlers.protocols import SupportsRead
+from jsonschema_path.handlers import all_urls_handler
+from jsonschema_path.handlers import file_handler
+from jsonschema_path.handlers.protocols import SupportsRead
 
 
 class BaseReader:
diff --git a/jsonschema_spec/retrievers.py b/jsonschema_path/retrievers.py
similarity index 93%
rename from jsonschema_spec/retrievers.py
rename to jsonschema_path/retrievers.py
index d9d7d1b..4cafdd5 100644
--- a/jsonschema_spec/retrievers.py
+++ b/jsonschema_path/retrievers.py
@@ -7,8 +7,8 @@
 from referencing.typing import URI
 from referencing.typing import Retrieve
 
-from jsonschema_spec.typing import ResolverHandlers
-from jsonschema_spec.typing import Schema
+from jsonschema_path.typing import ResolverHandlers
+from jsonschema_path.typing import Schema
 
 USE_REQUESTS = False
 try:
diff --git a/jsonschema_spec/typing.py b/jsonschema_path/typing.py
similarity index 100%
rename from jsonschema_spec/typing.py
rename to jsonschema_path/typing.py
diff --git a/jsonschema_spec/utils.py b/jsonschema_path/utils.py
similarity index 100%
rename from jsonschema_spec/utils.py
rename to jsonschema_path/utils.py
diff --git a/pyproject.toml b/pyproject.toml
index d38eaa9..c195d4e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,13 +4,13 @@ build-backend = "poetry.core.masonry.api"
 
 [tool.coverage.run]
 branch = true
-source =["jsonschema_spec"]
+source =["jsonschema_path"]
 
 [tool.coverage.xml]
 output = "reports/coverage.xml"
 
 [tool.mypy]
-files = "jsonschema_spec"
+files = "jsonschema_path"
 strict = true
 
 [[tool.mypy.overrides]]
@@ -18,13 +18,13 @@ module = "jsonschema_specifications"
 ignore_missing_imports = true
 
 [tool.poetry]
-name = "jsonschema-spec"
+name = "jsonschema-path"
 version = "0.2.4"
 description = "JSONSchema Spec with object-oriented paths"
 authors = ["Artur Maciag <maciag.artur@gmail.com>"]
 license = "Apache-2.0"
 readme = "README.rst"
-repository = "https://github.com/p1c2u/jsonschema-spec"
+repository = "https://github.com/p1c2u/jsonschema-path"
 keywords = ["jsonschema", "swagger", "spec"]
 classifiers = [
     "Development Status :: 4 - Beta",
@@ -58,7 +58,7 @@ flynt = "1.0.1"
 mypy = "^1.5.1"
 types-PyYAML = "^6.0.12"
 types-requests = "^2.31.0"
-typing-extensions = "^4.8.0"  # required by responses. See https://github.com/p1c2u/jsonschema-spec/issues/44
+typing-extensions = "^4.8.0"  # required by responses. See https://github.com/p1c2u/jsonschema-path/issues/44
 responses = "^0.23.3"
 deptry = "^0.12.0"
 
@@ -68,7 +68,7 @@ addopts = """
 --verbose
 --showlocals
 --junitxml=reports/junit.xml
---cov=jsonschema_spec
+--cov=jsonschema_path
 --cov-report=term-missing
 --cov-report=xml
 """


Test patch:
diff --git a/tests/integration/test_schema_path.py b/tests/integration/test_schema_path.py
index fae66a3..3c411f0 100644
--- a/tests/integration/test_schema_path.py
+++ b/tests/integration/test_schema_path.py
@@ -6,7 +6,7 @@
 import pytest
 import responses
 
-from jsonschema_spec import SchemaPath
+from jsonschema_path import SchemaPath
 
 
 class TestSchemaPathFromDict:
@@ -236,8 +236,8 @@ def test_remote_fallback_requests(self, defs):
             assert contents == expected_contents
             assert id(resolved.contents) == id(contents)
 
-    @mock.patch("jsonschema_spec.retrievers.USE_REQUESTS", False)
-    @mock.patch("jsonschema_spec.retrievers.urlopen")
+    @mock.patch("jsonschema_path.retrievers.USE_REQUESTS", False)
+    @mock.patch("jsonschema_path.retrievers.urlopen")
     def test_remote_fallback_urllib(self, mock_urlopen, defs):
         schema = {
             "properties": {
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py
index 185a70d..0b5ae98 100644
--- a/tests/unit/conftest.py
+++ b/tests/unit/conftest.py
@@ -3,11 +3,11 @@
 from referencing._core import Resolver
 from referencing.jsonschema import DRAFT202012
 
-from jsonschema_spec.accessors import SchemaAccessor
-from jsonschema_spec.handlers import default_handlers
-from jsonschema_spec.paths import SPEC_SEPARATOR
-from jsonschema_spec.paths import SchemaPath
-from jsonschema_spec.retrievers import SchemaRetriever
+from jsonschema_path.accessors import SchemaAccessor
+from jsonschema_path.handlers import default_handlers
+from jsonschema_path.paths import SPEC_SEPARATOR
+from jsonschema_path.paths import SchemaPath
+from jsonschema_path.retrievers import SchemaRetriever
 
 
 @pytest.fixture
diff --git a/tests/unit/handlers/test_file.py b/tests/unit/handlers/test_file.py
index 7f60745..1617caf 100644
--- a/tests/unit/handlers/test_file.py
+++ b/tests/unit/handlers/test_file.py
@@ -2,7 +2,7 @@
 
 import pytest
 
-from jsonschema_spec.handlers.file import FilePathHandler
+from jsonschema_path.handlers.file import FilePathHandler
 
 
 class TestFilePathHandler:
diff --git a/tests/unit/test_accessors.py b/tests/unit/test_accessors.py
index ce8861d..da9c73d 100644
--- a/tests/unit/test_accessors.py
+++ b/tests/unit/test_accessors.py
@@ -1,6 +1,6 @@
 from unittest.mock import Mock
 
-from jsonschema_spec.accessors import SchemaAccessor
+from jsonschema_path.accessors import SchemaAccessor
 
 
 class TestSchemaAccessorOpen:
diff --git a/tests/unit/test_paths.py b/tests/unit/test_paths.py
index 7f4a826..bf40ec5 100644
--- a/tests/unit/test_paths.py
+++ b/tests/unit/test_paths.py
@@ -8,10 +8,10 @@
 from referencing._core import Resolver
 from referencing.jsonschema import DRAFT202012
 
-from jsonschema_spec.accessors import SchemaAccessor
-from jsonschema_spec.handlers import default_handlers
-from jsonschema_spec.paths import SchemaPath
-from jsonschema_spec.retrievers import SchemaRetriever
+from jsonschema_path.accessors import SchemaAccessor
+from jsonschema_path.handlers import default_handlers
+from jsonschema_path.paths import SchemaPath
+from jsonschema_path.retrievers import SchemaRetriever
 
 
 class TestSchemaPathFromDict: