Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Convert to USE_PYTHON=unittest Changes: https://github.com/scoder/lupa/blob/master/CHANGES.rst
- Loading branch information
Showing
4 changed files
with
49 additions
and
9 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1681052954 | ||
SHA256 (lupa-1.14.1.tar.gz) = d0fd4e60ad149fe25c90530e2a0e032a42a6f0455f29ca0edb8170d6ec751c6e | ||
SIZE (lupa-1.14.1.tar.gz) = 1061109 | ||
TIMESTAMP = 1684104502 | ||
SHA256 (lupa-2.0.tar.gz) = ad3fef486be7adddd349fe9a9c393789061312cf98ebc533b489be34f484cb79 | ||
SIZE (lupa-2.0.tar.gz) = 6278066 |
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,14 @@ | ||
Obtained from: https://github.com/scoder/lupa/commit/9fecb31fd368043699b8a88310f2718858b18a5f | ||
|
||
--- lupa/tests/test.py.orig 2023-04-04 07:12:27 UTC | ||
+++ lupa/tests/test.py | ||
@@ -52,6 +52,9 @@ class TestLuaRuntimeRefcounting(LupaTestCase): | ||
if off_by_one and old_count == new_count + 1: | ||
# FIXME: This happens in test_attrgetter_refcycle - need to investigate why! | ||
self.assertEqual(old_count, new_count + 1) | ||
+ elif off_by_one and old_count == new_count + 2 and sys.version_info >= (3,11): | ||
+ # FIXME: This happens in test_attrgetter_refcycle - need to investigate why! | ||
+ self.assertEqual(old_count, new_count + 2) | ||
else: | ||
self.assertEqual(old_count, new_count) | ||
|
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,28 @@ | ||
Obtained from: https://github.com/scoder/lupa/commit/19279acda1ad7e7a536adafe399b183701287bc1 | ||
|
||
--- setup.py.orig 2023-04-04 07:12:27 UTC | ||
+++ setup.py | ||
@@ -365,10 +365,11 @@ if not configs and not option_no_bundle: | ||
or (get_machine() != "x86_64" and 'luajit' in os.path.basename(lua_bundle_path.rstrip(os.sep))) | ||
) | ||
] | ||
-if not configs and not option_use_bundle: | ||
- configs = find_lua_build(no_luajit=option_no_luajit) | ||
if not configs: | ||
- configs = no_lua_error() | ||
+ configs = [ | ||
+ (find_lua_build(no_luajit=option_no_luajit) if not option_use_bundle else {}) | ||
+ or no_lua_error() | ||
+ ] | ||
|
||
|
||
# check if Cython is installed, and use it if requested or necessary | ||
@@ -484,7 +485,7 @@ setup( | ||
], | ||
|
||
packages=['lupa'], | ||
- build_requires=['Cython>=0.29.28'], | ||
+ setup_requires=['Cython>=0.29.28'], | ||
ext_modules=ext_modules, | ||
libraries=ext_libraries, | ||
**extra_setup_args |