Skip to content

Commit

Permalink
Merge pull request #4 from maykinmedia/features/rename-package
Browse files Browse the repository at this point in the history
rename package to django-json-schema-model
  • Loading branch information
Floris272 authored Jan 17, 2025
2 parents 8551890 + 089c855 commit ee3753e
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 51 deletions.
8 changes: 4 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include *.rst
include LICENSE
include django_json_schema/py.typed
recursive-include django_json_schema *.html
recursive-include django_json_schema *.txt
recursive-include django_json_schema *.po
include django_json_schema_model/py.typed
recursive-include django_json_schema_model *.html
recursive-include django_json_schema_model *.txt
recursive-include django_json_schema_model *.po
global-exclude __pycache__
global-exclude *.py[co]
32 changes: 16 additions & 16 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@


Welcome to django-json-schema's documentation!
Welcome to django-json-schema-model's documentation!
=================================================

:Version: 0.1.0
:Source: https://github.com/maykinmedia/django-json-schema
:Source: https://github.com/maykinmedia/django-json-schema-model
:Keywords: ``<keywords>``
:PythonVersion: 3.10

Expand Down Expand Up @@ -42,15 +42,15 @@ Install

.. code-block:: bash
pip install django-json-schema
pip install django-json-schema-model
Usage
=====

.. code-block:: python
from django_json_schema.models import JsonSchema
from django_json_schema_model.models import JsonSchema
class ProductType(models.Model):
schema = models.ForeignKey(JsonSchema, on_delete=models.PROTECT)
Expand Down Expand Up @@ -82,28 +82,28 @@ directory to the python path (or use ``python -m django <command>``):
# django-admin makemessages -l nl
.. |build-status| image:: https://github.com/maykinmedia/django-json-schema/workflows/Run%20CI/badge.svg
.. |build-status| image:: https://github.com/maykinmedia/django-json-schema-model/workflows/Run%20CI/badge.svg
:alt: Build status
:target: https://github.com/maykinmedia/django-json-schema/actions?query=workflow%3A%22Run+CI%22
:target: https://github.com/maykinmedia/django-json-schema-model/actions?query=workflow%3A%22Run+CI%22

.. |code-quality| image:: https://github.com/maykinmedia/django-json-schema/workflows/Code%20quality%20checks/badge.svg
.. |code-quality| image:: https://github.com/maykinmedia/django-json-schema-model/workflows/Code%20quality%20checks/badge.svg
:alt: Code quality checks
:target: https://github.com/maykinmedia/django-json-schema/actions?query=workflow%3A%22Code+quality+checks%22
:target: https://github.com/maykinmedia/django-json-schema-model/actions?query=workflow%3A%22Code+quality+checks%22

.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black

.. |coverage| image:: https://codecov.io/gh/maykinmedia/django-json-schema/branch/main/graph/badge.svg
:target: https://codecov.io/gh/maykinmedia/django-json-schema
.. |coverage| image:: https://codecov.io/gh/maykinmedia/django-json-schema-model/branch/main/graph/badge.svg
:target: https://codecov.io/gh/maykinmedia/django-json-schema-model
:alt: Coverage status

.. |docs| image:: https://readthedocs.org/projects/django-json-schema/badge/?version=latest
:target: https://django-json-schema.readthedocs.io/en/latest/?badge=latest
.. |docs| image:: https://readthedocs.org/projects/django-json-schema-model/badge/?version=latest
:target: https://django-json-schema-model.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. |python-versions| image:: https://img.shields.io/pypi/pyversions/django-json-schema.svg
.. |python-versions| image:: https://img.shields.io/pypi/pyversions/django-json-schema-model.svg

.. |django-versions| image:: https://img.shields.io/pypi/djversions/django-json-schema.svg
.. |django-versions| image:: https://img.shields.io/pypi/djversions/django-json-schema-model.svg

.. |pypi-version| image:: https://img.shields.io/pypi/v/django-json-schema.svg
:target: https://pypi.org/project/django-json-schema/
.. |pypi-version| image:: https://img.shields.io/pypi/v/django-json-schema-model.svg
:target: https://pypi.org/project/django-json-schema-model/
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@


class DjangoJsonSchemaConfig(AppConfig):
name = "django_json_schema"
name = "django_json_schema_model"
default_auto_field = "django.db.models.fields.BigAutoField"
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
from pathlib import Path

current_dir = Path(__file__).parents[1]
code_directory = current_dir / "django_json_schema"
code_directory = current_dir / "django_json_schema_model"

sys.path.insert(0, str(code_directory))


# -- Project information -----------------------------------------------------

project = "django_json_schema"
project = "django_json_schema_model"
copyright = "2025, Maykin Media"
author = "Maykin Media"

Expand Down
30 changes: 15 additions & 15 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. django-json-schema documentation master file, created by startproject.
.. django-json-schema-model documentation master file, created by startproject.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to django-json-schema's documentation!
=================================================
Welcome to django-json-schema-model's documentation!
====================================================

|build-status| |code-quality| |black| |coverage|

Expand Down Expand Up @@ -36,29 +36,29 @@ Indices and tables
* :ref:`search`


.. |build-status| image:: https://github.com/maykinmedia/django-json-schema/workflows/Run%20CI/badge.svg
.. |build-status| image:: https://github.com/maykinmedia/django-json-schema-model/workflows/Run%20CI/badge.svg
:alt: Build status
:target: https://github.com/maykinmedia/django-json-schema/actions?query=workflow%3A%22Run+CI%22
:target: https://github.com/maykinmedia/django-json-schema-model/actions?query=workflow%3A%22Run+CI%22

.. |code-quality| image:: https://github.com/maykinmedia/django-json-schema/workflows/Code%20quality%20checks/badge.svg
.. |code-quality| image:: https://github.com/maykinmedia/django-json-schema-model/workflows/Code%20quality%20checks/badge.svg
:alt: Code quality checks
:target: https://github.com/maykinmedia/django-json-schema/actions?query=workflow%3A%22Code+quality+checks%22
:target: https://github.com/maykinmedia/django-json-schema-model/actions?query=workflow%3A%22Code+quality+checks%22

.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black

.. |coverage| image:: https://codecov.io/gh/maykinmedia/django-json-schema/branch/master/graph/badge.svg
:target: https://codecov.io/gh/maykinmedia/django-json-schema
.. |coverage| image:: https://codecov.io/gh/maykinmedia/django-json-schema-model/branch/master/graph/badge.svg
:target: https://codecov.io/gh/maykinmedia/django-json-schema-model
:alt: Coverage status

..
.. |docs| image:: https://readthedocs.org/projects/django-json-schema/badge/?version=latest
:target: https://django-json-schema.readthedocs.io/en/latest/?badge=latest
.. |docs| image:: https://readthedocs.org/projects/django-json-schema-model/badge/?version=latest
:target: https://django-json-schema-model.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. |python-versions| image:: https://img.shields.io/pypi/pyversions/django-json-schema.svg
.. |python-versions| image:: https://img.shields.io/pypi/pyversions/django-json-schema-model.svg

.. |django-versions| image:: https://img.shields.io/pypi/djversions/django-json-schema.svg
.. |django-versions| image:: https://img.shields.io/pypi/djversions/django-json-schema-model.svg

.. |pypi-version| image:: https://img.shields.io/pypi/v/django-json-schema.svg
:target: https://pypi.org/project/django-json-schema/
.. |pypi-version| image:: https://img.shields.io/pypi/v/django-json-schema-model.svg
:target: https://pypi.org/project/django-json-schema-model/
4 changes: 2 additions & 2 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Install from PyPI with pip:

.. code-block:: bash
pip install django-json-schema
pip install django-json-schema-model
Usage
Expand All @@ -18,7 +18,7 @@ Usage
.. code-block:: python
from django.db import models
from django_json_schema.models import JsonSchema
from django_json_schema_model.models import JsonSchema
class ProductType(models.Model):
schema = models.ForeignKey(JsonSchema, on_delete=models.PROTECT)
Expand Down
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "django-json-schema"
name = "django-json-schema-model"
version = "0.1.0"
description = "JSON schema model for django."
authors = [
Expand Down Expand Up @@ -32,9 +32,9 @@ dependencies = [
]

[project.urls]
Homepage = "https://github.com/maykinmedia/django_json_schema"
"Bug Tracker" = "https://github.com/maykinmedia/django_json_schema/issues"
"Source Code" = "https://github.com/maykinmedia/django_json_schema"
Homepage = "https://github.com/maykinmedia/django-json-schema-model"
"Bug Tracker" = "https://github.com/maykinmedia/django-json-schema-model/issues"
"Source Code" = "https://github.com/maykinmedia/django-json-schema-model"

[project.optional-dependencies]
tests = [
Expand All @@ -55,15 +55,15 @@ release = [
]

[tool.setuptools.packages.find]
include = ["django_json_schema*"]
include = ["django_json_schema_model*"]
namespaces = true

[tool.isort]
profile = "black"
combine_as_imports = true
skip = ["env", ".tox", ".history", ".eggs"]
known_django = "django"
known_first_party="django_json_schema"
known_first_party="django_json_schema_model"
sections=["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]

[tool.pytest.ini_options]
Expand All @@ -80,7 +80,7 @@ files = [

[tool.coverage.run]
branch = true
source = ["django_json_schema"]
source = ["django_json_schema_model"]
omit = [
# migrations run while django initializes the test db
"*/migrations/*",
Expand Down
4 changes: 2 additions & 2 deletions testapp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "django_json_schema.db",
"NAME": BASE_DIR / "django_json_schema_model.db",
}
}

Expand All @@ -21,7 +21,7 @@
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.admin",
"django_json_schema",
"django_json_schema_model",
"testapp",
]

Expand Down
2 changes: 1 addition & 1 deletion tests/test_json_schema.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.core.exceptions import ValidationError
from django.test import TestCase

from django_json_schema.models import JsonSchema
from django_json_schema_model.models import JsonSchema


class TestJsonSchema(TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ commands = isort --check-only --diff .
[testenv:black]
extras = tests
skipsdist = True
commands = black --check django_json_schema docs testapp tests
commands = black --check django_json_schema_model docs testapp tests

[testenv:flake8]
extras = tests
Expand Down

0 comments on commit ee3753e

Please sign in to comment.