-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
69 lines (64 loc) · 1.98 KB
/
setup.py
File metadata and controls
69 lines (64 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- coding: utf-8 -*-
# _ _ _ _____ _
# | | | | (_)/ ____| | |
# | | | |_ __ _| (___ __ _| |_
# | | | | '_ \| |\___ \ / _` | __|
# | |__| | | | | |____) | (_| | |_
# \____/|_| |_|_|_____/ \__,_|\__|
#
# Author: Yaakov Azat
# 2020 June, Done with ❤ | a@azat.ai
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='Yaakov Azat',
author_email='a@azat.ai',
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'
],
)