Skip to content

Commit 9736a64

Browse files
authored
add shared as a package (#67)
* shared package * remove readme
1 parent 07562ca commit 9736a64

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+100
-80
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ lint.pydocstyle.convention = "google"
6969
"*.pyi" = ["D301", "D415", "D417", "D418", "E742", "N", "PGH"]
7070
"**/alembic/*.py" = ["D", "ERA"]
7171
"__init__.py" = ["ERA"]
72-
"shared/**" = ["D100", "D101", "D102", "D103", "D104", "T201"]
72+
"shared/reflex_ui_shared/**" = ["D100", "D101", "D102", "D103", "D104", "T201"]
7373

7474
[tool.pyright]
7575
reportIncompatibleMethodOverride = false

shared/components/hosting_banner.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

shared/pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[project]
2+
name = "reflex-ui-shared"
3+
version = "0.0.1"
4+
description = "Shared components and utilities for Reflex web projects"
5+
requires-python = ">=3.11"
6+
dependencies = [
7+
"reflex (>=0.8.0)",
8+
"httpx",
9+
"email-validator",
10+
"flexdown",
11+
"mistletoe",
12+
"ruff-format",
13+
]
14+
15+
[build-system]
16+
requires = ["hatchling"]
17+
build-backend = "hatchling.build"
File renamed without changes.

shared/backend/get_blogs.py renamed to shared/reflex_ui_shared/backend/get_blogs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import httpx
44
import reflex as rx
55

6-
from shared.constants import RECENT_BLOGS_API_URL
6+
from reflex_ui_shared.constants import RECENT_BLOGS_API_URL
77

88

99
class BlogPostDict(TypedDict):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import reflex as rx
77
from email_validator import EmailNotValidError, ValidatedEmail, validate_email
88

9-
from shared.constants import (
9+
from reflex_ui_shared.constants import (
1010
API_BASE_URL_LOOPS,
1111
REFLEX_DEV_WEB_NEWSLETTER_FORM_WEBHOOK_URL,
1212
)
File renamed without changes.
File renamed without changes.

shared/components/blocks/code.py renamed to shared/reflex_ui_shared/components/blocks/code.py

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

33
import reflex as rx
44

5-
import shared.styles.fonts as fonts
6-
from shared import styles
5+
import reflex_ui_shared.styles.fonts as fonts
6+
from reflex_ui_shared import styles
77

88

99
@rx.memo

0 commit comments

Comments
 (0)