Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions server/pypi/packages/aiodns/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package:
name: aiodns
version: "3.5.0"
30 changes: 30 additions & 0 deletions server/pypi/packages/aiodns/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import unittest


class TestAiodns(unittest.TestCase):

def test_basic(self):
import aiodns
import asyncio

async def main():
resolver = aiodns.DNSResolver()
result = await resolver.query('www.python.org', 'A')
self.assertIsNotNone(result)
# Result is iterable, check that it contains at least one record
records = list(result) if hasattr(result, '__iter__') else [result]
self.assertGreater(len(records), 0)
# Check that records have the expected host attribute
if hasattr(records[0], 'host'):
self.assertIsNotNone(records[0].host)

asyncio.run(main())

# Check that the native module is being used.
def test_extension(self):
import aiodns
# Verify that aiodns is using the native c-ares library
resolver = aiodns.DNSResolver()
self.assertIsNotNone(resolver)
# Check that the resolver has the expected methods
self.assertTrue(hasattr(resolver, 'query'))
2 changes: 1 addition & 1 deletion server/pypi/packages/aiohttp/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package:
name: aiohttp
version: "3.10.10"
version: "3.13.2"
17 changes: 17 additions & 0 deletions server/pypi/packages/aiohttp/patches/chaquopy.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- src-original/setup.py 2024-01-01 00:00:00.000000000 +0000
+++ src/setup.py 2024-01-01 00:00:00.000000000 +0000
@@ -1,6 +1,12 @@
import os
import pathlib
import sys

+# Chaquopy: Cython-generated code needs -fPIC for shared libraries on Android.
+# Without this, we get linker errors like "relocation R_AARCH64_ADR_PREL_PG_HI21
+# cannot be used against symbol; recompile with -fPIC"
+if "CFLAGS" in os.environ and "-fPIC" not in os.environ["CFLAGS"]:
+ os.environ["CFLAGS"] += " -fPIC"
+
from setuptools import Extension, setup

if sys.version_info < (3, 9):

Loading