mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Update os constant to libc 0.2.180 & target cpython 3.14
This commit is contained in:
1 parent
d04a50e835
commit
07ba834381
2 files changed
+6
-2
No files matched your search
@@ -41,6 +41,10 @@ pub mod module {
|
||||
};
|
||||
use strum_macros::{EnumIter, EnumString};
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
#[pyattr]
|
||||
use libc::{SCHED_DEADLINE, SCHED_NORMAL};
|
||||
|
||||
#[cfg(target_os = "freebsd")]
|
||||
#[pyattr]
|
||||
use libc::{MFD_HUGE_MASK, SF_MNOWAIT, SF_NOCACHE, SF_NODISKIO, SF_SYNC};
|
||||
|
||||
@@ -13,7 +13,7 @@ OS_CONSTS_PAT = re.compile(
|
||||
) # TODO: Exclude matches if they have `(` after (those are functions)
|
||||
|
||||
|
||||
LIBC_VERSION = "0.2.177"
|
||||
LIBC_VERSION = "0.2.180"
|
||||
|
||||
EXCLUDE = frozenset(
|
||||
{
|
||||
@@ -96,7 +96,7 @@ def format_groups(groups: dict) -> "Iterator[tuple[str, str]]":
|
||||
|
||||
def main():
|
||||
wanted_consts = get_consts(
|
||||
"https://docs.python.org/3.13/library/os.html", # Should we read from https://github.com/python/cpython/blob/bcee1c322115c581da27600f2ae55e5439c027eb/Modules/posixmodule.c#L17023 instead?
|
||||
"https://docs.python.org/3.14/library/os.html", # Should we read from https://github.com/python/cpython/blob/bcee1c322115c581da27600f2ae55e5439c027eb/Modules/posixmodule.c#L17023 instead?
|
||||
pattern=OS_CONSTS_PAT,
|
||||
)
|
||||
available = {
|
||||
|
||||
Reference in new issue
Block a user