-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
48 lines (40 loc) · 1.57 KB
/
setup.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
#
# This file is part of the micropython-esp32-ulp project,
# https://github.com/micropython/micropython-esp32-ulp
#
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
# SPDX-License-Identifier: MIT
import re
from setuptools import setup
import sdist_upip
def long_desc_from_readme():
with open('README.rst', 'r') as fd:
long_description = fd.read()
# remove badges
long_description = re.compile(r'^\.\. start-badges.*^\.\. end-badges', re.M | re.S).sub('', long_description)
# strip links. keep link name and use literal text formatting
long_description = re.sub(r'`([^<`]+) </[^>]+>`_', '``\\1``', long_description)
return long_description
setup(
name="micropython-esp32-ulp",
use_scm_version={
'local_scheme': 'no-local-version',
},
description="Assembler toolchain for the ESP32 ULP co-processor, written in MicroPython",
long_description=long_desc_from_readme(),
long_description_content_type='text/x-rst',
url="https://github.com/micropython/micropython-esp32-ulp",
license="MIT",
author="micropython-esp32-ulp authors",
author_email="[email protected]",
maintainer="micropython-esp32-ulp authors",
maintainer_email="[email protected]",
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: Implementation :: MicroPython',
],
setup_requires=['setuptools_scm'],
platforms=["esp32", "linux", "darwin"],
cmdclass={"sdist": sdist_upip.sdist},
packages=["esp32_ulp"],
)