2023-01-24 10:51:50 -05:00
|
|
|
import glob
|
2023-02-06 06:29:21 -05:00
|
|
|
import pathlib
|
|
|
|
from distutils.util import convert_path
|
|
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
|
2023-03-27 16:28:17 -04:00
|
|
|
with pathlib.Path('requirements.txt').open() as r:
|
2023-02-06 06:29:21 -05:00
|
|
|
install_requires = [
|
2023-07-07 12:36:34 -04:00
|
|
|
str(requirement).replace('\n', '')
|
|
|
|
for requirement
|
|
|
|
in r.readlines()
|
2023-02-06 06:29:21 -05:00
|
|
|
]
|
2024-10-03 14:05:56 -04:00
|
|
|
install_requires.append('setuptools')
|
2023-01-24 10:51:50 -05:00
|
|
|
|
2023-01-31 13:11:39 -05:00
|
|
|
main_ns = {}
|
|
|
|
version = convert_path('hub/version.py')
|
|
|
|
with open(version) as f:
|
2023-05-30 17:13:49 -04:00
|
|
|
exec(f.read(), main_ns)
|
|
|
|
|
|
|
|
|
2023-01-24 10:51:50 -05:00
|
|
|
setup(
|
2023-05-30 17:13:49 -04:00
|
|
|
name='cerc-hub',
|
|
|
|
version=main_ns['__version__'],
|
2023-09-04 10:46:38 -04:00
|
|
|
description="CERC Hub consist of a set of classes (Central data model), importers and exporters to help researchers "
|
|
|
|
"to create better and more sustainable cities",
|
|
|
|
long_description="CERC Hub consist of a set of classes (Central data model), importers and exporters to help "
|
|
|
|
"researchers to create better and more sustainable cities.\n\nDeveloped at Concordia university in Canada "
|
|
|
|
"as part of the research group from the Next Generation Cities Institute, our aim among others is "
|
2023-05-30 17:13:49 -04:00
|
|
|
"to provide a comprehensive set of tools to help researchers and urban developers to make decisions "
|
|
|
|
"to improve the livability and efficiency of our cities",
|
|
|
|
classifiers=[
|
2023-02-06 06:29:21 -05:00
|
|
|
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
],
|
|
|
|
include_package_data=True,
|
2023-05-30 17:13:49 -04:00
|
|
|
packages=['hub',
|
|
|
|
'hub.catalog_factories',
|
|
|
|
'hub.catalog_factories.construction',
|
|
|
|
'hub.catalog_factories.cost',
|
|
|
|
'hub.catalog_factories.data_models',
|
|
|
|
'hub.catalog_factories.data_models.construction',
|
|
|
|
'hub.catalog_factories.data_models.cost',
|
|
|
|
'hub.catalog_factories.data_models.energy_systems',
|
|
|
|
'hub.catalog_factories.data_models.greenery',
|
|
|
|
'hub.catalog_factories.data_models.usages',
|
|
|
|
'hub.catalog_factories.energy_systems',
|
|
|
|
'hub.catalog_factories.greenery',
|
|
|
|
'hub.catalog_factories.greenery.ecore_greenery',
|
|
|
|
'hub.catalog_factories.usage',
|
|
|
|
'hub.city_model_structure',
|
|
|
|
'hub.city_model_structure.attributes',
|
|
|
|
'hub.city_model_structure.building_demand',
|
|
|
|
'hub.city_model_structure.energy_systems',
|
|
|
|
'hub.city_model_structure.greenery',
|
|
|
|
'hub.city_model_structure.iot',
|
|
|
|
'hub.config',
|
|
|
|
'hub.data',
|
|
|
|
'hub.exports',
|
|
|
|
'hub.exports.building_energy',
|
|
|
|
'hub.exports.building_energy.idf_files',
|
|
|
|
'hub.exports.building_energy.insel',
|
|
|
|
'hub.exports.energy_systems',
|
|
|
|
'hub.exports.formats',
|
|
|
|
'hub.helpers',
|
|
|
|
'hub.helpers.peak_calculation',
|
|
|
|
'hub.helpers.data',
|
2024-11-24 01:48:35 -05:00
|
|
|
'hub.helpers.parsers',
|
2023-05-30 17:13:49 -04:00
|
|
|
'hub.imports',
|
|
|
|
'hub.imports.construction',
|
|
|
|
'hub.imports.construction.helpers',
|
|
|
|
'hub.imports.energy_systems',
|
|
|
|
'hub.imports.geometry',
|
|
|
|
'hub.imports.geometry.citygml_classes',
|
|
|
|
'hub.imports.geometry.helpers',
|
|
|
|
'hub.imports.results',
|
|
|
|
'hub.imports.usage',
|
|
|
|
'hub.imports.weather',
|
|
|
|
'hub.imports.weather.helpers',
|
|
|
|
'hub.persistence',
|
|
|
|
'hub.persistence.models',
|
|
|
|
'hub.persistence.repositories',
|
|
|
|
'hub.imports'
|
|
|
|
],
|
|
|
|
setup_requires=install_requires,
|
|
|
|
install_requires=install_requires,
|
|
|
|
data_files=[
|
|
|
|
('hub', glob.glob('requirements.txt')),
|
|
|
|
('hub/config', glob.glob('hub/config/*.ini')),
|
2023-09-04 10:46:38 -04:00
|
|
|
('hub/catalog_factories/greenery/ecore_greenery',
|
|
|
|
glob.glob('hub/catalog_factories/greenery/ecore_greenery/*.ecore')),
|
2023-05-31 11:04:41 -04:00
|
|
|
('hub/data/construction', glob.glob('hub/data/construction/*')),
|
|
|
|
('hub/data/costs', glob.glob('hub/data/costs/montreal_costs.xml')),
|
|
|
|
('hub/data/customized_imports', glob.glob('hub/data/customized_imports/ashrae_archetypes.xml')),
|
2023-05-30 17:13:49 -04:00
|
|
|
('hub/data/energy_systems', glob.glob('hub/data/energy_systems/*.xml')),
|
2023-05-31 11:04:41 -04:00
|
|
|
('hub/data/energy_systems/heat_pumps', glob.glob('hub/data/energy_systems/heat_pumps/*.xml')),
|
|
|
|
('hub/data/energy_systems/heat_pumps', glob.glob('hub/data/energy_systems/heat_pumps/*.insel')),
|
|
|
|
('hub/data/energy_systems/heat_pumps', glob.glob('hub/data/energy_systems/heat_pumps/*.xlsx')),
|
|
|
|
('hub/data/energy_systems/heat_pumps', glob.glob('hub/data/energy_systems/heat_pumps/*.txt')),
|
|
|
|
('hub/data/energy_systems/heat_pumps', glob.glob('hub/data/energy_systems/heat_pumps/*.yaml')),
|
|
|
|
('hub/data/geolocation', glob.glob('hub/data/geolocation/*.txt')),
|
2023-05-30 17:13:49 -04:00
|
|
|
('hub/data/greenery', glob.glob('hub/data/greenery/*.xml')),
|
|
|
|
('hub/data/usage', glob.glob('hub/data/usage/*.xml')),
|
2024-01-18 00:32:44 -05:00
|
|
|
('hub/data/usage', glob.glob('hub/data/usage/*.json')),
|
2023-05-30 17:13:49 -04:00
|
|
|
('hub/data/usage', glob.glob('hub/data/usage/*.xlsx')),
|
|
|
|
('hub/data/weather', glob.glob('hub/data/weather/*.dat')),
|
|
|
|
('hub/data/weather/epw', glob.glob('hub/data/weather/epw/*.epw')),
|
|
|
|
('hub/data/weather', glob.glob('hub/data/weather/*.dat')),
|
|
|
|
('hub/exports/building_energy/idf_files', glob.glob('hub/exports/building_energy/idf_files/*.idf')),
|
2023-05-31 11:04:41 -04:00
|
|
|
('hub/exports/building_energy/idf_files', glob.glob('hub/exports/building_energy/idf_files/*.idd'))
|
2023-05-30 17:13:49 -04:00
|
|
|
],
|
2023-02-06 06:29:21 -05:00
|
|
|
|
2024-11-24 01:48:35 -05:00
|
|
|
)
|