-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (40 loc) · 1.02 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
import ab
from setuptools import setup
with open('README.md', 'r', encoding='utf-8') as file:
long_description = file.read()
setup(
name = 'ampy-batch-tool',
packages = ['ab'],
version = ab.__version__,
author = ab.__author__,
author_email = ab.__email__,
description = 'An adafruit-ampy batch tool',
long_description = long_description,
long_description_content_type = 'text/markdown',
url = 'https://gitee.com/walkline/a-batch-tool',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',\
'Environment :: Console',
],
provides = ['ab'],
entry_points = {
'console_scripts': [
'ab = ab.__main__:main'
],
},
install_requires = [
'pyserial',
'pywin32',
'esptool>=3.1'
# 'adafruit-ampy',
# 'pyminifier'
]
)
# for local develop
# pip install -e .
# pip install -U twine wheel setuptools
# python setup.py sdist bdist_wheel
# twine check dist/*
# twine upload --repository-url https://upload.pypi.org/legacy/ dist/*