# -*- coding: utf-8 -*-
#  _    _       _  _____       _
# | |  | |     (_)/ ____|     | |
# | |  | |_ __  _| (___   __ _| |_
# | |  | | '_ \| |\___ \ / _` | __|
# | |__| | | | | |____) | (_| | |_
#  \____/|_| |_|_|_____/ \__,_|\__|
#
# Author: <NAME>
# 2020 June, Done with ❤ | <EMAIL>
import os
import sys
from setuptools import setup, find_packages, Extension

with open('README.rst') as f:
    readme = f.read()

with open('LICENSE') as f:
    a_license = f.read()
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
    long_description = f.read()

# 'setup.py publish' shortcut.
if sys.argv[-1] == 'publish':
    os.system('rm -rf dist')
    os.system('rm -rf *.egg-info')
    os.system('python3 setup.py sdist')
    os.system('python3 setup.py bdist_wheel')
    os.system('twine check dist/*')
    os.system('twine upload dist/*')
    os.system('rm -rf dist')
    os.system('rm -rf *.egg-info')
    sys.exit()

if sys.argv[-1] == 'clean':
    os.system('rm -rf build')
    os.system('find . -name "*.pyc" -exec rm -f {} \;')

setup(
    name='usk',
    version='0.1.13',
    description="UniSat Software Kit",
    long_description='UniSat Nano-Satellites Educational Program',
    # long_description_content_type='text/markdown',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/unisatkz/USK',
    license=a_license,
    python_requires='>=3.6',
    install_requires=[
        'setuptools',
        'pigpio',
        'bme680',
        'smbus',
        'adafruit-circuitpython-bno055',
        'SI1145',
        'gpiozero'
    ],
    packages=find_packages(exclude=('tests', 'docs')),
    classifiers=[
        # Trove classifiers
        # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: Implementation :: CPython'
    ],
)

# -*- coding: utf-8 -*-
#  _    _       _  _____       _
# | |  | |     (_)/ ____|     | |
# | |  | |_ __  _| (___   __ _| |_
# | |  | | '_ \| |\___ \ / _` | __|
# | |__| | | | | |____) | (_| | |_
#  \____/|_| |_|_|_____/ \__,_|\__|
#
# Author: <NAME>
# 2020 June, Done with ❤ | <EMAIL>
import os
import sys
from setuptools import setup, find_packages, Extension

with open('README.rst') as f:
    readme = f.read()

with open('LICENSE') as f:
    a_license = f.read()
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
    long_description = f.read()

# 'setup.py publish' shortcut.
if sys.argv[-1] == 'publish':
    os.system('rm -rf dist')
    os.system('rm -rf *.egg-info')
    os.system('python3 setup.py sdist')
    os.system('python3 setup.py bdist_wheel')
    os.system('twine check dist/*')
    os.system('twine upload dist/*')
    os.system('rm -rf dist')
    os.system('rm -rf *.egg-info')
    sys.exit()

if sys.argv[-1] == 'clean':
    os.system('rm -rf build')
    os.system('find . -name "*.pyc" -exec rm -f {} \;')

setup(
    name='usk',
    version='0.1.13',
    description="UniSat Software Kit",
    long_description='UniSat Nano-Satellites Educational Program',
    # long_description_content_type='text/markdown',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/unisatkz/USK',
    license=a_license,
    python_requires='>=3.6',
    install_requires=[
        'setuptools',
        'pigpio',
        'bme680',
        'smbus',
        'adafruit-circuitpython-bno055',
        'SI1145',
        'gpiozero'
    ],
    packages=find_packages(exclude=('tests', 'docs')),
    classifiers=[
        # Trove classifiers
        # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: Implementation :: CPython'
    ],
)

# -*- coding: utf-8 -*- #  _    _       _  _____       _ # | |  | |     (_)/ ____|     | | # | |  | |_ __  _| (___   __ _| |_ # | |  | | '_ \| |\___ \ / _` | __| # | |__| | | | | |____) | (_| | |_ #  \____/|_| |_|_|_____/ \__,_|\__| # # Author: <NAME> # 2020 June, Done with ❤ | <EMAIL> # 'setup.py publish' shortcut. # long_description_content_type='text/markdown', # Trove classifiers # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers