Skip to content

Commit

Permalink
Update the package data file installs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhamer-noaa committed Aug 5, 2024
1 parent c701262 commit 9cae57f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def package_files(directory):
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join(path, filename))
print(directory, paths)
return paths

setup(name='idsse-testing',
Expand All @@ -32,11 +33,14 @@ def package_files(directory):
'idsse.testing.risk_processor.simple',
'idsse.testing.risk_processor.syracuse',
'idsse.testing.utils'],
data_files=[('idsse.testing.data_access.data_cache', package_files('idsse.testing/data_access/data_cache')),
('idsse.testing.data_access.mrms_aws_grib', package_files('idsse.testing/data_access/mrms_aws_grib')),
('idsse.testing.data_access.nbm_aws_grib', package_files('idsse.testing/data_access/nbm_aws_grib'))],
data_files=[('idsse.testing.data_access.data_cache', package_files('idsse/testing/data_access/data_cache')),
('idsse.testing.data_access.mrms_aws_grib', package_files('idsse/testing/data_access/mrms_aws_grib')),
('idsse.testing.data_access.nbm_aws_grib', package_files('idsse/testing/data_access/nbm_aws_grib'))],
include_package_data=True,
package_data={'':['*.csv', '*.json', '*.nc', '*.grib2*'],},
package_data={'':['*.csv', '*.json', '*.nc', '*.grib2*'],
'idsse.testing.data_access.data_cache': package_files('idsse/testing/data_access/data_cache'),
'idsse.testing.data_access.mrms_aws_grib': package_files('idsse/testing/data_access/mrms_aws_grib'),
'idsse.testing.data_access.nbm_aws_grib': package_files('idsse/testing/data_access/nbm_aws_grib')},
install_requires=[
'pika',
'jsonschema',
Expand Down

0 comments on commit 9cae57f

Please sign in to comment.