Skip to content

Commit

Permalink
stupid windows crlf...
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbouteiller committed Feb 22, 2023
1 parent dc11d2a commit 52648e5
Showing 1 changed file with 71 additions and 71 deletions.
142 changes: 71 additions & 71 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
import sys
import os
import io
from setuptools import setup, find_packages

if sys.version_info < (3, 7):
sys.exit('Sorry, Python < 3.7 is not supported.')


def is_raspberrypi():
try:
with io.open('/sys/firmware/devicetree/base/model', 'r') as m:
if 'raspberry pi' in m.read().lower():
return True
except Exception:
pass
return False


def is_coral():
try:
with io.open('/sys/firmware/devicetree/base/model', 'r') as m:
if 'coral' in m.read().lower():
return True
except Exception:
pass
return False


with open("README.md", "r") as fh:
long_description = fh.read()

deps = ['numpy', 'Pillow', 'psutil']
if is_raspberrypi(): # drone
deps.append(['picamera', 'yamspy==0.3.3', 'opencv-python'])
elif is_coral(): # drone
deps.append(['yamspy==0.3.3', 'opencv-python'])
else: # remote
deps.append(['opencv-contrib-python', 'pysimplegui'])

setup(name='cognifly',
packages=[package for package in find_packages()],
version='0.3.2',
license='MIT',
description='Control the CogniFly open-source drone from python',
long_description=long_description,
long_description_content_type="text/markdown",
author='Yann Bouteiller',
url='https://github.com/thecognifly/cognifly-python',
download_url='https://github.com/thecognifly/cognifly-python/archive/refs/tags/v0.3.2.tar.gz',
keywords=['cognifly', 'drone', 'remote', 'control'],
install_requires=deps,
scripts=["scripts/cognifly-controller", ],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Framework :: Robot Framework :: Library',
'Topic :: Education',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
package_data={'cognifly': [
'cognifly_remote/sprites/gamepad_off.png',
'cognifly_remote/sprites/gamepad_on.png']}
)
import sys
import os
import io
from setuptools import setup, find_packages

if sys.version_info < (3, 7):
sys.exit('Sorry, Python < 3.7 is not supported.')


def is_raspberrypi():
try:
with io.open('/sys/firmware/devicetree/base/model', 'r') as m:
if 'raspberry pi' in m.read().lower():
return True
except Exception:
pass
return False


def is_coral():
try:
with io.open('/sys/firmware/devicetree/base/model', 'r') as m:
if 'coral' in m.read().lower():
return True
except Exception:
pass
return False


with open("README.md", "r") as fh:
long_description = fh.read()

deps = ['numpy', 'Pillow', 'psutil']
if is_raspberrypi(): # drone
deps.append(['picamera', 'yamspy==0.3.3', 'opencv-python'])
elif is_coral(): # drone
deps.append(['yamspy==0.3.3', 'opencv-python'])
else: # remote
deps.append(['opencv-contrib-python', 'pysimplegui'])

setup(name='cognifly',
packages=[package for package in find_packages()],
version='0.3.3',
license='MIT',
description='Control the CogniFly open-source drone from python',
long_description=long_description,
long_description_content_type="text/markdown",
author='Yann Bouteiller',
url='https://github.com/thecognifly/cognifly-python',
download_url='https://github.com/thecognifly/cognifly-python/archive/refs/tags/v0.3.3.tar.gz',
keywords=['cognifly', 'drone', 'remote', 'control'],
install_requires=deps,
scripts=["scripts/cognifly-controller", ],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Framework :: Robot Framework :: Library',
'Topic :: Education',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
package_data={'cognifly': [
'cognifly_remote/sprites/gamepad_off.png',
'cognifly_remote/sprites/gamepad_on.png']}
)

0 comments on commit 52648e5

Please sign in to comment.