circuitpython-functools 2.0.1__tar.gz → 2.0.2.post0__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 (39) hide show
  1. {circuitpython_functools-2.0.1/circuitpython_functools.egg-info → circuitpython_functools-2.0.2.post0}/PKG-INFO +2 -2
  2. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/README.rst +1 -1
  3. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0/circuitpython_functools.egg-info}/PKG-INFO +2 -2
  4. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/circuitpython_functools.py +5 -5
  5. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/pyproject.toml +1 -1
  6. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/.github/PULL_REQUEST_TEMPLATE/adafruit_circuitpython_pr.md +0 -0
  7. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/.github/workflows/build.yml +0 -0
  8. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/.github/workflows/failure-help-text.yml +0 -0
  9. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/.github/workflows/release_gh.yml +0 -0
  10. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/.github/workflows/release_pypi.yml +0 -0
  11. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/.gitignore +0 -0
  12. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/.pre-commit-config.yaml +0 -0
  13. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/.readthedocs.yaml +0 -0
  14. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/CODE_OF_CONDUCT.md +0 -0
  15. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/LICENSE-MIT +0 -0
  16. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/LICENSE-PSF +0 -0
  17. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/LICENSES/CC-BY-4.0.txt +0 -0
  18. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/LICENSES/MIT.txt +0 -0
  19. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/LICENSES/PSF-2.0.txt +0 -0
  20. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/LICENSES/Unlicense.txt +0 -0
  21. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/README.rst.license +0 -0
  22. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/circuitpython_functools.egg-info/SOURCES.txt +0 -0
  23. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/circuitpython_functools.egg-info/dependency_links.txt +0 -0
  24. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/circuitpython_functools.egg-info/requires.txt +0 -0
  25. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/circuitpython_functools.egg-info/top_level.txt +0 -0
  26. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/docs/_static/favicon.ico +0 -0
  27. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/docs/_static/favicon.ico.license +0 -0
  28. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/docs/api.rst +0 -0
  29. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/docs/api.rst.license +0 -0
  30. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/docs/conf.py +0 -0
  31. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/docs/examples.rst +0 -0
  32. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/docs/examples.rst.license +0 -0
  33. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/docs/index.rst +0 -0
  34. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/docs/index.rst.license +0 -0
  35. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/docs/requirements.txt +0 -0
  36. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/examples/functools_simpletest.py +0 -0
  37. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/optional_requirements.txt +0 -0
  38. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/requirements.txt +0 -0
  39. {circuitpython_functools-2.0.1 → circuitpython_functools-2.0.2.post0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: circuitpython-functools
3
- Version: 2.0.1
3
+ Version: 2.0.2.post0
4
4
  Summary: A CircuitPython implementation of CPython's functools library
5
5
  Author-email: Alec Delaney <tekktrik@gmail.com>
6
6
  License-Expression: MIT AND PSF-2.0
@@ -72,7 +72,7 @@ following command to install:
72
72
 
73
73
  .. code-block:: shell
74
74
 
75
- circup install circuiython_functools
75
+ circup install circuitpython_functools
76
76
 
77
77
  Or the following command to update an existing version:
78
78
 
@@ -51,7 +51,7 @@ following command to install:
51
51
 
52
52
  .. code-block:: shell
53
53
 
54
- circup install circuiython_functools
54
+ circup install circuitpython_functools
55
55
 
56
56
  Or the following command to update an existing version:
57
57
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: circuitpython-functools
3
- Version: 2.0.1
3
+ Version: 2.0.2.post0
4
4
  Summary: A CircuitPython implementation of CPython's functools library
5
5
  Author-email: Alec Delaney <tekktrik@gmail.com>
6
6
  License-Expression: MIT AND PSF-2.0
@@ -72,7 +72,7 @@ following command to install:
72
72
 
73
73
  .. code-block:: shell
74
74
 
75
- circup install circuiython_functools
75
+ circup install circuitpython_functools
76
76
 
77
77
  Or the following command to update an existing version:
78
78
 
@@ -23,7 +23,7 @@ Implementation Notes
23
23
  import gc
24
24
  from collections import OrderedDict
25
25
 
26
- __version__ = "2.0.1"
26
+ __version__ = "2.0.2.post0"
27
27
  __repo__ = "https://github.com/tekktrik/CircuitPython_functools.git"
28
28
 
29
29
  _cache_records = {}
@@ -52,7 +52,7 @@ def _make_key(args, kwargs, kwd_mark=(_ObjectMark(),)):
52
52
  return hash(key)
53
53
 
54
54
 
55
- class CachedFunc:
55
+ class _CachedFunc:
56
56
  """Wrapped unbounded cache function."""
57
57
 
58
58
  def __init__(self, maxsize, user_func):
@@ -109,7 +109,7 @@ class CachedFunc:
109
109
 
110
110
  def cache(user_function):
111
111
  """Create an unbounded cache."""
112
- return CachedFunc(-1, user_function)
112
+ return _CachedFunc(-1, user_function)
113
113
 
114
114
 
115
115
  def lru_cache(*args, **kwargs):
@@ -121,13 +121,13 @@ def lru_cache(*args, **kwargs):
121
121
  if len(args) == 1 and isinstance(args[0], int):
122
122
  maxsize = args[0]
123
123
  elif len(args) == 1 and str(type(args[0]) == "<class 'function'>"):
124
- return CachedFunc(128, args[0])
124
+ return _CachedFunc(128, args[0])
125
125
  elif "maxsize" in kwargs:
126
126
  maxsize = kwargs["maxsize"]
127
127
  else:
128
128
  raise SyntaxError("lru_cache syntax incorrect")
129
129
 
130
- return partial(CachedFunc, maxsize)
130
+ return partial(_CachedFunc, maxsize)
131
131
 
132
132
 
133
133
  # Partial ported from the MicroPython library
@@ -12,7 +12,7 @@ requires = [
12
12
  [project]
13
13
  name = "circuitpython-functools"
14
14
  description = "A CircuitPython implementation of CPython's functools library"
15
- version = "2.0.1"
15
+ version = "2.0.2.post0"
16
16
  readme = "README.rst"
17
17
  authors = [
18
18
  {name = "Alec Delaney", email = "tekktrik@gmail.com"}