Skip to content
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

Install data and dependencies #403

Merged
merged 28 commits into from Feb 8, 2019
Merged

Install data and dependencies #403

merged 28 commits into from Feb 8, 2019

Conversation

rwedge
Copy link
Contributor

@rwedge rwedge commented Feb 5, 2019

In addition to primitives files, featuretools install will now look for a folder named "data" and copy it to featuretools/primitives/data/. It will also look for "requirements.txt" and run pip install -r requirements.txt if it finds it.

@codecov
Copy link

codecov bot commented Feb 5, 2019

Codecov Report

Merging #403 into master will increase coverage by 0.04%.
The diff coverage is 95.58%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #403      +/-   ##
==========================================
+ Coverage   96.07%   96.11%   +0.04%     
==========================================
  Files          92       92              
  Lines        8023     8162     +139     
==========================================
+ Hits         7708     7845     +137     
- Misses        315      317       +2
Impacted Files Coverage Δ
featuretools/primitives/install.py 90.9% <88.88%> (+1.83%) ⬆️
...s/tests/primitive_tests/test_install_primitives.py 98.93% <98.42%> (-1.07%) ⬇️

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 f770816...9eb5f6d. Read the comment docs.

Copy link
Contributor

@kmax12 kmax12 left a comment

Choose a reason for hiding this comment

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

Looking good. Should be ready to merge after my comments are addressed

directory = os.path.join(tmp_dir, os.path.dirname(members[0].path))
for member in members:
if os.path.isfile(os.path.join(tmp_dir, member.path)):
directory = os.path.join(tmp_dir, os.path.dirname(member.path))
Copy link
Contributor

Choose a reason for hiding this comment

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

should there be a break out of this loop after the directory is found?

if prompt:
while True:
resp = input("Install primitives: %s? (Y/n) " % primitives_list)
if resp == "Y":
Copy link
Contributor

Choose a reason for hiding this comment

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

should we update this to make it not case sensitive?

files_to_copy.append(filepath)
all_primitives.add(primitive_obj.name)

if all_primitives != set(info['primitives']):
Copy link
Contributor

Choose a reason for hiding this comment

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

just need to add a test for this case

for filepath in files:
primitive_name, primitive_obj = load_primitive_from_file(filepath)
if primitive_obj.name not in info['primitives']:
raise RuntimeError("Primitive %s not listed in "
Copy link
Contributor

Choose a reason for hiding this comment

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

just need to add a test for this case

Copy link
Contributor

@kmax12 kmax12 left a comment

Choose a reason for hiding this comment

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

LGTM

@rwedge rwedge merged commit 2273050 into master Feb 8, 2019
@rwedge rwedge mentioned this pull request Feb 15, 2019
@rwedge rwedge deleted the install-data-and-dependencies branch February 19, 2021 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants