Commit fe27b817 authored by Kaloyan Tenchov's avatar Kaloyan Tenchov
Browse files

Add setup.py

parent afdd241a
.idea/
venv/
__pycache__/
*.pyc
build/
dist/
*.egg-info/
venv/
.idea/
......@@ -41,15 +41,24 @@ Limitations
Requirements
------------
- Python 3.x
- Python 3.5
Installation
------------
Using pip:
```
pip install pycozmo
```
From source:
```
git clone https://github.com/zayfod/pycozmo.git
cd pycozmo
python setup.py install
```
......
......@@ -10,6 +10,8 @@ from . import protocol_encoder
from . import protocol_utils
__version__ = "0.1.0"
__all__ = [
"Frame",
"ROBOT_ADDR",
......
"""
PyCozmo setup script.
"""
import os
import re
import setuptools
def get_package_variable(key):
fspec = os.path.join("pycozmo", "__init__.py")
with open(fspec) as f:
for line in f:
m = re.match(r"(\S+)\s*=\s*[\"']?(.+?)[\"']?\s*$", line)
if m and key == m.group(1):
return m.group(2)
return None
def get_readme():
with open("README.md") as f:
readme = f.read()
return readme
setuptools.setup(
name="pycozmo",
packages=setuptools.find_packages(),
version=get_package_variable("__version__"),
license="MIT",
description="A pure-Python Anki Cozmo communication library.",
long_description=get_readme(),
long_description_content_type="text/markdown",
author="Kaloyan Tenchov",
author_email="zayfod@gmail.com",
url="https://github.com/zayfod/pycozmo/",
python_requires=">=3.5",
install_requires=["dpkt"],
keywords=["anki", "cozmo", "robot", "robotics"],
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
"Intended Audience :: Education",
],
scripts=[
"tools/pycozmo_dump.py",
],
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment