Skip to content

Commit 3fb1e13

Browse files
committed
Handle nei/tests/coveragerc in setup.py
For some reason I keep getting an error that the coveragerc file has not been found. Here I'm handling the coveragerc file (for code test coverage checking) in the same way as the HDF5 files.
1 parent fe5253d commit 3fb1e13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,14 @@
129129
package_info['package_data'][PACKAGENAME].extend(c_files)
130130

131131
# Include all HDF5 files, recursively, since we cannot do this in
132-
# MANIFEST.in with a "dynamic" directory name.
132+
# MANIFEST.in with a "dynamic" directory name. Adding in coveragerc
133+
# too as a bit of a hack since it doesn't seem to be working from
134+
# MANIFEST.in.
133135

134136
h5_files = []
135137
for root, dirs, files in os.walk(PACKAGENAME):
136138
for filename in files:
137-
if filename.endswith('.h5'):
139+
if filename.endswith('.h5') or filename.endswith('coveragerc'):
138140
h5_files.append(
139141
os.path.join(
140142
os.path.relpath(root, PACKAGENAME), filename))

0 commit comments

Comments
 (0)