feat: upgrade python site-package packaging
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
1 parent
db338e6af7
commit
a51671de56
5 files changed
+12
-12
No files matched your search
+4
-4
@@ -5,7 +5,7 @@ import subprocess
|
||||
from . import make, arch
|
||||
|
||||
|
||||
PY3_VERSION = "3.14"
|
||||
PY3_VERSION = "3.15"
|
||||
|
||||
|
||||
def build():
|
||||
@@ -27,7 +27,7 @@ def version(s: str):
|
||||
|
||||
def _depcommon(s: str):
|
||||
if s == "python":
|
||||
return f"python (~{PY3_VERSION}.0) @{arch.get_target()}"
|
||||
return f"python (>={PY3_VERSION}.0, <={PY3_VERSION}.9999) @{arch.get_target()}"
|
||||
elif ".py" in s:
|
||||
if ")" in s:
|
||||
return s.replace(")", f", +python{PY3_VERSION})")
|
||||
@@ -44,13 +44,13 @@ def builddep(s: str):
|
||||
elif _depcommon(s):
|
||||
make.builddep(_depcommon(s))
|
||||
else:
|
||||
raise RuntimeError("unrecognized python dep")
|
||||
raise RuntimeError("unrecognized python builddep " + s)
|
||||
|
||||
def dep(s: str):
|
||||
if _depcommon(s):
|
||||
make.dep(_depcommon(s))
|
||||
else:
|
||||
raise RuntimeError("unrecognized python dep")
|
||||
raise RuntimeError("unrecognized python dep " + s)
|
||||
|
||||
def _auto_pack(composer):
|
||||
base = f"lib/python{PY3_VERSION}/site-packages"
|
||||
|
||||
@@ -4,10 +4,10 @@ from lib.make import *
|
||||
from lib import python
|
||||
|
||||
|
||||
python.version("1.4.1")
|
||||
python.version("1.4.3")
|
||||
description("A super-fast templating language that borrows the best ideas from the existing templating languages.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("pypi://mako#1.4.1")
|
||||
source_managed("pypi://mako#1.4.3")
|
||||
|
||||
python.builddep("$shortcut")
|
||||
python.builddep("MarkupSafe.py")
|
||||
|
||||
@@ -2,10 +2,10 @@ from lib.make import *
|
||||
from lib import python
|
||||
|
||||
|
||||
python.version("3.0.3")
|
||||
python.version("3.0.4")
|
||||
description("Safely add untrusted strings to HTML/XML markup.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("pypi://markupsafe#3.0.3")
|
||||
source_managed("pypi://markupsafe#3.0.4")
|
||||
|
||||
python.builddep("$shortcut")
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@ from lib.make import *
|
||||
from lib import python
|
||||
|
||||
|
||||
python.version("1.5.0")
|
||||
python.version("1.6.1")
|
||||
description("A simple, correct Python build frontend")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("pypi://build#1.5.0")
|
||||
source_managed("pypi://build#1.6.1")
|
||||
|
||||
python.builddep("$shortcut")
|
||||
python.builddep("packaging.py (>=25.0)")
|
||||
|
||||
@@ -2,10 +2,10 @@ from lib.make import *
|
||||
from lib import python
|
||||
|
||||
|
||||
python.version("3.0")
|
||||
python.version("3.11")
|
||||
description("C parser in Python")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("pypi://pycparser#3.0")
|
||||
source_managed("pypi://pycparser#3.11")
|
||||
|
||||
python.builddep("$shortcut")
|
||||
|
||||
|
||||
Reference in new issue
Block a user