kivy-ios/setup.py
Andre Miras 56431b6922 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/`
2020-05-03 23:29:41 +02:00

35 lines
1.1 KiB
Python

import os
from glob import glob
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
def recursive_include(module):
module_path = module.replace(".", "/") + "/"
files = glob(f"{module_path}**", recursive=True)
return [file.replace(module_path, "") for file in files]
setup(
name="kivy-ios",
version="1.0.0.dev1",
description="Kivy for iOS",
long_description=read("README.md"),
long_description_content_type="text/markdown",
author="The Kivy team",
author_email="kivy-dev@googlegroups.com",
url="https://github.com/kivy/kivy-ios",
python_requires=">=3.6.0",
install_requires=["cookiecutter", "pbxproj", "Pillow", "requests", "sh"],
packages=find_packages(),
package_data={
# note this method is a bit excessive as it includes absolutely everything
# make sure you run with from a clean directory
"kivy_ios": recursive_include("kivy_ios"),
},
entry_points={"console_scripts": ["toolchain = kivy_ios.toolchain:main"]},
)