Skip to content

Updated condition to skip for pytables build issue on numpy 1.15 #22098 #22522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 31, 2018
Merged

Updated condition to skip for pytables build issue on numpy 1.15 #22098 #22522

merged 7 commits into from
Aug 31, 2018

Conversation

NikhilKumarM
Copy link
Contributor

Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you fetch and merge master? That should fix the circleCI failure.

@@ -74,5 +75,6 @@ def np_array_datetime64_compat(arr, *args, **kwargs):
'_np_version_under1p12',
'_np_version_under1p13',
'_np_version_under1p14',
'_np_version_under1p15'
'_np_version_under1p15',
'_np_version_equal1p15'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nint: add a trailing comma

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the comma required after '_np_version_equal1p15'?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, but it makes the next diff nicer.

@@ -2192,7 +2192,7 @@ def test_unimplemented_dtypes_table_columns(self):
pytest.raises(TypeError, store.append, 'df_unimplemented', df)

@pytest.mark.skipif(
not _np_version_under1p15,
_np_version_equal1p15,
reason=("pytables conda build package needs build "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could update this message to link to the upstream numpy issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@NikhilKumarM
Copy link
Contributor Author

I have fetched and merged master. But still shows a build error. Anything wrong with my code.

@TomAugspurger
Copy link
Contributor

Looks like numpy 1.15 was installed.

Anaconda doesn't seem to have 1.15.1 built yet https://repo.continuum.io/pkgs/main/linux-64/. Will probably be up this week.

@@ -15,6 +15,7 @@
_np_version_under1p13 = _nlv < LooseVersion('1.13')
_np_version_under1p14 = _nlv < LooseVersion('1.14')
_np_version_under1p15 = _nlv < LooseVersion('1.15')
_np_version_equal1p15 = _nlv == LooseVersion('1.15')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the pattern to change this to

_np_version_under1p16 = _nlv < LooseVersion('1.16')
_np_version_equal1p16 = _nlv == LooseVersion('1.16')

when numpy 1.16 comes out? Or is this a one off to meet a current need?

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Aug 27, 2018 via email

@@ -2192,9 +2192,9 @@ def test_unimplemented_dtypes_table_columns(self):
pytest.raises(TypeError, store.append, 'df_unimplemented', df)

@pytest.mark.skipif(
not _np_version_under1p15,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't define anything new here, juse use LooseVersion explicity to check for 1.15.0 as this is the only version affected.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed it. Could you please have a look at it @jreback. let me know if changes required.

@jreback jreback added the Testing pandas testing functions or related to the test suite label Aug 28, 2018
not _np_version_under1p15,
reason=("pytables conda build package needs build "
"with numpy 1.15: gh-22098"))
LooseVersion(np.__version__) == LooseVersion('1.15'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need 1.15.0 here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can use StrictVersion here?

Copy link
Contributor Author

@NikhilKumarM NikhilKumarM Aug 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. I see LooseVersion('1.15') and LooseVersion('1.15.0') are not equal. But, StrictVersion('1.15') and Strict Version('1.15.0') are equal. We can use StrictVersion, in that we can use '1.15' or '1.15.0'. If we are using LooseVersion, then it should be '1.15.0'.

Copy link
Contributor Author

@NikhilKumarM NikhilKumarM Aug 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it safe to use StrictVersion then?

Copy link
Contributor Author

@NikhilKumarM NikhilKumarM Aug 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made changes with LooseVersion('1.15.0'). I think this will suffice. Please let me know if we have to use StrictVersion instead. @jreback @TomAugspurger

@jreback jreback added this to the 0.24.0 milestone Aug 29, 2018
@jreback jreback merged commit 285eb1e into pandas-dev:master Aug 31, 2018
@jreback
Copy link
Contributor

jreback commented Aug 31, 2018

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TST: remove skip for pytables build issue on numpy 1.15
4 participants