hapi-schema 0.9.4__tar.gz → 0.9.5__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 (103) hide show
  1. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/PKG-INFO +1 -1
  2. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/changelog.md +6 -0
  3. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/_version.py +2 -2
  4. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_poverty_rate.py +1 -1
  5. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/.config/coveragerc +0 -0
  6. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/.config/pre-commit-config.yaml +0 -0
  7. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/.config/pytest.ini +0 -0
  8. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/.config/ruff.toml +0 -0
  9. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/.github/workflows/publish.yaml +0 -0
  10. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/.github/workflows/run-python-tests.yaml +0 -0
  11. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/.gitignore +0 -0
  12. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/LICENSE +0 -0
  13. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/README.md +0 -0
  14. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/contributing.md +0 -0
  15. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/docker/docker-compose.yml +0 -0
  16. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/initialize_test_db.sh +0 -0
  17. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/pyproject.toml +0 -0
  18. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/requirements.txt +0 -0
  19. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/__init__.py +0 -0
  20. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_admin1.py +0 -0
  21. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_admin2.py +0 -0
  22. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_conflict_event.py +0 -0
  23. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_currency.py +0 -0
  24. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_dataset.py +0 -0
  25. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_food_price.py +0 -0
  26. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_food_security.py +0 -0
  27. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_funding.py +0 -0
  28. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_humanitarian_needs.py +0 -0
  29. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_idps.py +0 -0
  30. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_location.py +0 -0
  31. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_national_risk.py +0 -0
  32. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_operational_presence.py +0 -0
  33. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_org.py +0 -0
  34. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_org_type.py +0 -0
  35. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_patch.py +0 -0
  36. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_population.py +0 -0
  37. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_refugees.py +0 -0
  38. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_resource.py +0 -0
  39. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_returnees.py +0 -0
  40. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_sector.py +0 -0
  41. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_views_as_tables.py +0 -0
  42. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_wfp_commodity.py +0 -0
  43. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/db_wfp_market.py +0 -0
  44. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/utils/__init__.py +0 -0
  45. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/utils/base.py +0 -0
  46. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/utils/constraints.py +0 -0
  47. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/utils/enums.py +0 -0
  48. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/utils/hapi_views_code_generator.py +0 -0
  49. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/utils/view_as_table_code_generator.py +0 -0
  50. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/utils/view_as_table_definitions.toml +0 -0
  51. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/utils/view_params.py +0 -0
  52. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/src/hapi_schema/views.py +0 -0
  53. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/conftest.py +0 -0
  54. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/__init__.py +0 -0
  55. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_admin1.py +0 -0
  56. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_admin2.py +0 -0
  57. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_conflict_event.py +0 -0
  58. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_currency.py +0 -0
  59. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_dataset.py +0 -0
  60. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_food_price.py +0 -0
  61. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_food_security.py +0 -0
  62. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_funding.py +0 -0
  63. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_humanitarian_needs.py +0 -0
  64. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_idps.py +0 -0
  65. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_location.py +0 -0
  66. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_national_risk.py +0 -0
  67. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_operational_presence.py +0 -0
  68. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_org.py +0 -0
  69. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_org_type.py +0 -0
  70. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_patch.py +0 -0
  71. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_population.py +0 -0
  72. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_poverty_rate.py +0 -0
  73. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_refugees.py +0 -0
  74. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_resource.py +0 -0
  75. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_returnees.py +0 -0
  76. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_sector.py +0 -0
  77. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_wfp_commodity.py +0 -0
  78. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/sample_data/data_wfp_market.py +0 -0
  79. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_admin1.py +0 -0
  80. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_admin2.py +0 -0
  81. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_conflict_event.py +0 -0
  82. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_currency.py +0 -0
  83. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_dataset.py +0 -0
  84. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_food_price.py +0 -0
  85. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_food_security.py +0 -0
  86. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_funding.py +0 -0
  87. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_humanitarian_needs.py +0 -0
  88. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_idps.py +0 -0
  89. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_location.py +0 -0
  90. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_national_risk.py +0 -0
  91. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_operational_presence.py +0 -0
  92. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_org.py +0 -0
  93. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_org_type.py +0 -0
  94. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_patch.py +0 -0
  95. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_population.py +0 -0
  96. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_poverty_rate.py +0 -0
  97. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_refugees.py +0 -0
  98. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_resource.py +0 -0
  99. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_returnees.py +0 -0
  100. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_sector.py +0 -0
  101. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_views_as_tables.py +0 -0
  102. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_wfp_commodity.py +0 -0
  103. {hapi_schema-0.9.4 → hapi_schema-0.9.5}/tests/test_wfp_market.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: hapi-schema
3
- Version: 0.9.4
3
+ Version: 0.9.5
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,12 @@ 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.9.5
9
+
10
+ ### Changed
11
+
12
+ - Changed precision of poverty rate constraint
13
+
8
14
  ## 0.9.4
9
15
 
10
16
  ### 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.9.4'
16
- __version_tuple__ = version_tuple = (0, 9, 4)
15
+ __version__ = version = '0.9.5'
16
+ __version_tuple__ = version_tuple = (0, 9, 5)
@@ -34,7 +34,7 @@ class DBPovertyRate(Base):
34
34
  percentage_constraint(var_name="in_severe_poverty"),
35
35
  reference_period_constraint(),
36
36
  CheckConstraint(
37
- sqltext="ABS(headcount_ratio / 100 * intensity_of_deprivation / 100 - mpi) < 0.00001",
37
+ sqltext="ABS(headcount_ratio / 100 * intensity_of_deprivation / 100 - mpi) < 0.0001",
38
38
  name="mpi_product_constraint",
39
39
  ),
40
40
  )
File without changes
File without changes
File without changes
File without changes
File without changes