Skip to content

Commit 8884067

Browse files
authored
Merge pull request #2 from django-components/jo-fix-typing
2 parents 42e41c5 + 446e8c8 commit 8884067

File tree

7 files changed

+21
-3
lines changed

7 files changed

+21
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release notes
22

3+
## v1.0.1
4+
5+
- Fix module typing.
6+
37
## v1.0.0
48

59
Initial release.

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "djc_core_html_parser"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

djc_core_html_parser/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# DO NOT MODIFY, ONLY UPDATE THE MODULE NAME WHEN NEEDED!
2+
# This file is what maturin auto-generates. But it seems maturin omits it when we have a __init__.pyi file.
3+
# So we have to manually include it here.
4+
5+
from .djc_core_html_parser import *
6+
7+
__doc__ = djc_core_html_parser.__doc__
8+
if hasattr(djc_core_html_parser, "__all__"):
9+
__all__ = djc_core_html_parser.__all__
File renamed without changes.
File renamed without changes.

pyproject.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "djc_core_html_parser"
7-
version = "1.0.0"
7+
version = "1.0.1"
88
requires-python = ">=3.8, <4.0"
99
description = "HTML parser used by django-components written in Rust."
1010
keywords = ["django", "components", "html"]
@@ -37,6 +37,11 @@ Donate = "https://github.com/sponsors/EmilStenstrom"
3737

3838
[tool.maturin]
3939
features = ["pyo3/extension-module"]
40+
include = [
41+
"djc_core_html_parser/__init__.py",
42+
"djc_core_html_parser/__init__.pyi",
43+
"djc_core_html_parser/py.typed",
44+
]
4045

4146
[tool.black]
4247
line-length = 119

0 commit comments

Comments
 (0)