-
Notifications
You must be signed in to change notification settings - Fork 15
/
usetup.py
executable file
·79 lines (75 loc) · 3.1 KB
/
usetup.py
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
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2015-2024, Vincenzo Arcidiacono;
# Licensed under the EUPL (the 'Licence');
# You may not use this work except in compliance with the Licence.
# You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl
import os
from setup import (
name, proj_ver, get_long_description, url, download_url, project_urls
)
if __name__ == '__main__':
from setuptools import setup, find_packages
from micropython.sdist_upip import sdist
long_description = ''
if os.environ.get('ENABLE_SETUP_LONG_DESCRIPTION') == 'TRUE':
try:
long_description = get_long_description()
print('LONG DESCRIPTION ENABLED!')
except Exception as ex:
print('LONG DESCRIPTION ERROR:\n %r', ex)
# noinspection PyTypeChecker
setup(
name='micropython-%s' % name,
version=proj_ver,
packages=find_packages(exclude=[
'doc', 'doc.*',
'tests', 'tests.*',
'examples', 'examples.*',
'micropython', 'micropython.*',
'schedula.ext', 'schedula.ext.*',
'schedula.utils.io', 'schedula.utils.io.*',
'schedula.utils.drw', 'schedula.utils.drw.*',
'schedula.utils.web', 'schedula.utils.web.*',
'schedula.utils.form', 'schedula.utils.form.*',
'schedula.utils.des', 'schedula.utils.des.*',
'requirements', 'binder', 'bin'
]),
url=url,
project_urls=project_urls,
download_url=download_url,
license='EUPL 1.1+',
author='Vincenzo Arcidiacono',
author_email='[email protected]',
description='Produce a plan that dispatches calls based on a graph of '
'functions, satisfying data dependencies.',
long_description=long_description,
keywords=[
"flow-based programming", "dataflow", "parallel", "asynchronous",
"async", "scheduling", "dispatch", "functional programming",
"dataflow programming",
],
classifiers=[
"Programming Language :: MicroPython",
"Development Status :: 5 - Production/Stable",
'Natural Language :: English',
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: European Union Public Licence 1.1 "
"(EUPL 1.1)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Unix",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
],
cmdclass={'sdist': sdist},
install_requires=[
'micropython-itertools', 'micropython-logging', 'micropython-types',
'micropython-functools', 'micropython-inspect', 'micropython-copy',
'micropython-collections.deque', 'micropython-collections',
],
tests_require=['micropython-unittest', 'micropython-timeit'],
)