|
1 | 1 | from setuptools import setup, find_packages |
2 | | -import glob |
3 | | - |
4 | | - |
5 | | -data_files = [] |
6 | | -directories = glob.glob('bim2sim\\assets\\') |
7 | | -for directory in directories: |
8 | | - files = glob.glob(directory + '*') |
9 | | - data_files.append((directory, files)) |
10 | 2 |
|
11 | 3 | with open("README.md", 'r') as f: |
12 | 4 | long_description = f.read() |
| 5 | +with open("requirements.txt", 'r') as f: |
| 6 | + required = f.read().splitlines() |
| 7 | +VERSION = "0.1.0" |
| 8 | + |
13 | 9 |
|
14 | 10 | setup( |
15 | 11 | name='bim2sim', |
16 | | - version='0.1.dev0', |
| 12 | + version=VERSION, |
17 | 13 | description='Create simulation models from IFC files', |
18 | | - license="???", |
| 14 | + license="LICENSE", |
19 | 15 | long_description=long_description, |
20 | 16 | long_description_content_type='text/markdown', |
21 | 17 | author='BIM2SIM', |
22 | | - author_email='???', |
23 | | - url="???", |
24 | | - packages=find_packages() + ['bim2sim.assets', 'bim2sim.backends'], |
| 18 | + |
| 19 | + url="https://github.com/BIM2SIM/bim2sim", |
| 20 | + packages=find_packages(include=['bim2sim*']), |
25 | 21 | include_package_data=True, |
26 | | - data_files=data_files, |
27 | | - # package_data={'': ['assets/*.*']}, |
28 | | - python_requires='>=3.6.0', |
29 | | - install_requires=[ |
30 | | - 'docopt', 'numpy', 'python-dateutil', |
31 | | - 'mako', 'networkx>=2.2', 'pint' |
32 | | - ], # external packages as dependencies |
33 | | - extras_require={ |
34 | | - 'manual_install': ['ifcopenshell>=0.6'], |
35 | | - 'plotting': ['matplotlib'], |
36 | | - 'communication': ['rpyc'], |
| 22 | + data_files = [('bim2sim\\assets\\enrichment\\hvac', ['bim2sim\\assets\\enrichment\\hvac\\TypeBuildingElements.json']), |
| 23 | + ('bim2sim\\assets\\enrichment\\material', ['bim2sim\\assets\\enrichment\\material\\MaterialTemplates.json', |
| 24 | + 'bim2sim\\assets\\enrichment\\material\\TypeBuildingElements.json']), |
| 25 | + ('bim2sim\\assets\\enrichment\\usage', ['bim2sim\\assets\\enrichment\\usage\\commonUsages.json', |
| 26 | + 'bim2sim\\assets\\enrichment\\usage\\customUsages.json', |
| 27 | + 'bim2sim\\assets\\enrichment\\usage\\customUsagesAC20-FZK-Haus_with_SB55.json', |
| 28 | + 'bim2sim\\assets\\enrichment\\usage\\customUsagesAC20-Institute-Var-2_with_SB-1-0.json', |
| 29 | + 'bim2sim\\assets\\enrichment\\usage\\customUsagesFM_ARC_DigitalHub_fixed002.json', |
| 30 | + 'bim2sim\\assets\\enrichment\\usage\\customUsagesFM_ARC_DigitalHub_with_SB_neu.json', |
| 31 | + 'bim2sim\\assets\\enrichment\\usage\\customUsagesAC20-Institute-Var-2_with_SB-1-0.json', |
| 32 | + 'bim2sim\\assets\\enrichment\\usage\\customUsagesFM_ARC_DigitalHub_fixed002.json', |
| 33 | + 'bim2sim\\assets\\enrichment\\usage\\customUsagesFM_ARC_DigitalHub_with_SB_neu.json', |
| 34 | + 'bim2sim\\assets\\enrichment\\usage\\customUsagesFM_ARC_DigitalHub_with_SB88.json', |
| 35 | + 'bim2sim\\assets\\enrichment\\usage\\customUsagesFM_ARC_DigitalHub_with_SB89.json', |
| 36 | + 'bim2sim\\assets\\enrichment\\usage\\customUsagesKIT-EDC_with_SB.json', |
| 37 | + 'bim2sim\\assets\\enrichment\\usage\\UseConditions.json', |
| 38 | + 'bim2sim\\assets\\enrichment\\usage\\UseConditionsFM_ARC_DigitalHub_fixed002.json', |
| 39 | + 'bim2sim\\assets\\enrichment\\usage\\UseConditionsFM_ARC_DigitalHub_with_SB_neu.json', |
| 40 | + 'bim2sim\\assets\\enrichment\\usage\\UseConditionsFM_ARC_DigitalHub_with_SB89.json']), |
| 41 | + ('bim2sim\\assets\\finder', ['bim2sim\\assets\\finder\\template_ArchiCAD.json', |
| 42 | + 'bim2sim\\assets\\finder\\template_Autodesk Revit.json', |
| 43 | + 'bim2sim\\assets\\finder\\template_LuArtX_Carf.json', |
| 44 | + 'bim2sim\\assets\\finder\\template_TRICAD-MS.json']), |
| 45 | + |
| 46 | + |
| 47 | + ('bim2sim\\assets\\templates\\check_ifc', ['bim2sim\\assets\\templates\\check_ifc\\inst_template', |
| 48 | + 'bim2sim\\assets\\templates\\check_ifc\\prop_template', |
| 49 | + 'bim2sim\\assets\\templates\\check_ifc\\summary_template']), |
| 50 | + ('bim2sim\\assets\\templates\\modelica', ['bim2sim\\assets\\templates\\modelica\\tmplModel.txt']), |
| 51 | + ('bim2sim\\assets\\weatherfiles', ['bim2sim\\assets\\weatherfiles\\DEU_NW_Aachen.105010_TMYx.epw', |
| 52 | + 'bim2sim\\assets\\weatherfiles\\DEU_NW_Aachen.105010_TMYx.mos']), |
| 53 | + ('bim2sim\\assets\\ifc_example_files', ['bim2sim\\assets\\ifc_example_files\\AC20-FZK-Haus.ifc', |
| 54 | + 'bim2sim\\assets\\ifc_example_files\\ERC_EBC_mainbuilding.ifc', |
| 55 | + 'bim2sim\\assets\\ifc_example_files\\hvac_heating.ifc' ]) |
| 56 | + |
| 57 | + ], |
| 58 | + |
| 59 | + package_data={'': ['bim2sim/assets/*.*']}, |
| 60 | + python_requires='>=3.8.*,<3.10.*', |
| 61 | + install_requires=[required |
| 62 | + ], |
| 63 | + |
| 64 | + classifiers=[ |
| 65 | + 'Programming Language :: Python :: 3.8', |
| 66 | + 'Programming Language :: Python :: 3.9', |
| 67 | + ], |
| 68 | + extras_require = { |
| 69 | + 'manual_install': ['ifcopenshell>=0.6', 'pythonocc-core==7.6.2'], |
37 | 70 | }, |
38 | | - entry_points={ |
| 71 | + entry_points = { |
39 | 72 | 'console_scripts': [ |
40 | 73 | 'bim2sim = bim2sim:main', |
41 | 74 | ], |
|
0 commit comments