From d6eeea1d9f9c912ea69dd25541e846cd255bdec3 Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Sat, 22 Mar 2025 21:26:48 +0100 Subject: [PATCH] :bug: Update and fix atom recipe, closes #2802 Fixes build time errors, but runtime not tested. --- pythonforandroid/recipes/atom/__init__.py | 13 +++++++------ pythonforandroid/recipes/atom/pyproject.toml.patch | 12 ++++++++++++ 2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 pythonforandroid/recipes/atom/pyproject.toml.patch diff --git a/pythonforandroid/recipes/atom/__init__.py b/pythonforandroid/recipes/atom/__init__.py index 51923d5487..22fec4cd57 100644 --- a/pythonforandroid/recipes/atom/__init__.py +++ b/pythonforandroid/recipes/atom/__init__.py @@ -1,11 +1,12 @@ -from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe +from pythonforandroid.recipe import PyProjectRecipe -class AtomRecipe(CppCompiledComponentsPythonRecipe): - site_packages_name = 'atom' - version = '0.3.10' - url = 'https://github.com/nucleic/atom/archive/master.zip' - depends = ['setuptools'] +class AtomRecipe(PyProjectRecipe): + site_packages_name = "atom" + version = "0.11.0" + url = "https://files.pythonhosted.org/packages/source/a/atom/atom-{version}.tar.gz" + depends = ["setuptools"] + patches = ["pyproject.toml.patch"] recipe = AtomRecipe() diff --git a/pythonforandroid/recipes/atom/pyproject.toml.patch b/pythonforandroid/recipes/atom/pyproject.toml.patch new file mode 100644 index 0000000000..ebf8cbc454 --- /dev/null +++ b/pythonforandroid/recipes/atom/pyproject.toml.patch @@ -0,0 +1,12 @@ +diff --git a/pyproject.toml b/pyproject.toml +index d41287f..c83b053 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -40,6 +40,7 @@ + [tool.setuptools] + include-package-data = false + package-data = { atom = ["py.typed", "*.pyi"] } ++ packages = ["atom"] + + [tool.setuptools_scm] + write_to = "atom/version.py"