sera-2 1.14.1__tar.gz → 1.14.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. {sera_2-1.14.1 → sera_2-1.14.2}/PKG-INFO +3 -3
  2. {sera_2-1.14.1 → sera_2-1.14.2}/pyproject.toml +3 -3
  3. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_module.py +5 -1
  4. {sera_2-1.14.1 → sera_2-1.14.2}/README.md +0 -0
  5. {sera_2-1.14.1 → sera_2-1.14.2}/sera/__init__.py +0 -0
  6. {sera_2-1.14.1 → sera_2-1.14.2}/sera/constants.py +0 -0
  7. {sera_2-1.14.1 → sera_2-1.14.2}/sera/exports/__init__.py +0 -0
  8. {sera_2-1.14.1 → sera_2-1.14.2}/sera/exports/schema.py +0 -0
  9. {sera_2-1.14.1 → sera_2-1.14.2}/sera/exports/test.py +0 -0
  10. {sera_2-1.14.1 → sera_2-1.14.2}/sera/libs/__init__.py +0 -0
  11. {sera_2-1.14.1 → sera_2-1.14.2}/sera/libs/api_helper.py +0 -0
  12. {sera_2-1.14.1 → sera_2-1.14.2}/sera/libs/api_test_helper.py +0 -0
  13. {sera_2-1.14.1 → sera_2-1.14.2}/sera/libs/base_orm.py +0 -0
  14. {sera_2-1.14.1 → sera_2-1.14.2}/sera/libs/base_service.py +0 -0
  15. {sera_2-1.14.1 → sera_2-1.14.2}/sera/libs/dag/__init__.py +0 -0
  16. {sera_2-1.14.1 → sera_2-1.14.2}/sera/libs/dag/_dag.py +0 -0
  17. {sera_2-1.14.1 → sera_2-1.14.2}/sera/libs/middlewares/__init__.py +0 -0
  18. {sera_2-1.14.1 → sera_2-1.14.2}/sera/libs/middlewares/auth.py +0 -0
  19. {sera_2-1.14.1 → sera_2-1.14.2}/sera/libs/middlewares/uscp.py +0 -0
  20. {sera_2-1.14.1 → sera_2-1.14.2}/sera/make/__init__.py +0 -0
  21. {sera_2-1.14.1 → sera_2-1.14.2}/sera/make/__main__.py +0 -0
  22. {sera_2-1.14.1 → sera_2-1.14.2}/sera/make/make_app.py +0 -0
  23. {sera_2-1.14.1 → sera_2-1.14.2}/sera/make/make_python_api.py +0 -0
  24. {sera_2-1.14.1 → sera_2-1.14.2}/sera/make/make_python_model.py +0 -0
  25. {sera_2-1.14.1 → sera_2-1.14.2}/sera/make/make_python_services.py +0 -0
  26. {sera_2-1.14.1 → sera_2-1.14.2}/sera/make/make_typescript_model.py +0 -0
  27. {sera_2-1.14.1 → sera_2-1.14.2}/sera/misc/__init__.py +0 -0
  28. {sera_2-1.14.1 → sera_2-1.14.2}/sera/misc/_formatter.py +0 -0
  29. {sera_2-1.14.1 → sera_2-1.14.2}/sera/misc/_utils.py +0 -0
  30. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/__init__.py +0 -0
  31. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_class.py +0 -0
  32. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_collection.py +0 -0
  33. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_constraints.py +0 -0
  34. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_datatype.py +0 -0
  35. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_default.py +0 -0
  36. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_enum.py +0 -0
  37. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_multi_lingual_string.py +0 -0
  38. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_parse.py +0 -0
  39. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_property.py +0 -0
  40. {sera_2-1.14.1 → sera_2-1.14.2}/sera/models/_schema.py +0 -0
  41. {sera_2-1.14.1 → sera_2-1.14.2}/sera/typing.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sera-2
3
- Version: 1.14.1
3
+ Version: 1.14.2
4
4
  Summary:
5
5
  Author: Binh Vu
6
6
  Author-email: bvu687@gmail.com
@@ -8,9 +8,9 @@ Requires-Python: >=3.12,<4.0
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.12
10
10
  Classifier: Programming Language :: Python :: 3.13
11
- Requires-Dist: black (>=25.1.0,<26.0.0)
11
+ Requires-Dist: black (==25.1.0)
12
12
  Requires-Dist: codegen-2 (>=2.11.1,<3.0.0)
13
- Requires-Dist: isort (>=6.0.1,<7.0.0)
13
+ Requires-Dist: isort (==6.0.1)
14
14
  Requires-Dist: litestar (>=2.15.1,<3.0.0)
15
15
  Requires-Dist: loguru (>=0.7.0,<0.8.0)
16
16
  Requires-Dist: msgspec (>=0.19.0,<0.20.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "sera-2"
3
- version = "1.14.1"
3
+ version = "1.14.2"
4
4
  description = ""
5
5
  authors = ["Binh Vu <bvu687@gmail.com>"]
6
6
  readme = "README.md"
@@ -14,9 +14,9 @@ msgspec = "^0.19.0"
14
14
  litestar = "^2.15.1"
15
15
  loguru = "^0.7.0"
16
16
  typer = "^0.12.3"
17
- black = "^25.1.0"
17
+ black = "==25.1.0"
18
18
  sqlalchemy = { extras = ["asyncio"], version = "^2.0.41" }
19
- isort = "^6.0.1"
19
+ isort = "==6.0.1"
20
20
  serde2 = "^1.9.0"
21
21
 
22
22
  [build-system]
@@ -10,6 +10,7 @@ import black.mode
10
10
  import isort
11
11
  from codegen.models import Program
12
12
  from loguru import logger
13
+
13
14
  from sera.misc import File, Formatter
14
15
  from sera.typing import Language
15
16
 
@@ -62,7 +63,9 @@ class Module:
62
63
  target_versions={black.mode.TargetVersion.PY312},
63
64
  ),
64
65
  )
65
- code = isort.code(code, profile="black")
66
+ code = isort.code(
67
+ code, profile="black", known_first_party=[self.package.app.name]
68
+ )
66
69
  except:
67
70
  logger.error("Error writing module {}", self.path)
68
71
  print(">>> Program")
@@ -173,3 +176,4 @@ class App:
173
176
  def name(self) -> str:
174
177
  """Get the name of the application"""
175
178
  return self.root.dir.name
179
+ return self.root.dir.name
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes