Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
f897294a
Commit
f897294a
authored
May 17, 2022
by
Nikolas Stevenson-Molnar
Committed by
Bjorn Neergaard
May 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make `test_installer.py` tests pass from any dir
parent
147b651d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
4 deletions
+30
-4
tests/installation/test_installer.py
+30
-4
No files found.
tests/installation/test_installer.py
View file @
f897294a
...
@@ -1186,8 +1186,15 @@ def test_run_installs_with_local_file(
...
@@ -1186,8 +1186,15 @@ def test_run_installs_with_local_file(
package
:
ProjectPackage
,
package
:
ProjectPackage
,
fixture_dir
:
FixtureDirGetter
,
fixture_dir
:
FixtureDirGetter
,
):
):
root_dir
=
Path
(
__file__
)
.
parent
.
parent
.
parent
package
.
root_dir
=
root_dir
locker
.
set_lock_path
(
root_dir
)
file_path
=
fixture_dir
(
"distributions/demo-0.1.0-py2.py3-none-any.whl"
)
file_path
=
fixture_dir
(
"distributions/demo-0.1.0-py2.py3-none-any.whl"
)
package
.
add_dependency
(
Factory
.
create_dependency
(
"demo"
,
{
"file"
:
str
(
file_path
)}))
package
.
add_dependency
(
Factory
.
create_dependency
(
"demo"
,
{
"file"
:
str
(
file_path
.
relative_to
(
root_dir
))},
root_dir
=
root_dir
)
)
repo
.
add_package
(
get_package
(
"pendulum"
,
"1.4.4"
))
repo
.
add_package
(
get_package
(
"pendulum"
,
"1.4.4"
))
...
@@ -1206,10 +1213,17 @@ def test_run_installs_wheel_with_no_requires_dist(
...
@@ -1206,10 +1213,17 @@ def test_run_installs_wheel_with_no_requires_dist(
package
:
ProjectPackage
,
package
:
ProjectPackage
,
fixture_dir
:
FixtureDirGetter
,
fixture_dir
:
FixtureDirGetter
,
):
):
root_dir
=
Path
(
__file__
)
.
parent
.
parent
.
parent
package
.
root_dir
=
root_dir
locker
.
set_lock_path
(
root_dir
)
file_path
=
fixture_dir
(
file_path
=
fixture_dir
(
"wheel_with_no_requires_dist/demo-0.1.0-py2.py3-none-any.whl"
"wheel_with_no_requires_dist/demo-0.1.0-py2.py3-none-any.whl"
)
)
package
.
add_dependency
(
Factory
.
create_dependency
(
"demo"
,
{
"file"
:
str
(
file_path
)}))
package
.
add_dependency
(
Factory
.
create_dependency
(
"demo"
,
{
"file"
:
str
(
file_path
.
relative_to
(
root_dir
))},
root_dir
=
root_dir
)
)
installer
.
run
()
installer
.
run
()
...
@@ -1228,10 +1242,15 @@ def test_run_installs_with_local_poetry_directory_and_extras(
...
@@ -1228,10 +1242,15 @@ def test_run_installs_with_local_poetry_directory_and_extras(
tmpdir
:
Path
,
tmpdir
:
Path
,
fixture_dir
:
FixtureDirGetter
,
fixture_dir
:
FixtureDirGetter
,
):
):
root_dir
=
Path
(
__file__
)
.
parent
.
parent
.
parent
package
.
root_dir
=
root_dir
locker
.
set_lock_path
(
root_dir
)
file_path
=
fixture_dir
(
"project_with_extras"
)
file_path
=
fixture_dir
(
"project_with_extras"
)
package
.
add_dependency
(
package
.
add_dependency
(
Factory
.
create_dependency
(
Factory
.
create_dependency
(
"project-with-extras"
,
{
"path"
:
str
(
file_path
),
"extras"
:
[
"extras_a"
]}
"project-with-extras"
,
{
"path"
:
str
(
file_path
.
relative_to
(
root_dir
)),
"extras"
:
[
"extras_a"
]},
root_dir
=
root_dir
,
)
)
)
)
...
@@ -1319,9 +1338,16 @@ def test_run_installs_with_local_setuptools_directory(
...
@@ -1319,9 +1338,16 @@ def test_run_installs_with_local_setuptools_directory(
tmpdir
:
Path
,
tmpdir
:
Path
,
fixture_dir
:
FixtureDirGetter
,
fixture_dir
:
FixtureDirGetter
,
):
):
root_dir
=
Path
(
__file__
)
.
parent
.
parent
.
parent
package
.
root_dir
=
root_dir
locker
.
set_lock_path
(
root_dir
)
file_path
=
fixture_dir
(
"project_with_setup/"
)
file_path
=
fixture_dir
(
"project_with_setup/"
)
package
.
add_dependency
(
package
.
add_dependency
(
Factory
.
create_dependency
(
"project-with-setup"
,
{
"path"
:
str
(
file_path
)})
Factory
.
create_dependency
(
"project-with-setup"
,
{
"path"
:
str
(
file_path
.
relative_to
(
root_dir
))},
root_dir
=
root_dir
,
)
)
)
repo
.
add_package
(
get_package
(
"pendulum"
,
"1.4.4"
))
repo
.
add_package
(
get_package
(
"pendulum"
,
"1.4.4"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment