Skip to content

Commit 5fd6016

Browse files
flatten library layout by moving components/ module to base (#60)
1 parent 89e6256 commit 5fd6016

File tree

10 files changed

+15
-11
lines changed

10 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
1818

1919
## [Unreleased]
2020

21+
### Changed
22+
23+
- **Internal**: Flattened package structure by moving files from `components/` subdirectory to root level. No public API changes.
24+
2125
## [0.4.0]
2226

2327
### Changed

src/django_bird/components/__init__.py

Whitespace-only changes.

src/django_bird/components/params.py renamed to src/django_bird/params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from django.utils.safestring import SafeString
1010
from django.utils.safestring import mark_safe
1111

12-
from django_bird._typing import TagBits
12+
from ._typing import TagBits
1313

1414

1515
@dataclass
File renamed without changes.

src/django_bird/components/templates.py renamed to src/django_bird/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from django_bird.conf import app_settings
3+
from .conf import app_settings
44

55

66
def get_template_names(name: str) -> list[str]:

src/django_bird/templatetags/tags/bird.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
from django_bird._typing import TagBits
1616
from django_bird._typing import override
17-
from django_bird.components.params import Params
18-
from django_bird.components.slots import DEFAULT_SLOT
19-
from django_bird.components.slots import Slots
20-
from django_bird.components.templates import get_template_names
17+
from django_bird.params import Params
18+
from django_bird.slots import DEFAULT_SLOT
19+
from django_bird.slots import Slots
20+
from django_bird.templates import get_template_names
2121

2222
TAG = "bird"
2323
END_TAG = "endbird"

tests/components/__init__.py

Whitespace-only changes.

tests/templatetags/test_bird.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
from django.template.base import TokenType
1212
from django.template.exceptions import TemplateSyntaxError
1313

14-
from django_bird.components.params import Param
15-
from django_bird.components.params import Params
14+
from django_bird.params import Param
15+
from django_bird.params import Params
1616
from django_bird.templatetags.tags.bird import END_TAG
1717
from django_bird.templatetags.tags.bird import TAG
1818
from django_bird.templatetags.tags.bird import BirdNode

tests/components/test_params.py renamed to tests/test_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import pytest
44

5-
from django_bird.components.params import Param
6-
from django_bird.components.params import Params
5+
from django_bird.params import Param
6+
from django_bird.params import Params
77
from django_bird.templatetags.tags.prop import PropNode
88

99

tests/components/test_templates.py renamed to tests/test_templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44
from django.test import override_settings
55

6-
from django_bird.components.templates import get_template_names
6+
from django_bird.templates import get_template_names
77

88

99
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)