-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
108 lines (100 loc) · 2.88 KB
/
pyproject.toml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[build-system]
requires = ["setuptools", "poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# Poetry settings
[tool.poetry]
name = "ubittool"
version = "0.8.0"
description = "Tool to interface with the BBC micro:bit."
authors = ["Carlos Pereira Atencio <carlosperate@embeddedlog.com>"]
license = "MIT"
homepage = "https://carlosperate.github.io/ubittool/"
repository = "https://github.com/carlosperate/ubittool/"
documentation = "https://carlosperate.github.io/ubittool/"
readme = "README.md"
keywords = ["microbit", "micro:bit", "bbcmicrobit", "ubittool"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: MacOS X",
"Environment :: Win32 (MS Windows)",
"Environment :: X11 Applications",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Education",
"Topic :: Software Development :: Embedded Systems",
]
[tool.poetry.dependencies]
# Currently libusb-package is incompatible to newer Python versions
# https://github.com/pyocd/libusb-package/issues/16
python = "^3.7,<3.12"
IntelHex = "^2.2.1"
uflash = ">=1.1.0,<1.2.1"
# This version of PyOCD fails in Python 3.10+
pyocd = "0.36.0"
click = "^7.0"
[tool.poetry.dev-dependencies]
# Packaging, PyInstaller needs macholib for macOS, pywin32 for Windows
pyinstaller = "^5.13.2"
macholib = { version = "^1.8", platform = "darwin" }
pywin32 = { version = "^303", platform = "windows" }
pywin32-ctypes = { version = "^0.2.0", platform = "windows" }
# PyOCD needs this as a setup_requires, for some reason 'pipenv install' in
# Travis doesn't pick it up and PyOCD fails to install or run
setuptools_scm = "*"
# Linting
flake8 = "*"
flake8-bugbear = { version = "*", python = "^3.5" }
flake8-builtins = "*"
flake8-docstrings = "*"
black = { version = "19.10b0", python = "^3.6" }
# Tests
pytest = "^7.4.3"
pytest-cov = "^4.1.0"
[tool.poetry.scripts]
ubit = 'ubittool.__main__:main'
# Black settings
[tool.black]
line-length = 79
target-version = ['py35']
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
# Above this line are defaults and below are project specific
| ignoreme
)/
'''
# Coverage settings
[tool.coverage.run]
branch = false
[tool.coverage.report]
show_missing = true
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
]
[tool.coverage.html]
directory = "htmlcov"