-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Python 3.8, 3.9 and 3.10. Drop support for Python 3.4.
- Loading branch information
Michael Howitz
committed
Dec 10, 2021
1 parent
f4a7b29
commit c3be170
Showing
12 changed files
with
80 additions
and
76 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
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 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover | ||
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover |
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,12 +1,12 @@ | ||
|
||
|
||
print("Sampe 1 imported!") | ||
|
||
x = 1 | ||
|
||
|
||
class C: | ||
y = 2 | ||
|
||
|
||
z = 3 | ||
q = 4 | ||
|
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,15 +1,15 @@ | ||
|
||
|
||
import zope.deferredimport | ||
|
||
zope.deferredimport.define( | ||
sample1 = 'zope.deferredimport.sample1', | ||
one = 'zope.deferredimport.sample1:x', | ||
two = 'zope.deferredimport.sample1:C.y', | ||
sample1='zope.deferredimport.sample1', | ||
one='zope.deferredimport.sample1:x', | ||
two='zope.deferredimport.sample1:C.y', | ||
) | ||
|
||
three = 3 | ||
x = 4 | ||
|
||
|
||
def getx(): | ||
return x | ||
|
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,15 +1,13 @@ | ||
|
||
|
||
import zope.deferredimport | ||
zope.deferredimport.initialize() | ||
|
||
import zope.deferredimport.sample6 | ||
import zope.deferredimport.sample6 # noqa: E402 import not at top | ||
|
||
zope.deferredimport.define( | ||
sample1 = 'zope.deferredimport.sample1', | ||
one = 'zope.deferredimport.sample1:x', | ||
two = 'zope.deferredimport.sample1:C.y', | ||
sample1='zope.deferredimport.sample1', | ||
one='zope.deferredimport.sample1:x', | ||
two='zope.deferredimport.sample1:C.y', | ||
) | ||
|
||
x = 1 | ||
|
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,7 +1,5 @@ | ||
|
||
|
||
import zope.deferredimport.sample5 | ||
|
||
def getone(): | ||
return zope.deferredimport.sample5.one | ||
|
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,12 +1,10 @@ | ||
|
||
|
||
import zope.deferredimport | ||
zope.deferredimport.initialize() | ||
|
||
zope.deferredimport.deprecated( | ||
"Import from sample1 instead", | ||
x = 'zope.deferredimport.sample1:x', | ||
y = 'zope.deferredimport.sample1:C.y', | ||
z = 'zope.deferredimport.sample1:z', | ||
x='zope.deferredimport.sample1:x', | ||
y='zope.deferredimport.sample1:C.y', | ||
z='zope.deferredimport.sample1:z', | ||
) | ||
|
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,15 +1,13 @@ | ||
|
||
|
||
import zope.deferredimport | ||
|
||
zope.deferredimport.deprecatedFrom( | ||
"Import from sample1 instead", | ||
'zope.deferredimport.sample1', | ||
'x', 'z', 'q', | ||
) | ||
) | ||
|
||
zope.deferredimport.defineFrom( | ||
'zope.deferredimport.sample9', | ||
'a', 'b', 'c', | ||
) | ||
|
||
) |
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,3 +1,3 @@ | ||
|
||
print('Imported sample 9') | ||
a, b, c = range(10,13) | ||
a, b, c = range(10, 13) |