-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [OSM-2206] support for local whl files req specifier (#254)
- Loading branch information
Showing
6 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,19 @@ describe('inspect', () => { | |
}); | ||
|
||
it.each([ | ||
{ | ||
workspace: 'pip-app-local-whl-file', | ||
uninstallPackages: [], | ||
pluginOpts: { allowMissing: true }, | ||
expected: [ | ||
{ | ||
pkg: { | ||
name: 'pandas', | ||
}, | ||
directDeps: ['my-package'], | ||
}, | ||
], | ||
}, | ||
{ | ||
workspace: 'pip-app', | ||
uninstallPackages: [], | ||
|
@@ -924,21 +937,6 @@ describe('inspect', () => { | |
}, | ||
], | ||
}, | ||
{ | ||
workspace: 'pipenv-app', | ||
targetFile: undefined, | ||
expected: [ | ||
{ | ||
pkg: { | ||
name: 'jinja2', | ||
version: '3.1.4', | ||
}, | ||
labels: { | ||
pkgIdProvenance: '[email protected]', | ||
}, | ||
}, | ||
], | ||
}, | ||
])( | ||
'should get correct pkgIdProvenance labels for packages in graph for workspace = $workspace', | ||
async ({ workspace, targetFile, expected }) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
The Python wheel file `./lib/my_package-0.1.0-py3-none-any.whl` was created based off of the `setup.py` file in the `project` directory by running `python setup.py bdist_wheel`. | ||
It was initially created at `/project/dist/my_package-0.1.0-py3-none-any.whl`, but moved to the `lib` directory. |
Binary file added
BIN
+1.02 KB
test/workspaces/pip-app-local-whl-file/lib/my_package-0.1.0-py3-none-any.whl
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from setuptools import setup, find_packages | ||
setup( | ||
name='my_package', | ||
version='0.1.0', | ||
description='My awesome package', | ||
author='Your Name', | ||
author_email='[email protected]', | ||
packages=find_packages(), | ||
install_requires=['numpy', 'pandas'], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
requests==2.31.0 | ||
./lib/my_package-0.1.0-py3-none-any.whl |