From 86de5a33ca4a71d01bb93ebe3bc48f5f90de35d7 Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 28 Mar 2023 10:41:29 -0400 Subject: [PATCH] Correct cerc-hub installer to include dependencies --- hub/unittests/test_exports.py | 6 +++--- requirements.txt | 3 ++- setup.py | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hub/unittests/test_exports.py b/hub/unittests/test_exports.py index aad41374..3487569f 100644 --- a/hub/unittests/test_exports.py +++ b/hub/unittests/test_exports.py @@ -106,9 +106,9 @@ class TestExports(TestCase): path=file_path, function_to_hub=Dictionaries().alkis_function_to_hub_function).city self.assertIsNotNone(city, 'city is none') - # EnergyBuildingsExportsFactory('idf', city, self._output_path).export() - # ConstructionFactory('nrcan', city).enrich() - # EnergyBuildingsExportsFactory('idf', city, self._output_path).export() + EnergyBuildingsExportsFactory('idf', city, self._output_path).export() + ConstructionFactory('nrcan', city).enrich() + EnergyBuildingsExportsFactory('idf', city, self._output_path).export() UsageFactory('nrcan', city).enrich() try: EnergyBuildingsExportsFactory('idf', city, self._output_path).export() diff --git a/requirements.txt b/requirements.txt index 1d53e0cb..72293904 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,4 +23,5 @@ shapely geopandas triangle psycopg2-binary -Pillow \ No newline at end of file +Pillow +pathlib \ No newline at end of file diff --git a/setup.py b/setup.py index fc8b3bd1..bbc2f8f3 100644 --- a/setup.py +++ b/setup.py @@ -80,6 +80,7 @@ setup( 'hub.imports' ], setup_requires=install_requires, + install_requires=install_requires, data_files=[ ('hub', glob.glob('requirements.txt')), ('hub/config', glob.glob('hub/config/*.ini')),