Skip to content

Commit ee3753e

Browse files
authored
Merge pull request #4 from maykinmedia/features/rename-package
rename package to django-json-schema-model
2 parents 8551890 + 089c855 commit ee3753e

File tree

17 files changed

+51
-51
lines changed

17 files changed

+51
-51
lines changed

MANIFEST.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
include *.rst
22
include LICENSE
3-
include django_json_schema/py.typed
4-
recursive-include django_json_schema *.html
5-
recursive-include django_json_schema *.txt
6-
recursive-include django_json_schema *.po
3+
include django_json_schema_model/py.typed
4+
recursive-include django_json_schema_model *.html
5+
recursive-include django_json_schema_model *.txt
6+
recursive-include django_json_schema_model *.po
77
global-exclude __pycache__
88
global-exclude *.py[co]

README.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22

3-
Welcome to django-json-schema's documentation!
3+
Welcome to django-json-schema-model's documentation!
44
=================================================
55

66
:Version: 0.1.0
7-
:Source: https://github.com/maykinmedia/django-json-schema
7+
:Source: https://github.com/maykinmedia/django-json-schema-model
88
:Keywords: ``<keywords>``
99
:PythonVersion: 3.10
1010

@@ -42,15 +42,15 @@ Install
4242

4343
.. code-block:: bash
4444
45-
pip install django-json-schema
45+
pip install django-json-schema-model
4646
4747
4848
Usage
4949
=====
5050

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

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

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

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

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

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

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

108-
.. |pypi-version| image:: https://img.shields.io/pypi/v/django-json-schema.svg
109-
:target: https://pypi.org/project/django-json-schema/
108+
.. |pypi-version| image:: https://img.shields.io/pypi/v/django-json-schema-model.svg
109+
:target: https://pypi.org/project/django-json-schema-model/
File renamed without changes.
File renamed without changes.

django_json_schema/apps.py renamed to django_json_schema_model/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
class DjangoJsonSchemaConfig(AppConfig):
5-
name = "django_json_schema"
5+
name = "django_json_schema_model"
66
default_auto_field = "django.db.models.fields.BigAutoField"
File renamed without changes.
File renamed without changes.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
from pathlib import Path
1515

1616
current_dir = Path(__file__).parents[1]
17-
code_directory = current_dir / "django_json_schema"
17+
code_directory = current_dir / "django_json_schema_model"
1818

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

2121

2222
# -- Project information -----------------------------------------------------
2323

24-
project = "django_json_schema"
24+
project = "django_json_schema_model"
2525
copyright = "2025, Maykin Media"
2626
author = "Maykin Media"
2727

docs/index.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.. django-json-schema documentation master file, created by startproject.
1+
.. django-json-schema-model documentation master file, created by startproject.
22
You can adapt this file completely to your liking, but it should at least
33
contain the root `toctree` directive.
44
5-
Welcome to django-json-schema's documentation!
6-
=================================================
5+
Welcome to django-json-schema-model's documentation!
6+
====================================================
77

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

@@ -36,29 +36,29 @@ Indices and tables
3636
* :ref:`search`
3737

3838

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

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

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

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

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

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

63-
.. |pypi-version| image:: https://img.shields.io/pypi/v/django-json-schema.svg
64-
:target: https://pypi.org/project/django-json-schema/
63+
.. |pypi-version| image:: https://img.shields.io/pypi/v/django-json-schema-model.svg
64+
:target: https://pypi.org/project/django-json-schema-model/

docs/quickstart.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Install from PyPI with pip:
99

1010
.. code-block:: bash
1111
12-
pip install django-json-schema
12+
pip install django-json-schema-model
1313
1414
1515
Usage
@@ -18,7 +18,7 @@ Usage
1818
.. code-block:: python
1919
2020
from django.db import models
21-
from django_json_schema.models import JsonSchema
21+
from django_json_schema_model.models import JsonSchema
2222
2323
class ProductType(models.Model):
2424
schema = models.ForeignKey(JsonSchema, on_delete=models.PROTECT)

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.0.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "django-json-schema"
6+
name = "django-json-schema-model"
77
version = "0.1.0"
88
description = "JSON schema model for django."
99
authors = [
@@ -32,9 +32,9 @@ dependencies = [
3232
]
3333

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

3939
[project.optional-dependencies]
4040
tests = [
@@ -55,15 +55,15 @@ release = [
5555
]
5656

5757
[tool.setuptools.packages.find]
58-
include = ["django_json_schema*"]
58+
include = ["django_json_schema_model*"]
5959
namespaces = true
6060

6161
[tool.isort]
6262
profile = "black"
6363
combine_as_imports = true
6464
skip = ["env", ".tox", ".history", ".eggs"]
6565
known_django = "django"
66-
known_first_party="django_json_schema"
66+
known_first_party="django_json_schema_model"
6767
sections=["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
6868

6969
[tool.pytest.ini_options]
@@ -80,7 +80,7 @@ files = [
8080

8181
[tool.coverage.run]
8282
branch = true
83-
source = ["django_json_schema"]
83+
source = ["django_json_schema_model"]
8484
omit = [
8585
# migrations run while django initializes the test db
8686
"*/migrations/*",

testapp/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DATABASES = {
1212
"default": {
1313
"ENGINE": "django.db.backends.sqlite3",
14-
"NAME": BASE_DIR / "django_json_schema.db",
14+
"NAME": BASE_DIR / "django_json_schema_model.db",
1515
}
1616
}
1717

@@ -21,7 +21,7 @@
2121
"django.contrib.sessions",
2222
"django.contrib.messages",
2323
"django.contrib.admin",
24-
"django_json_schema",
24+
"django_json_schema_model",
2525
"testapp",
2626
]
2727

tests/test_json_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django.core.exceptions import ValidationError
22
from django.test import TestCase
33

4-
from django_json_schema.models import JsonSchema
4+
from django_json_schema_model.models import JsonSchema
55

66

77
class TestJsonSchema(TestCase):

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ commands = isort --check-only --diff .
3939
[testenv:black]
4040
extras = tests
4141
skipsdist = True
42-
commands = black --check django_json_schema docs testapp tests
42+
commands = black --check django_json_schema_model docs testapp tests
4343

4444
[testenv:flake8]
4545
extras = tests

0 commit comments

Comments
 (0)