hapi-schema 0.7.2__tar.gz → 0.7.3__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 (81) hide show
  1. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/PKG-INFO +1 -1
  2. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/changelog.md +7 -0
  3. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/_version.py +2 -2
  4. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_admin2.py +1 -1
  5. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_ipc_type.py +1 -1
  6. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_location.py +1 -1
  7. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.config/coveragerc +0 -0
  8. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.config/pre-commit-config.yaml +0 -0
  9. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.config/pytest.ini +0 -0
  10. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.config/ruff.toml +0 -0
  11. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.github/workflows/publish.yaml +0 -0
  12. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.github/workflows/run-python-tests.yaml +0 -0
  13. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/.gitignore +0 -0
  14. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/LICENSE +0 -0
  15. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/README.md +0 -0
  16. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/contributing.md +0 -0
  17. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/pyproject.toml +0 -0
  18. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/requirements.txt +0 -0
  19. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/__init__.py +0 -0
  20. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_admin1.py +0 -0
  21. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_age_range.py +0 -0
  22. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_dataset.py +0 -0
  23. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_food_security.py +0 -0
  24. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_gender.py +0 -0
  25. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_humanitarian_needs.py +0 -0
  26. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_ipc_phase.py +0 -0
  27. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_national_risk.py +0 -0
  28. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_operational_presence.py +0 -0
  29. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_org.py +0 -0
  30. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_org_type.py +0 -0
  31. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_patch.py +0 -0
  32. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_population.py +0 -0
  33. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_population_group.py +0 -0
  34. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_population_status.py +0 -0
  35. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_resource.py +0 -0
  36. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/db_sector.py +0 -0
  37. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/utils/__init__.py +0 -0
  38. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/utils/base.py +0 -0
  39. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/src/hapi_schema/utils/view_params.py +0 -0
  40. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/conftest.py +0 -0
  41. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/__init__.py +0 -0
  42. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_admin1.py +0 -0
  43. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_admin2.py +0 -0
  44. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_age_range.py +0 -0
  45. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_dataset.py +0 -0
  46. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_food_security.py +0 -0
  47. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_gender.py +0 -0
  48. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_humanitarian_needs.py +0 -0
  49. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_ipc_phase.py +0 -0
  50. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_ipc_type.py +0 -0
  51. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_location.py +0 -0
  52. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_national_risk.py +0 -0
  53. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_operational_presence.py +0 -0
  54. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_org.py +0 -0
  55. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_org_type.py +0 -0
  56. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_patch.py +0 -0
  57. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_population.py +0 -0
  58. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_population_group.py +0 -0
  59. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_population_status.py +0 -0
  60. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_resource.py +0 -0
  61. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/sample_data/data_sector.py +0 -0
  62. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_admin1.py +0 -0
  63. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_admin2.py +0 -0
  64. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_age_range.py +0 -0
  65. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_dataset.py +0 -0
  66. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_food_security.py +0 -0
  67. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_gender.py +0 -0
  68. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_humanitarian_needs.py +0 -0
  69. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_ipc_phase.py +0 -0
  70. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_ipc_type.py +0 -0
  71. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_location.py +0 -0
  72. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_national_risk.py +0 -0
  73. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_operational_presence.py +0 -0
  74. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_org.py +0 -0
  75. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_org_type.py +0 -0
  76. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_patch.py +0 -0
  77. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_population.py +0 -0
  78. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_population_group.py +0 -0
  79. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_population_status.py +0 -0
  80. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_resource.py +0 -0
  81. {hapi_schema-0.7.2 → hapi_schema-0.7.3}/tests/test_sector.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: hapi-schema
3
- Version: 0.7.2
3
+ Version: 0.7.3
4
4
  Summary: HAPI database schema specified in SQLAlchemy
5
5
  Project-URL: Homepage, https://github.com/OCHA-DAP/hapi-schemas
6
6
  Author-email: Simon Johnson <simon.johnson@un.org>
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ # [0.7.3]
9
+
10
+ ### Fixed
11
+
12
+ - Incorrect constraint quotes in IPC type
13
+ - Clashing unique constraint names in admins
14
+
8
15
  ## [0.7.2]
9
16
 
10
17
  ### Added
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.7.2'
16
- __version_tuple__ = version_tuple = (0, 7, 2)
15
+ __version__ = version = '0.7.3'
16
+ __version_tuple__ = version_tuple = (0, 7, 3)
@@ -32,7 +32,7 @@ class DBAdmin2(Base):
32
32
  "(hapi_replaced_date IS NULL) OR (hapi_replaced_date >= hapi_updated_date)",
33
33
  name="hapi_dates",
34
34
  ),
35
- UniqueConstraint("code", "hapi_updated_date", name="code_date_unique"),
35
+ UniqueConstraint("code", "hapi_updated_date"),
36
36
  )
37
37
 
38
38
  id: Mapped[int] = mapped_column(Integer, primary_key=True)
@@ -11,7 +11,7 @@ class DBIpcType(Base):
11
11
  __tablename__ = "ipc_type"
12
12
  __table_args__ = (
13
13
  CheckConstraint(
14
- 'code IN ("current", "first projection", "second projection")',
14
+ "code IN ('current', 'first projection', 'second projection')",
15
15
  name="ipc_phase_type",
16
16
  ),
17
17
  )
@@ -28,7 +28,7 @@ class DBLocation(Base):
28
28
  "(hapi_replaced_date IS NULL) OR (hapi_replaced_date >= hapi_updated_date)",
29
29
  name="hapi_dates",
30
30
  ),
31
- UniqueConstraint("code", "hapi_updated_date", name="code_date_unique"),
31
+ UniqueConstraint("code", "hapi_updated_date"),
32
32
  )
33
33
 
34
34
  id: Mapped[int] = mapped_column(Integer, primary_key=True)
File without changes
File without changes
File without changes
File without changes
File without changes