circuitpython-tmidi 1.0.3__tar.gz → 1.0.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. circuitpython_tmidi-1.0.5/.pre-commit-config.yaml +21 -0
  2. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/.readthedocs.yaml +3 -0
  3. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/PKG-INFO +3 -5
  4. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/README.rst +0 -3
  5. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/circuitpython_tmidi.egg-info/PKG-INFO +3 -5
  6. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/pyproject.toml +1 -1
  7. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/tests/test_tmidi_one.py +0 -1
  8. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/tmidi.py +2 -2
  9. circuitpython_tmidi-1.0.3/.pre-commit-config.yaml +0 -46
  10. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/.github/PULL_REQUEST_TEMPLATE/adafruit_circuitpython_pr.md +0 -0
  11. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/.github/workflows/build.yml +0 -0
  12. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/.github/workflows/failure-help-text.yml +0 -0
  13. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/.github/workflows/release_gh.yml +0 -0
  14. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/.github/workflows/release_pypi.yml +0 -0
  15. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/.gitignore +0 -0
  16. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/.pylintrc +0 -0
  17. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/CODE_OF_CONDUCT.md +0 -0
  18. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/LICENSE +0 -0
  19. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/LICENSES/CC-BY-4.0.txt +0 -0
  20. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/LICENSES/MIT.txt +0 -0
  21. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/LICENSES/Unlicense.txt +0 -0
  22. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/README.rst.license +0 -0
  23. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/circuitpython_tmidi.egg-info/SOURCES.txt +0 -0
  24. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/circuitpython_tmidi.egg-info/dependency_links.txt +0 -0
  25. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/circuitpython_tmidi.egg-info/requires.txt +0 -0
  26. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/circuitpython_tmidi.egg-info/top_level.txt +0 -0
  27. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/docs/_static/favicon.ico +0 -0
  28. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/docs/_static/favicon.ico.license +0 -0
  29. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/docs/api.rst +0 -0
  30. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/docs/api.rst.license +0 -0
  31. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/docs/conf.py +0 -0
  32. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/docs/examples.rst +0 -0
  33. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/docs/examples.rst.license +0 -0
  34. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/docs/index.rst +0 -0
  35. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/docs/index.rst.license +0 -0
  36. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/docs/requirements.txt +0 -0
  37. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/examples/tmidi_midiforwarder.py +0 -0
  38. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/examples/tmidi_multiple_receiver.py +0 -0
  39. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/examples/tmidi_simple_receiver.py +0 -0
  40. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/examples/tmidi_simpletest.py +0 -0
  41. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/optional_requirements.txt +0 -0
  42. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/requirements.txt +0 -0
  43. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/setup.cfg +0 -0
  44. {circuitpython_tmidi-1.0.3 → circuitpython_tmidi-1.0.5}/tests/test_one.py +0 -0
@@ -0,0 +1,21 @@
1
+ # SPDX-FileCopyrightText: 2024 Justin Myers for Adafruit Industries
2
+ #
3
+ # SPDX-License-Identifier: Unlicense
4
+
5
+ repos:
6
+ - repo: https://github.com/pre-commit/pre-commit-hooks
7
+ rev: v4.5.0
8
+ hooks:
9
+ - id: check-yaml
10
+ - id: end-of-file-fixer
11
+ - id: trailing-whitespace
12
+ - repo: https://github.com/astral-sh/ruff-pre-commit
13
+ rev: v0.3.4
14
+ hooks:
15
+ - id: ruff-format
16
+ - id: ruff
17
+ args: ["--fix"]
18
+ - repo: https://github.com/fsfe/reuse-tool
19
+ rev: v3.0.1
20
+ hooks:
21
+ - id: reuse
@@ -8,6 +8,9 @@
8
8
  # Required
9
9
  version: 2
10
10
 
11
+ sphinx:
12
+ configuration: docs/conf.py
13
+
11
14
  build:
12
15
  os: ubuntu-20.04
13
16
  tools:
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: circuitpython-tmidi
3
- Version: 1.0.3
3
+ Version: 1.0.5
4
4
  Summary: MIDI library for CircuitPython
5
5
  Author-email: Tod Kurt <tod@todbot.com>
6
6
  License: MIT
@@ -16,6 +16,7 @@ Description-Content-Type: text/x-rst
16
16
  License-File: LICENSE
17
17
  Requires-Dist: Adafruit-Blinka
18
18
  Provides-Extra: optional
19
+ Dynamic: license-file
19
20
 
20
21
  Introduction
21
22
  ============
@@ -51,9 +52,6 @@ or individual libraries can be installed using
51
52
 
52
53
  Installing from PyPI
53
54
  =====================
54
- .. note:: This library is not available on PyPI yet. Install documentation is included
55
- as a standard element. Stay tuned for PyPI availability!
56
-
57
55
 
58
56
  On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
59
57
  PyPI <https://pypi.org/project/circuitpython-tmidi/>`_.
@@ -32,9 +32,6 @@ or individual libraries can be installed using
32
32
 
33
33
  Installing from PyPI
34
34
  =====================
35
- .. note:: This library is not available on PyPI yet. Install documentation is included
36
- as a standard element. Stay tuned for PyPI availability!
37
-
38
35
 
39
36
  On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
40
37
  PyPI <https://pypi.org/project/circuitpython-tmidi/>`_.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: circuitpython-tmidi
3
- Version: 1.0.3
3
+ Version: 1.0.5
4
4
  Summary: MIDI library for CircuitPython
5
5
  Author-email: Tod Kurt <tod@todbot.com>
6
6
  License: MIT
@@ -16,6 +16,7 @@ Description-Content-Type: text/x-rst
16
16
  License-File: LICENSE
17
17
  Requires-Dist: Adafruit-Blinka
18
18
  Provides-Extra: optional
19
+ Dynamic: license-file
19
20
 
20
21
  Introduction
21
22
  ============
@@ -51,9 +52,6 @@ or individual libraries can be installed using
51
52
 
52
53
  Installing from PyPI
53
54
  =====================
54
- .. note:: This library is not available on PyPI yet. Install documentation is included
55
- as a standard element. Stay tuned for PyPI availability!
56
-
57
55
 
58
56
  On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
59
57
  PyPI <https://pypi.org/project/circuitpython-tmidi/>`_.
@@ -13,7 +13,7 @@ requires = [
13
13
  [project]
14
14
  name = "circuitpython-tmidi"
15
15
  description = "MIDI library for CircuitPython"
16
- version = "1.0.3"
16
+ version = "1.0.5"
17
17
  readme = "README.rst"
18
18
  authors = [
19
19
  {name = "Tod Kurt", email = "tod@todbot.com"}
@@ -2,7 +2,6 @@
2
2
  # SPDX-FileCopyrightText: Copyright (c) 2024 Tod Kurt
3
3
  # SPDX-License-Identifier: MIT
4
4
 
5
- import pytest # pylint: disable=unused-import
6
5
 
7
6
  import tmidi
8
7
 
@@ -32,7 +32,7 @@ Implementation Notes
32
32
 
33
33
  # imports
34
34
 
35
- __version__ = "1.0.3"
35
+ __version__ = "1.0.5"
36
36
  __repo__ = "https://github.com/todbot/CircuitPython_TMIDI.git"
37
37
 
38
38
  # Portions of this library come from Winterbloom_SmolMIDI:
@@ -216,7 +216,7 @@ class Message:
216
216
  # pylint: disable=consider-using-f-string
217
217
  def __str__(self):
218
218
  mtype = self.type
219
- type_str = "Message(" + _MSG_TYPE_NAMES[mtype]
219
+ type_str = "Message(" + _MSG_TYPE_NAMES.get(mtype, "Unknown")
220
220
  ch_str = "ch:%d" % self.channel if _is_channel_message(mtype) else "-"
221
221
  if mtype == PITCH_BEND:
222
222
  return "%s %s %d)" % (type_str, ch_str, self.pitch_bend)
@@ -1,46 +0,0 @@
1
- # SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
2
- #
3
- # SPDX-License-Identifier: Unlicense
4
-
5
- default_language_version:
6
- # force all unspecified python hooks to run python3.11
7
- python: python3.11
8
-
9
- repos:
10
- - repo: https://github.com/python/black
11
- rev: 23.3.0
12
- hooks:
13
- - id: black
14
- - repo: https://github.com/fsfe/reuse-tool
15
- rev: v1.1.2
16
- hooks:
17
- - id: reuse
18
- - repo: https://github.com/pre-commit/pre-commit-hooks
19
- rev: v4.4.0
20
- hooks:
21
- - id: check-yaml
22
- - id: end-of-file-fixer
23
- - id: trailing-whitespace
24
- - repo: https://github.com/pycqa/pylint
25
- rev: v2.17.4
26
- hooks:
27
- - id: pylint
28
- name: pylint (library code)
29
- types: [python]
30
- args:
31
- - --disable=consider-using-f-string
32
- exclude: "^(docs/|examples/|tests/|setup.py$)"
33
- - id: pylint
34
- name: pylint (example code)
35
- description: Run pylint rules on "examples/*.py" files
36
- types: [python]
37
- files: "^examples/"
38
- args:
39
- - --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
40
- - id: pylint
41
- name: pylint (test code)
42
- description: Run pylint rules on "tests/*.py" files
43
- types: [python]
44
- files: "^tests/"
45
- args:
46
- - --disable=missing-docstring,consider-using-f-string,duplicate-code