forked from square/pyfu-usb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (57 loc) · 1.74 KB
/
Copy pathsetup.py
File metadata and controls
63 lines (57 loc) · 1.74 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
# Copyright 2022 Block, Inc.
"""Package configuration."""
import os
import setuptools
def long_description():
"""Generate long_description from project README."""
cwd = os.path.abspath(os.path.dirname(__file__))
readme_path = os.path.join(cwd, "README.md")
assert os.path.exists(readme_path), "README.md not found"
return open(readme_path, "r").read()
setuptools.setup(
name="pyfu-usb",
author="Block, Inc.",
license="MIT",
version="1.0.2",
description="Python USB firmware update library.",
long_description=long_description(),
long_description_content_type="text/markdown",
url="https://github.com/square/pyfu-usb",
packages=setuptools.find_packages(),
python_requires=">=3.7",
package_data={
"pyfu_usb": ["py.typed"],
},
install_requires=[
"pyusb>=1.0.2",
"rich>=12.2",
],
extras_require={
"dev": [
"black~=22.3.0",
"mypy==0.942",
"types-setuptools~=57.4.14",
"pylint~=2.7.0",
"pre-commit~=2.18.1",
"wheel~=0.37.1",
"twine~=4.0.0",
"pytest~=7.1.2",
"coverage~=6.4",
]
},
entry_points={
"console_scripts": ["pyfu-usb=pyfu_usb.__main__:main"],
},
keywords=["dfu-util", "pydfu"],
classifiers=(
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
),
)