Skip to content

Commit d93e91b

Browse files
committed
🐛 Update and fix atom recipe, closes #2802
1 parent ceed049 commit d93e91b

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed
+7-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe
1+
from pythonforandroid.recipe import PyProjectRecipe
22

33

4-
class AtomRecipe(CppCompiledComponentsPythonRecipe):
5-
site_packages_name = 'atom'
6-
version = '0.3.10'
7-
url = 'https://github.com/nucleic/atom/archive/master.zip'
8-
depends = ['setuptools']
4+
class AtomRecipe(PyProjectRecipe):
5+
site_packages_name = "atom"
6+
version = "0.11.0"
7+
url = "https://files.pythonhosted.org/packages/source/a/atom/atom-{version}.tar.gz"
8+
depends = ["setuptools"]
9+
patches = ["pyproject.toml.patch"]
910

1011

1112
recipe = AtomRecipe()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
index d41287f..c83b053 100644
3+
--- a/pyproject.toml
4+
+++ b/pyproject.toml
5+
@@ -40,6 +40,7 @@
6+
[tool.setuptools]
7+
include-package-data = false
8+
package-data = { atom = ["py.typed", "*.pyi"] }
9+
+ packages = ["atom"]
10+
11+
[tool.setuptools_scm]
12+
write_to = "atom/version.py"

0 commit comments

Comments
 (0)