Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

add requirements builder #434

Merged
merged 41 commits into from
Oct 25, 2022
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
cd51b90
add requirements builder
madhur-tandon Oct 7, 2022
05b9e5c
add builder for virtualenv
madhur-tandon Oct 7, 2022
6e6aea7
fix linting
madhur-tandon Oct 7, 2022
c747cc1
fix pylint again
madhur-tandon Oct 7, 2022
7654db9
fix entrypoints
madhur-tandon Oct 7, 2022
407203e
remove upgrade deps
madhur-tandon Oct 7, 2022
fc7c3dd
add ability to install in current active venv
madhur-tandon Oct 7, 2022
4446650
fix pylint
madhur-tandon Oct 7, 2022
df9e2a3
add ability to create conda based envs
madhur-tandon Oct 8, 2022
129ecdf
fix import
madhur-tandon Oct 8, 2022
50e4e30
fix has_conda check
madhur-tandon Oct 8, 2022
14a6626
fix windows issues
madhur-tandon Oct 8, 2022
7b6bc23
relax array comparison test
madhur-tandon Oct 8, 2022
5537ad3
fix typo
madhur-tandon Oct 9, 2022
b7c1d92
use conda in github actions
madhur-tandon Oct 9, 2022
1cb1d10
suggested improvements
madhur-tandon Oct 10, 2022
2171924
fix python version determination
madhur-tandon Oct 10, 2022
9161ab7
make create_virtual_env consistent
madhur-tandon Oct 11, 2022
39fcd57
suggested improvements
madhur-tandon Oct 12, 2022
a449918
add test for unix based req
madhur-tandon Oct 12, 2022
6239563
pass sample data
madhur-tandon Oct 12, 2022
896a25f
fix test
madhur-tandon Oct 12, 2022
e328ee8
minor improvements
madhur-tandon Oct 14, 2022
7d83350
use load_impl_ext for requirements builder
madhur-tandon Oct 14, 2022
031a8a4
fix tests
madhur-tandon Oct 14, 2022
b2141d4
add test for invalid req_type
madhur-tandon Oct 14, 2022
3080313
register conda mark in pytest
madhur-tandon Oct 14, 2022
550db69
add test for current and active venv
madhur-tandon Oct 14, 2022
7ccf8e1
fix tests
madhur-tandon Oct 14, 2022
993409b
fix test
madhur-tandon Oct 14, 2022
0d05981
add conda reqs as list for the builder
madhur-tandon Oct 14, 2022
4b798f2
remove usage of context and protected access
madhur-tandon Oct 14, 2022
6eea4ab
fix entrypoints
madhur-tandon Oct 14, 2022
bd72738
remove pylint disable
madhur-tandon Oct 14, 2022
4dabca5
move CondaPackageRequirement to mlem.contrib.venv
madhur-tandon Oct 17, 2022
6fa56ff
use materialize
madhur-tandon Oct 18, 2022
b5e968c
fix tests
madhur-tandon Oct 18, 2022
3d51c66
fix docstrings
madhur-tandon Oct 18, 2022
ecf555d
fix tests
madhur-tandon Oct 18, 2022
10e9e9c
fix docs based test
madhur-tandon Oct 18, 2022
0bd9007
suggested changes
madhur-tandon Oct 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pass sample data
madhur-tandon committed Oct 18, 2022
commit 6239563784d707d375e8737270a8d1ceed9944ad
2 changes: 1 addition & 1 deletion tests/contrib/test_requirements.py
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ def test_unix_requirement(capsys):
free_raw_data=False,
)
booster = lgb.train({}, data_np, 1)
model = MlemModel.from_obj(booster)
model = MlemModel.from_obj(booster, sample_data=data_np)
builder = RequirementsBuilder(platform="unix")
builder.build(model)
captured = capsys.readouterr()