-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test sending a Module directly to a new env.
- Loading branch information
Showing
10 changed files
with
87 additions
and
0 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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
from .function_to_import import editable_package_function | ||
from .module_to_import import TestModuleFromPackage |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/test_fake_package/test_fake_package/module_to_import.py
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,5 @@ | ||
class TestModuleFromPackage: | ||
@staticmethod | ||
def hello_world(): | ||
print("Hello from the editable package module!") | ||
return "Hello from the editable package module!" |
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,12 @@ | ||
from setuptools import find_packages, setup | ||
|
||
setup( | ||
name="test_fake_package_copy", | ||
version="0.1", | ||
packages=find_packages(), | ||
install_requires=[], | ||
author="Rohin Bhasin", | ||
author_email="bhasin.rohin@gmail.com", | ||
description="A simple example package", | ||
python_requires=">=3.6", | ||
) |
2 changes: 2 additions & 0 deletions
2
tests/fixtures/test_fake_package_copy/test_fake_package_copy/__init__.py
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 @@ | ||
from .function_to_import import editable_package_function | ||
from .module_to_import import TestModuleFromPackage |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/test_fake_package_copy/test_fake_package_copy/function_to_import.py
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,3 @@ | ||
def editable_package_function(): | ||
print("Hello from the editable package!") | ||
return "Hello from the editable package!" |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/test_fake_package_copy/test_fake_package_copy/module_to_import.py
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,5 @@ | ||
class TestModuleFromPackage: | ||
@staticmethod | ||
def hello_world(): | ||
print("Hello from the editable package module!") | ||
return "Hello from the editable package module!" |
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