Skip to content

feat: include dank_mids/semaphores in c build #633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e238737
feat: include dank_mids/semaphores in c build
BobTheBuidler Apr 24, 2025
1c6531a
chore: `mypyc` for python3.8
github-actions[bot] Apr 24, 2025
74e96f0
chore: `mypyc` for python3.9
github-actions[bot] Apr 24, 2025
d851d6d
chore: `mypyc` for python3.10
github-actions[bot] Apr 24, 2025
8376e03
chore: `mypyc` for python3.11
github-actions[bot] Apr 24, 2025
81aa630
chore: `mypyc` for python3.12
github-actions[bot] Apr 24, 2025
3d59316
fix: TypeError: interpreted classes cannot inherit from compiled
BobTheBuidler Apr 24, 2025
8c1c22d
chore: `mypyc` for python3.8
github-actions[bot] Apr 24, 2025
54e2cbd
chore: `mypyc` for python3.9
github-actions[bot] Apr 24, 2025
d7cc2bb
chore: `mypyc` for python3.10
github-actions[bot] Apr 24, 2025
71cf882
chore: `mypyc` for python3.11
github-actions[bot] Apr 24, 2025
2b2319b
chore: `mypyc` for python3.12
github-actions[bot] Apr 24, 2025
81ac35e
chore: force test run
BobTheBuidler Apr 24, 2025
3e65ea3
chore: `black .`
github-actions[bot] Apr 24, 2025
1d26855
fix: invalid type argument
BobTheBuidler Apr 24, 2025
b05d699
chore: `mypyc` for python3.8
github-actions[bot] Apr 24, 2025
22b91d6
chore: `mypyc` for python3.9
github-actions[bot] Apr 24, 2025
ef43221
chore: `mypyc` for python3.10
github-actions[bot] Apr 24, 2025
268d055
chore: `mypyc` for python3.11
github-actions[bot] Apr 24, 2025
c87e99d
chore: `mypyc` for python3.12
github-actions[bot] Apr 24, 2025
f0cdb28
chore: for
BobTheBuidler Apr 24, 2025
a19784e
chore: `black .`
github-actions[bot] Apr 24, 2025
f611dc4
fix: force to int
BobTheBuidler Apr 24, 2025
1f58a3d
chore: `black .`
github-actions[bot] Apr 24, 2025
dbf26f5
chore: `mypyc` for python3.8
github-actions[bot] Apr 24, 2025
0a2a76a
chore: `mypyc` for python3.9
github-actions[bot] Apr 24, 2025
7c7321e
chore: `mypyc` for python3.10
github-actions[bot] Apr 24, 2025
7ad8855
chore: `mypyc` for python3.11
github-actions[bot] Apr 24, 2025
fde7111
chore: `mypyc` for python3.12
github-actions[bot] Apr 24, 2025
a17d055
chore: force test run
BobTheBuidler Apr 24, 2025
6a01970
chore: `black .`
github-actions[bot] Apr 24, 2025
be12ceb
fix: segfault
BobTheBuidler Apr 24, 2025
17d75b4
chore: `mypyc` for python3.8
github-actions[bot] Apr 24, 2025
061baf5
chore: `mypyc` for python3.9
github-actions[bot] Apr 24, 2025
3ee7ed6
chore: `mypyc` for python3.10
github-actions[bot] Apr 24, 2025
15aecaa
chore: `mypyc` for python3.11
github-actions[bot] Apr 24, 2025
32868aa
chore: `mypyc` for python3.12
github-actions[bot] Apr 24, 2025
4004116
chore: force test run
BobTheBuidler Apr 24, 2025
8869f2e
chore: `black .`
github-actions[bot] Apr 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ benchmark:
poetry run brownie run examples/benchmark

mypyc:
mypyc dank_mids/_demo_mode.py dank_mids/_eth_utils.py dank_mids/_uid.py dank_mids/brownie_patch/__init__.py dank_mids/brownie_patch/_abi.py dank_mids/brownie_patch/call.py dank_mids/brownie_patch/overloaded.py dank_mids/brownie_patch/types.py dank_mids/helpers/_codec.py dank_mids/helpers/lru_cache.py dank_mids/helpers/_weaklist.py dank_mids/constants.py dank_mids/ENVIRONMENT_VARIABLES.py --strict --pretty --disable-error-code unused-ignore
mypyc dank_mids/_demo_mode.py dank_mids/_eth_utils.py dank_mids/_uid.py dank_mids/brownie_patch/__init__.py dank_mids/brownie_patch/_abi.py dank_mids/brownie_patch/call.py dank_mids/brownie_patch/overloaded.py dank_mids/brownie_patch/types.py dank_mids/helpers/_codec.py dank_mids/helpers/lru_cache.py dank_mids/helpers/_weaklist.py dank_mids/constants.py dank_mids/ENVIRONMENT_VARIABLES.py dank_mids/semaphores.py --strict --pretty --disable-error-code unused-ignore

mypyc-3-8:
mypyc dank_mids/_demo_mode.py dank_mids/_eth_utils.py dank_mids/_uid.py dank_mids/brownie_patch/__init__.py dank_mids/brownie_patch/_abi.py dank_mids/brownie_patch/call.py dank_mids/brownie_patch/overloaded.py dank_mids/brownie_patch/types.py dank_mids/helpers/_codec.py dank_mids/helpers/_weaklist.py dank_mids/constants.py dank_mids/ENVIRONMENT_VARIABLES.py --strict --pretty --disable-error-code unused-ignore
mypyc dank_mids/_demo_mode.py dank_mids/_eth_utils.py dank_mids/_uid.py dank_mids/brownie_patch/__init__.py dank_mids/brownie_patch/_abi.py dank_mids/brownie_patch/call.py dank_mids/brownie_patch/overloaded.py dank_mids/brownie_patch/types.py dank_mids/helpers/_codec.py dank_mids/helpers/_weaklist.py dank_mids/constants.py dank_mids/ENVIRONMENT_VARIABLES.py dank_mids/semaphores.py --strict --pretty --disable-error-code unused-ignore

5,597 changes: 4,080 additions & 1,517 deletions build/__native_cdf108ee04cf984587ed.c → build/__native_302c1e1ec9faa87d20e6.c

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef MYPYC_NATIVE_cdf108ee04cf984587ed_H
#define MYPYC_NATIVE_cdf108ee04cf984587ed_H
#ifndef MYPYC_NATIVE_302c1e1ec9faa87d20e6_H
#define MYPYC_NATIVE_302c1e1ec9faa87d20e6_H
#include <Python.h>
#include <CPy.h>
#ifndef MYPYC_DECLARED_tuple_T3OOO
Expand Down Expand Up @@ -465,8 +465,29 @@ typedef struct {
PyObject *___mypyc_env__;
} dank_mids___helpers____weaklist_____iter___3_WeakList_genObject;

typedef struct {
PyObject_HEAD
CPyVTableItem *vtable;
PyObject *__priority_name;
} dank_mids___semaphores____BlockSemaphoreContextManagerObject;

typedef struct {
PyObject_HEAD
CPyVTableItem *vtable;
PyObject *__context_manager_class;
CPyTagged __top_priority;
} dank_mids___semaphores___BlockSemaphoreObject;

typedef struct {
PyObject_HEAD
CPyVTableItem *vtable;
PyObject *_controller;
PyObject *_method_queues;
PyObject *_keys;
} dank_mids___semaphores____MethodQueuesObject;


struct export_table_cdf108ee04cf984587ed {
struct export_table_302c1e1ec9faa87d20e6 {
PyObject **CPyStatic__demo_mode___demo_logger;
PyTypeObject **CPyType__demo_mode___DummyLogger;
PyObject *(*CPyDef__demo_mode___DummyLogger)(void);
Expand Down Expand Up @@ -726,5 +747,21 @@ struct export_table_cdf108ee04cf984587ed {
PyObject **CPyStatic_ENVIRONMENT_VARIABLES___STUCK_CALL_TIMEOUT;
PyObject **CPyStatic_ENVIRONMENT_VARIABLES___method_semaphores;
char (*CPyDef_ENVIRONMENT_VARIABLES_____top_level__)(void);
PyObject **CPyStatic_semaphores___dank_mids___semaphores___BlockSemaphore_____init_____value;
PyTypeObject **CPyType_semaphores____BlockSemaphoreContextManager;
PyObject *(*CPyDef_semaphores____BlockSemaphoreContextManager)(PyObject *cpy_r_parent, PyObject *cpy_r_priority, PyObject *cpy_r_name);
PyTypeObject **CPyType_semaphores___BlockSemaphore;
PyObject *(*CPyDef_semaphores___BlockSemaphore)(PyObject *cpy_r_value, PyObject *cpy_r_name);
PyTypeObject **CPyType_semaphores____MethodQueues;
PyObject *(*CPyDef_semaphores____MethodQueues)(PyObject *cpy_r_controller);
char (*CPyDef_semaphores____BlockSemaphoreContextManager_____init__)(PyObject *cpy_r_self, PyObject *cpy_r_parent, PyObject *cpy_r_priority, PyObject *cpy_r_name);
char (*CPyDef_semaphores____BlockSemaphoreContextManager_____mypyc_defaults_setup)(PyObject *cpy_r___mypyc_self__);
char (*CPyDef_semaphores___BlockSemaphore_____init__)(PyObject *cpy_r_self, PyObject *cpy_r_value, PyObject *cpy_r_name);
char (*CPyDef_semaphores___BlockSemaphore_____init___3__BlockSemaphore_glue)(PyObject *cpy_r_self, PyObject *cpy_r_value, PyObject *cpy_r_name);
PyObject *(*CPyDef_semaphores___BlockSemaphore_____getitem__)(PyObject *cpy_r_self, PyObject *cpy_r_block);
PyObject *(*CPyDef_semaphores___BlockSemaphore_____getitem___3__BlockSemaphore_glue)(PyObject *cpy_r_self, PyObject *cpy_r_block);
char (*CPyDef_semaphores____MethodQueues_____init__)(PyObject *cpy_r_self, PyObject *cpy_r_controller);
PyObject *(*CPyDef_semaphores____MethodQueues_____getitem__)(PyObject *cpy_r_self, PyObject *cpy_r_method);
char (*CPyDef_semaphores_____top_level__)(void);
};
#endif
Loading