Skip to content

BLD: updated conda recipe to be conda-bld 3plus compliant #18592

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

Closed

Conversation

bobhaffner
Copy link
Contributor

I did local testing of the build. Assuming the CI will catch any errors?

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm. so we don't actually test this on the ci directly. would be nice to tackle that as well (we would hijack a specific build, like we do for BUILD_TEST, where we use pip to build), and use this recipe to build it directly.

@@ -14,14 +14,14 @@ requirements:
build:
- python
- cython
- numpy x.x
- numpy
- setuptools
- pytz
Copy link
Contributor

Choose a reason for hiding this comment

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

we can remove pytz/python-dateutil from the build step

@jreback jreback added the Build Library building on various platforms label Dec 1, 2017
@bobhaffner
Copy link
Contributor Author

@jreback Sounds like a plan. I'll check out BUILD_TEST. Separate PR?

@jreback
Copy link
Contributor

jreback commented Dec 1, 2017

@bobhaffner separate PR is fine.

actually, can you add to this PR?

@bobhaffner
Copy link
Contributor Author

@jreback No problem. I'll check it out later today

@codecov
Copy link

codecov bot commented Dec 1, 2017

Codecov Report

Merging #18592 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18592      +/-   ##
==========================================
- Coverage   91.44%   91.43%   -0.02%     
==========================================
  Files         157      157              
  Lines       51379    51379              
==========================================
- Hits        46985    46978       -7     
- Misses       4394     4401       +7
Flag Coverage Δ
#multiple 89.3% <ø> (ø) ⬆️
#single 40.57% <ø> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.81% <0%> (-0.1%) ⬇️
pandas/util/testing.py 81.8% <0%> (+0.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d74ac70...dcdf988. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 1, 2017

Codecov Report

Merging #18592 into master will decrease coverage by 0.16%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18592      +/-   ##
==========================================
- Coverage   91.59%   91.43%   -0.17%     
==========================================
  Files         153      157       +4     
  Lines       51361    51379      +18     
==========================================
- Hits        47046    46978      -68     
- Misses       4315     4401      +86
Flag Coverage Δ
#multiple 89.3% <ø> (-0.16%) ⬇️
#single 40.57% <ø> (-0.17%) ⬇️
Impacted Files Coverage Δ
pandas/tseries/converter.py 0% <0%> (-100%) ⬇️
pandas/io/excel.py 80.39% <0%> (-9.74%) ⬇️
pandas/io/json/table_schema.py 95.83% <0%> (-1.39%) ⬇️
pandas/plotting/_converter.py 65.25% <0%> (-1.27%) ⬇️
pandas/core/reshape/melt.py 96.22% <0%> (-1.03%) ⬇️
pandas/core/indexes/interval.py 93.05% <0%> (-0.75%) ⬇️
pandas/util/testing.py 81.8% <0%> (-0.74%) ⬇️
pandas/compat/__init__.py 58.18% <0%> (-0.59%) ⬇️
pandas/io/json/json.py 91.75% <0%> (-0.34%) ⬇️
pandas/core/indexes/category.py 97.2% <0%> (-0.31%) ⬇️
... and 38 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99d384d...d0c77a6. Read the comment docs.

@bobhaffner
Copy link
Contributor Author

I'm having a little trouble figuring out how to tackle this BUILD_TEST.

I'm thinking about adding a piece at line 170 of install_travis.sh to remove the pip build after it's complete and then proceed with the conda recipe build. Not sure though, my CI experience is limited. Eager to learn it though. Any advice would be appreciated.

@jreback
Copy link
Contributor

jreback commented Dec 3, 2017

don’t remove the existing code rather we can add this for say CONDA_BUILD_TEST

would repurpose one of the other allowed failure builds just change the name of that build (eg ci/requirements needs changes as well as .travis.yml)

@bobhaffner
Copy link
Contributor Author

Thanks for the reply, @jreback

So add a CONDA_BUILD_TEST to the .travis.yml and create the following?

requirements-3.6_CONDA_BUILD_TEST.build
requirements-3.6_CONDA_BUILD_TEST.pip
requirements-3.6_CONDA_BUILD_TEST.sh

I intend to leave the .pip and the .build empty and do the conda build ./conda.recipe/ --numpy 1.11 --python 3.6 -q in the .sh file.

@jreback
Copy link
Contributor

jreback commented Dec 3, 2017

don’t create new, repurpose the 3.5 build: https://travis-ci.org/pandas-dev/pandas/jobs/310085793

@bobhaffner bobhaffner force-pushed the update_conda_build_recipe branch from dcdf988 to bf34fcd Compare December 10, 2017 18:25
@@ -0,0 +1 @@

Copy link
Contributor

Choose a reason for hiding this comment

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

this file not needed

@@ -330,4 +330,5 @@ Other
^^^^^

- Improved error message when attempting to use a Python keyword as an identifier in a ``numexpr`` backed query (:issue:`18221`)
-
- Updated conda recipe to be in compliance with conda-build 3.0+ (:issue:`18002`)
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 now have a section on building changes; don't need the whatsnew about ci

@bobhaffner
Copy link
Contributor Author

Thanks for the feedback, @jreback


conda install conda-build

conda build ./conda.recipe/ --numpy 1.11 --python 3.6 -q
Copy link
Contributor

Choose a reason for hiding this comment

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

rather than the actual build line here, but this in install_travis_script; call this BUILD_TEST_CONDA (rather than BUILD_TEST) so you can disambiguate, rename the other to BUILD_TEST_PIP.

.travis.yml Outdated
@@ -79,6 +80,9 @@ matrix:
- dist: trusty
env:
- JOB="2.7_SLOW" SLOW=true
- dist: trusty
env:
- JOB="3.6_CONDA_BUILD_TEST" TEST_ARGS="--skip-slow" BUILD_TEST=true
Copy link
Contributor

Choose a reason for hiding this comment

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

need a space here, this line has to EXACTLY match the one above. add back --skip-network to TEST_ARGS

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 add this to the allowed failures, it should be a main build test only

@bobhaffner
Copy link
Contributor Author

Hi @jreback, should I remove BUILD_TEST(soon to be PIP_BUILD_TEST) from allowed failures as well?

@jreback
Copy link
Contributor

jreback commented Dec 12, 2017

leave these as they r for the location of allowed failures

@bobhaffner bobhaffner force-pushed the update_conda_build_recipe branch from 8b70712 to d0c77a6 Compare December 12, 2017 03:20
@bobhaffner
Copy link
Contributor Author

Hey @jreback, Its obvious this one is out of my depth so I'm packing it in. I appreciate the advice and the patience. Let me know if you want me to re-submit the original PR

@jreback
Copy link
Contributor

jreback commented Dec 12, 2017

no prob i will finish this up from here
thanks!

but feel free to work on other issues!

@bobhaffner
Copy link
Contributor Author

Thanks, Jeff. And I intend to. Even though I've made just a couple of contributions, I've really enjoyed it and feel like I've learned a lot.

@jreback
Copy link
Contributor

jreback commented Dec 15, 2017

superseded by #18787

@jreback jreback closed this Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update conda recipe for new conda
2 participants