Moving to dedicated kivy_ios/ package directory

- updates all imports to prefix kivy_ios
- adds basic `setup.py` file
- adds a simple `toolchain.py` to the root folder for compat

Makes it possible to install kivy-ios from PyPI:
```
pip install kivy-ios
toolchain --help
```
Note the `rebuild_updated_recipes.py` is expected to fail as we
moved all the recipes.

This is a working, but unperfect iteration that come with limitations
we would address in subsequent pull requests, such as:
- the new usage is not yet documented
- CI is not testing the source distribution creation and install
- Continuous Delivery to PyPI is not in place
- `toolchain` binary is a bit too generic name
- we're still vendoring things under `tools/`
This commit is contained in:
Andre Miras 2020-05-03 16:23:08 +02:00
parent b831483cda
commit 56431b6922
147 changed files with 1660 additions and 1616 deletions

View file

@ -25,7 +25,7 @@ def modified_recipes(branch="origin/master"):
git_diff = sh.contrib.git.diff("--name-only", branch)
recipes = set()
for file_path in git_diff:
if fnmatch(file_path, "recipes/*/__init__.py\n"):
if fnmatch(file_path, "kivy_ios/recipes/*/__init__.py\n"):
recipe = file_path.split("/")[1]
recipes.add(recipe)
return recipes

View file

@ -1,4 +1,4 @@
from toolchain import CythonRecipe
from kivy_ios.toolchain import CythonRecipe
class AudiostreamRecipe(CythonRecipe):

View file

@ -1,5 +1,5 @@
# pure-python package, this can be removed when we'll support any python package
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh
import os

View file

@ -1,4 +1,4 @@
from toolchain import CythonRecipe
from kivy_ios.toolchain import CythonRecipe
class CurlyRecipe(CythonRecipe):

View file

@ -3,7 +3,7 @@ Author: Lawrence Du, Lukasz Mach
E-mail: larrydu88@gmail.com, maho@pagema.net
"""
from toolchain import CythonRecipe
from kivy_ios.toolchain import CythonRecipe
class CymunkRecipe(CythonRecipe):

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh
import os

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh

View file

@ -1,4 +1,4 @@
from toolchain import CythonRecipe
from kivy_ios.toolchain import CythonRecipe
from os.path import join

View file

@ -1,5 +1,5 @@
# pure-python package, this can be removed when we'll support any python package
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh
import os

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh
import os

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint, cd, cache_execution
from kivy_ios.toolchain import Recipe, shprint, cd, cache_execution
import sh

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
import sh
from os.path import exists
import logging

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh
import logging

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
import sys
from toolchain import Recipe
from kivy_ios.toolchain import Recipe
import logging
logger = logging.getLogger(__name__)

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint, ensure_dir
from kivy_ios.toolchain import Recipe, shprint, ensure_dir
from os.path import join, exists
import os
import sh

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, cd, shprint
from kivy_ios.toolchain import Recipe, cd, shprint
from os.path import join
import os
import sh

View file

@ -1,4 +1,4 @@
from toolchain import CythonRecipe
from kivy_ios.toolchain import CythonRecipe
class IosRecipe(CythonRecipe):

View file

@ -1,5 +1,5 @@
# pure-python package, this can be removed when we'll support any python package
from toolchain import PythonRecipe, shprint, cd
from kivy_ios.toolchain import PythonRecipe, shprint, cd
from os.path import join
import sh

View file

@ -1,5 +1,5 @@
# pure-python package, this can be removed when we'll support any python package
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh
import os

View file

@ -3,7 +3,7 @@ Author: Lawrence Du
E-mail: larrydu88@gmail.com
"""
from toolchain import CythonRecipe, shprint
from kivy_ios.toolchain import CythonRecipe, shprint
import sh
from os.path import join
from os import chdir

View file

@ -1,4 +1,4 @@
from toolchain import CythonRecipe
from kivy_ios.toolchain import CythonRecipe
from os.path import join
import logging
import shutil

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
import sh
from os.path import exists

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh

View file

@ -1,5 +1,5 @@
# pure-python package, this can be removed when we'll support any python package
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh
import os

View file

@ -1,4 +1,4 @@
from toolchain import CythonRecipe
from kivy_ios.toolchain import CythonRecipe
from os.path import join
import sh
import shutil

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh

View file

@ -1,4 +1,4 @@
from toolchain import CythonRecipe
from kivy_ios.toolchain import CythonRecipe
class PhotoRecipe(CythonRecipe):

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh
import os

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh
import os

View file

@ -1,4 +1,4 @@
from toolchain import Recipe
from kivy_ios.toolchain import Recipe
from os.path import join
import sh

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe
from kivy_ios.toolchain import PythonRecipe
class PlyerRecipe(PythonRecipe):

View file

@ -1,6 +1,6 @@
'''Recipe for pycrypto on ios
'''
from toolchain import CythonRecipe, shprint, cd
from kivy_ios.toolchain import CythonRecipe, shprint, cd
from os.path import join
import sh

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe
from kivy_ios.toolchain import PythonRecipe
class PykkaRecipe(PythonRecipe):

View file

@ -1,4 +1,4 @@
from toolchain import CythonRecipe
from kivy_ios.toolchain import CythonRecipe
class PyobjusRecipe(CythonRecipe):

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from toolchain import Recipe
from kivy_ios.toolchain import Recipe
import logging
from os.path import join

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh
import os

View file

@ -1,4 +1,4 @@
from toolchain import Recipe, shprint
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh
import shutil

Some files were not shown because too many files have changed in this diff Show more