pyflyby 1.10.0__tar.gz → 1.10.1__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.

Potentially problematic release.


This version of pyflyby might be problematic. Click here for more details.

Files changed (140) hide show
  1. {pyflyby-1.10.0 → pyflyby-1.10.1}/.github/workflows/lint.yml +0 -1
  2. {pyflyby-1.10.0 → pyflyby-1.10.1}/PKG-INFO +5 -4
  3. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/conf.py +1 -1
  4. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_interactive.py +2 -2
  5. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_modules.py +3 -3
  6. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_version.py +1 -1
  7. {pyflyby-1.10.0 → pyflyby-1.10.1}/meson.build +1 -1
  8. {pyflyby-1.10.0 → pyflyby-1.10.1}/pyproject.toml +4 -3
  9. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_modules.py +6 -8
  10. {pyflyby-1.10.0 → pyflyby-1.10.1}/.github/dependabot.yml +0 -0
  11. {pyflyby-1.10.0 → pyflyby-1.10.1}/.github/workflows/docs.yml +0 -0
  12. {pyflyby-1.10.0 → pyflyby-1.10.1}/.github/workflows/test.yml +0 -0
  13. {pyflyby-1.10.0 → pyflyby-1.10.1}/.gitignore +0 -0
  14. {pyflyby-1.10.0 → pyflyby-1.10.1}/.pyflyby +0 -0
  15. {pyflyby-1.10.0 → pyflyby-1.10.1}/CONTRIBUTING.md +0 -0
  16. {pyflyby-1.10.0 → pyflyby-1.10.1}/LICENSE.txt +0 -0
  17. {pyflyby-1.10.0 → pyflyby-1.10.1}/MANIFEST.in +0 -0
  18. {pyflyby-1.10.0 → pyflyby-1.10.1}/README.rst +0 -0
  19. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/autoipython +0 -0
  20. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/autopython +0 -0
  21. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/collect-exports +0 -0
  22. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/collect-imports +0 -0
  23. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/create-imports +0 -0
  24. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/find-import +0 -0
  25. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/list-bad-xrefs +0 -0
  26. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/prune-broken-imports +0 -0
  27. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/py +0 -0
  28. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/pyflyby-diff +0 -0
  29. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/reformat-imports +0 -0
  30. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/replace-star-imports +0 -0
  31. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/saveframe +0 -0
  32. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/tidy-imports +0 -0
  33. {pyflyby-1.10.0 → pyflyby-1.10.1}/bin/transform-imports +0 -0
  34. {pyflyby-1.10.0 → pyflyby-1.10.1}/codecov.yml +0 -0
  35. {pyflyby-1.10.0 → pyflyby-1.10.1}/conftest.py +0 -0
  36. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/LICENSE.txt +0 -0
  37. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/Makefile +0 -0
  38. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/TODO.txt +0 -0
  39. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/__init__.py +0 -0
  40. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/api.rst +0 -0
  41. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/autoimp.rst +0 -0
  42. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/cmdline.rst +0 -0
  43. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/comms.rst +0 -0
  44. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/dbg.rst +0 -0
  45. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/file.rst +0 -0
  46. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/flags.rst +0 -0
  47. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/format.rst +0 -0
  48. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/idents.rst +0 -0
  49. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/importclns.rst +0 -0
  50. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/importdb.rst +0 -0
  51. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/imports2s.rst +0 -0
  52. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/importstmt.rst +0 -0
  53. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/interactive.rst +0 -0
  54. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/livepatch.rst +0 -0
  55. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/log.rst +0 -0
  56. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/modules.rst +0 -0
  57. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/parse.rst +0 -0
  58. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/py.rst +0 -0
  59. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/api/util.rst +0 -0
  60. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/autoipython.rst +0 -0
  61. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/cli.rst +0 -0
  62. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/collect_exports.rst +0 -0
  63. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/collect_imports.rst +0 -0
  64. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/find_import.rst +0 -0
  65. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/prune_broken_imports.rst +0 -0
  66. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/py.rst +0 -0
  67. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/pyflyby_diff.rst +0 -0
  68. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/reformat_imports.rst +0 -0
  69. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/replace_star_imports.rst +0 -0
  70. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/tidy_imports.rst +0 -0
  71. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/cli/transform_imports.rst +0 -0
  72. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/index.rst +0 -0
  73. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/make.bat +0 -0
  74. {pyflyby-1.10.0 → pyflyby-1.10.1}/doc/testing.txt +0 -0
  75. {pyflyby-1.10.0 → pyflyby-1.10.1}/etc/pyflyby/.gitignore +0 -0
  76. {pyflyby-1.10.0 → pyflyby-1.10.1}/etc/pyflyby/canonical.py +0 -0
  77. {pyflyby-1.10.0 → pyflyby-1.10.1}/etc/pyflyby/common.py +0 -0
  78. {pyflyby-1.10.0 → pyflyby-1.10.1}/etc/pyflyby/forget.py +0 -0
  79. {pyflyby-1.10.0 → pyflyby-1.10.1}/etc/pyflyby/mandatory.py +0 -0
  80. {pyflyby-1.10.0 → pyflyby-1.10.1}/etc/pyflyby/numpy.py +0 -0
  81. {pyflyby-1.10.0 → pyflyby-1.10.1}/etc/pyflyby/std.py +0 -0
  82. {pyflyby-1.10.0 → pyflyby-1.10.1}/github_deploy_key_deshaw_pyflyby.enc +0 -0
  83. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/emacs/pyflyby.el +0 -0
  84. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/.gitignore +0 -0
  85. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/.gitignore +0 -0
  86. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/__init__.py +0 -0
  87. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/__main__.py +0 -0
  88. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_autoimp.py +0 -0
  89. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_cmdline.py +0 -0
  90. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_comms.py +0 -0
  91. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_dbg.py +0 -0
  92. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_docxref.py +0 -0
  93. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_dynimp.py +0 -0
  94. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_file.py +0 -0
  95. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_flags.py +0 -0
  96. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_format.py +0 -0
  97. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_idents.py +0 -0
  98. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_import_sorting.py +0 -0
  99. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_importclns.py +0 -0
  100. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_importdb.py +0 -0
  101. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_imports2s.py +0 -0
  102. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_importstmt.py +0 -0
  103. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_livepatch.py +0 -0
  104. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_log.py +0 -0
  105. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_parse.py +0 -0
  106. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_py.py +0 -0
  107. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_saveframe.py +0 -0
  108. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_saveframe_reader.py +0 -0
  109. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/_util.py +0 -0
  110. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/autoimport.py +0 -0
  111. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/importdb.py +0 -0
  112. {pyflyby-1.10.0 → pyflyby-1.10.1}/lib/python/pyflyby/meson.build +0 -0
  113. {pyflyby-1.10.0 → pyflyby-1.10.1}/libexec/pyflyby/colordiff +0 -0
  114. {pyflyby-1.10.0 → pyflyby-1.10.1}/libexec/pyflyby/diff-colorize +0 -0
  115. {pyflyby-1.10.0 → pyflyby-1.10.1}/pytest.ini +0 -0
  116. {pyflyby-1.10.0 → pyflyby-1.10.1}/src/_fast_iter_modules.cpp +0 -0
  117. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/__init__.py +0 -0
  118. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_0testconfig.py +0 -0
  119. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_autoimp.py +0 -0
  120. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_cmdline.py +0 -0
  121. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_docxref.py +0 -0
  122. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_file.py +0 -0
  123. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_flags.py +0 -0
  124. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_format.py +0 -0
  125. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_idents.py +0 -0
  126. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_importclns.py +0 -0
  127. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_importdb.py +0 -0
  128. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_imports2s.py +0 -0
  129. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_importstmt.py +0 -0
  130. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_interactive.py +0 -0
  131. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_jupyterlab_pyflyby.py +0 -0
  132. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_livepatch.py +0 -0
  133. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_parse.py +0 -0
  134. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_py.py +0 -0
  135. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_saveframe.py +0 -0
  136. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_saveframe_reader.py +0 -0
  137. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/test_util.py +0 -0
  138. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/tests_sorts.py +0 -0
  139. {pyflyby-1.10.0 → pyflyby-1.10.1}/tests/xrefs.py +0 -0
  140. {pyflyby-1.10.0 → pyflyby-1.10.1}/tox.ini +0 -0
@@ -17,7 +17,6 @@ jobs:
17
17
  # https://mesonbuild.com/meson-python/how-to-guides/editable-installs.html#build-dependencies
18
18
  # for details.
19
19
  pip install meson-python meson ninja pybind11>=2.10.4
20
- pip install setuptools wheel # needed for epydoc
21
20
  pip install --no-build-isolation -ve . --group lint
22
21
  - name: Mypy
23
22
  run: |
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyflyby
3
- Version: 1.10.0
3
+ Version: 1.10.1
4
4
  Summary: pyflyby - Python development productivity tools, in particular automatic import management
5
5
  Author-Email: Karl Chen <quarl@8166.clguba.z.quarl.org>
6
6
  License-Expression: MIT
@@ -20,9 +20,7 @@ Requires-Dist: six
20
20
  Requires-Dist: tomli; python_version < "3.11"
21
21
  Requires-Dist: typing_extensions>=4.6; python_version < "3.12"
22
22
  Requires-Dist: prompt_toolkit
23
- Requires-Dist: epydoc
24
- Requires-Dist: wheel
25
- Requires-Dist: appdirs
23
+ Requires-Dist: platformdirs
26
24
  Provides-Extra: test
27
25
  Requires-Dist: build; extra == "test"
28
26
  Requires-Dist: coverage; extra == "test"
@@ -38,6 +36,9 @@ Requires-Dist: pytest-cov; extra == "test"
38
36
  Requires-Dist: pytest-json-report; extra == "test"
39
37
  Requires-Dist: pytest<=8; extra == "test"
40
38
  Requires-Dist: requests; extra == "test"
39
+ Requires-Dist: epydoc; extra == "test"
40
+ Requires-Dist: wheel; extra == "test"
41
+ Requires-Dist: setuptools; extra == "test"
41
42
  Description-Content-Type: text/x-rst
42
43
 
43
44
  #########
@@ -45,7 +45,7 @@ autodoc_default_options = {
45
45
 
46
46
  autodoc_mock_imports = [
47
47
  "pyflyby._fast_iter_modules",
48
- "appdirs",
48
+ "platformdirs",
49
49
  "prompt_toolkit",
50
50
  ]
51
51
 
@@ -1724,14 +1724,14 @@ class AutoImporter:
1724
1724
  return __original__.fget(completer) + [completer.python_matcher]
1725
1725
 
1726
1726
  @self._advise(completer.global_matches)
1727
- def global_matches_with_autoimport(name):
1727
+ def global_matches_with_autoimport(name, *args, **kwargs):
1728
1728
  old_global_namespace = completer.global_namespace
1729
1729
  completer.global_namespace = NamespaceWithPotentialImports(
1730
1730
  old_global_namespace,
1731
1731
  ip=self._ip
1732
1732
  )
1733
1733
  try:
1734
- return self._safe_call(__original__, name)
1734
+ return self._safe_call(__original__, name, *args, **kwargs)
1735
1735
  finally:
1736
1736
  completer.global_namespace = old_global_namespace
1737
1737
 
@@ -4,7 +4,6 @@
4
4
 
5
5
  from __future__ import annotations
6
6
 
7
- import appdirs
8
7
  import ast
9
8
  from functools import cached_property, total_ordering
10
9
  import hashlib
@@ -14,6 +13,7 @@ import json
14
13
  import os
15
14
  import pathlib
16
15
  import pkgutil
16
+ import platformdirs
17
17
  import textwrap
18
18
 
19
19
  from pyflyby._fast_iter_modules \
@@ -45,7 +45,7 @@ def rebuild_import_cache():
45
45
  The cache is deleted before calling _fast_iter_modules, which repopulates the cache.
46
46
  """
47
47
  for path in pathlib.Path(
48
- appdirs.user_cache_dir(appname='pyflyby', appauthor=False)
48
+ platformdirs.user_cache_dir(appname='pyflyby', appauthor=False)
49
49
  ).iterdir():
50
50
  _remove_import_cache_dir(path)
51
51
  _fast_iter_modules()
@@ -596,7 +596,7 @@ def _cached_module_finder(
596
596
  package or not)
597
597
  """
598
598
  cache_dir = pathlib.Path(
599
- appdirs.user_cache_dir(appname='pyflyby', appauthor=False)
599
+ platformdirs.user_cache_dir(appname='pyflyby', appauthor=False)
600
600
  ) / hashlib.sha256(str(importer.path).encode()).hexdigest()
601
601
  cache_file = cache_dir / str(os.stat(importer.path).st_mtime_ns)
602
602
 
@@ -4,4 +4,4 @@
4
4
  # http://creativecommons.org/publicdomain/zero/1.0/
5
5
 
6
6
 
7
- __version__ = "1.10.0"
7
+ __version__ = "1.10.1"
@@ -1,7 +1,7 @@
1
1
  project(
2
2
  'pyflyby',
3
3
  'cpp',
4
- version: '1.10.0',
4
+ version: '1.10.1',
5
5
  default_options: 'cpp_std=c++17'
6
6
  )
7
7
 
@@ -30,9 +30,7 @@ dependencies = [
30
30
  "tomli; python_version<'3.11'",
31
31
  "typing_extensions>=4.6; python_version<'3.12'",
32
32
  'prompt_toolkit',
33
- 'epydoc',
34
- 'wheel', # required by epydoc, but not listed as a dependency
35
- 'appdirs',
33
+ 'platformdirs',
36
34
  ]
37
35
  [project.urls]
38
36
  Homepage = "https://pypi.org/project/pyflyby/"
@@ -59,6 +57,9 @@ test = [
59
57
  'pytest-json-report',
60
58
  'pytest<=8',
61
59
  'requests',
60
+ 'epydoc',
61
+ 'wheel', # required by epydoc, but not listed as a dependency
62
+ 'setuptools', # required by epydoc, but not listed as a dependency
62
63
  ]
63
64
 
64
65
  [dependency-groups]
@@ -3,22 +3,20 @@
3
3
  # License for THIS FILE ONLY: CC0 Public Domain Dedication
4
4
  # http://creativecommons.org/publicdomain/zero/1.0/
5
5
 
6
-
7
-
8
-
9
- from unittest import mock
10
- import pathlib
11
6
  import hashlib
12
7
  import logging.handlers
8
+ import pathlib
9
+ from pkgutil import iter_modules
13
10
  from pyflyby._file import Filename
14
11
  from pyflyby._idents import DottedIdentifier
15
12
  from pyflyby._log import logger
16
- from pyflyby._modules import ModuleHandle, _fast_iter_modules, _iter_file_finder_modules
17
- from pkgutil import iter_modules
13
+ from pyflyby._modules import (ModuleHandle, _fast_iter_modules,
14
+ _iter_file_finder_modules)
18
15
  import re
19
16
  import subprocess
20
17
  import sys
21
18
  from textwrap import dedent
19
+ from unittest import mock
22
20
 
23
21
  import pytest
24
22
 
@@ -125,7 +123,7 @@ def test_fast_iter_modules():
125
123
  assert fast == slow
126
124
 
127
125
 
128
- @mock.patch("appdirs.user_cache_dir")
126
+ @mock.patch("platformdirs.user_cache_dir")
129
127
  def test_import_cache(mock_user_cache_dir, tmp_path):
130
128
  """Test that the import cache is built when iterating modules.
131
129
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes