django-codemod 2.2.2__tar.gz → 2.3.0__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.
- django_codemod-2.3.0/MANIFEST.in +11 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/PKG-INFO +19 -22
- {django_codemod-2.2.2 → django_codemod-2.3.0}/README.md +2 -2
- django_codemod-2.3.0/docs/Makefile +20 -0
- django_codemod-2.3.0/docs/conf.py +169 -0
- django_codemod-2.3.0/docs/make.bat +36 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/pyproject.toml +54 -46
- django_codemod-2.3.0/setup.cfg +4 -0
- django_codemod-2.3.0/src/django_codemod/__init__.py +1 -0
- django_codemod-2.3.0/src/django_codemod.egg-info/PKG-INFO +147 -0
- django_codemod-2.3.0/src/django_codemod.egg-info/SOURCES.txt +72 -0
- django_codemod-2.3.0/src/django_codemod.egg-info/dependency_links.txt +1 -0
- django_codemod-2.3.0/src/django_codemod.egg-info/entry_points.txt +2 -0
- django_codemod-2.3.0/src/django_codemod.egg-info/requires.txt +5 -0
- django_codemod-2.3.0/src/django_codemod.egg-info/top_level.txt +1 -0
- django_codemod-2.2.2/src/django_codemod/__init__.py +0 -1
- {django_codemod-2.2.2 → django_codemod-2.3.0}/LICENSE +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/cli.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/commands.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/constants.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/feature_flags.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/path_utils.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/utils/__init__.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/utils/calls.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/__init__.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/admin.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/base.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/core.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/crypto.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/decorators.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/encoding.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/exceptions.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/forms.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/html.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/http.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/lru_cache.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/models.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/os_utils.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/paginator.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/postgres_fields.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/shortcuts.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/signals.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/template_context.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/template_tags.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/timezone.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/translations.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/urls.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/__init__.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/test_cli.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/test_e2e.sh +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/test_path_utils.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/__init__.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/base.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_admin.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_base.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_core.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_crypto.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_decorators.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_encoding.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_exceptions.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_forms.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_html.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_http.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_lru_cache.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_models.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_os_utils.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_paginator.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_postgres_fields.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_shortcuts.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_signals.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_template_context.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_template_tags.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_timezone.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_translations.py +0 -0
- {django_codemod-2.2.2 → django_codemod-2.3.0}/tests/visitors/test_urls.py +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
include AUTHORS.rst
|
|
2
|
+
include CONTRIBUTING.rst
|
|
3
|
+
include HISTORY.rst
|
|
4
|
+
include LICENSE
|
|
5
|
+
include README.rst
|
|
6
|
+
|
|
7
|
+
recursive-include tests *
|
|
8
|
+
recursive-exclude * __pycache__
|
|
9
|
+
recursive-exclude * *.py[co]
|
|
10
|
+
|
|
11
|
+
recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
|
|
@@ -1,37 +1,35 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-codemod
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: A command line tool to automatically fix Django deprecations.
|
|
5
|
-
|
|
5
|
+
Author-email: Bruno Alla <alla.brunoo@gmail.com>
|
|
6
6
|
License: MIT
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/browniebroke/django-codemod/issues
|
|
8
|
+
Project-URL: Changelog, https://django-codemod.readthedocs.io/en/stable/changelog.html
|
|
9
|
+
Project-URL: documentation, https://django-codemod.readthedocs.io
|
|
10
|
+
Project-URL: Mastodon, https://fosstodon.org/@browniebroke
|
|
11
|
+
Project-URL: repository, https://github.com/browniebroke/django-codemod
|
|
12
|
+
Project-URL: Twitter, https://twitter.com/_BrunoAlla
|
|
13
|
+
Keywords: codemod,django,libCST
|
|
11
14
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
15
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
16
|
Classifier: Natural Language :: English
|
|
15
17
|
Classifier: Operating System :: OS Independent
|
|
16
|
-
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
24
|
Classifier: Topic :: Software Development :: Libraries
|
|
23
|
-
Requires-
|
|
24
|
-
Requires-Dist: libcst (==1.5.1)
|
|
25
|
-
Requires-Dist: pathspec (>=0.6,<1)
|
|
26
|
-
Requires-Dist: rich (>=10)
|
|
27
|
-
Requires-Dist: rich-click (>=1.0)
|
|
28
|
-
Project-URL: Bug Tracker, https://github.com/browniebroke/django-codemod/issues
|
|
29
|
-
Project-URL: Changelog, https://django-codemod.readthedocs.io/en/stable/changelog.html
|
|
30
|
-
Project-URL: Documentation, https://django-codemod.readthedocs.io
|
|
31
|
-
Project-URL: Mastodon, https://fosstodon.org/@browniebroke
|
|
32
|
-
Project-URL: Repository, https://github.com/browniebroke/django-codemod
|
|
33
|
-
Project-URL: Twitter, https://twitter.com/_BrunoAlla
|
|
25
|
+
Requires-Python: >=3.9
|
|
34
26
|
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Requires-Dist: click<9
|
|
29
|
+
Requires-Dist: libcst==1.5.1
|
|
30
|
+
Requires-Dist: pathspec<1,>=0.6
|
|
31
|
+
Requires-Dist: rich>=10
|
|
32
|
+
Requires-Dist: rich-click>=1
|
|
35
33
|
|
|
36
34
|
<p align="center">
|
|
37
35
|
<img alt="Django Codemod" src="https://raw.githubusercontent.com/browniebroke/django-codemod/main/assets/djangocodemod-stroke.png">
|
|
@@ -52,8 +50,8 @@ Description-Content-Type: text/markdown
|
|
|
52
50
|
</a>
|
|
53
51
|
</p>
|
|
54
52
|
<p align="center">
|
|
55
|
-
<a href="https://
|
|
56
|
-
<img src="https://img.shields.io/endpoint?url=https://
|
|
53
|
+
<a href="https://github.com/astral-sh/uv">
|
|
54
|
+
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json" alt="uv">
|
|
57
55
|
</a>
|
|
58
56
|
<a href="https://github.com/astral-sh/ruff">
|
|
59
57
|
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
|
|
@@ -147,4 +145,3 @@ This package was created with
|
|
|
147
145
|
[Cookiecutter](https://github.com/audreyr/cookiecutter) and the
|
|
148
146
|
[audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage)
|
|
149
147
|
project template.
|
|
150
|
-
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
</a>
|
|
18
18
|
</p>
|
|
19
19
|
<p align="center">
|
|
20
|
-
<a href="https://
|
|
21
|
-
<img src="https://img.shields.io/endpoint?url=https://
|
|
20
|
+
<a href="https://github.com/astral-sh/uv">
|
|
21
|
+
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json" alt="uv">
|
|
22
22
|
</a>
|
|
23
23
|
<a href="https://github.com/astral-sh/ruff">
|
|
24
24
|
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line.
|
|
5
|
+
SPHINXOPTS =
|
|
6
|
+
SPHINXBUILD = python -msphinx
|
|
7
|
+
SPHINXPROJ = django_codemod
|
|
8
|
+
SOURCEDIR = .
|
|
9
|
+
BUILDDIR = _build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
#
|
|
3
|
+
# django_codemod documentation build configuration file, created by
|
|
4
|
+
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
|
|
5
|
+
#
|
|
6
|
+
# This file is execfile()d with the current directory set to its
|
|
7
|
+
# containing dir.
|
|
8
|
+
#
|
|
9
|
+
# Note that not all possible configuration values are present in this
|
|
10
|
+
# autogenerated file.
|
|
11
|
+
#
|
|
12
|
+
# All configuration values have a default; values that are commented out
|
|
13
|
+
# serve to show the default.
|
|
14
|
+
|
|
15
|
+
# If extensions (or modules to document with autodoc) are in another
|
|
16
|
+
# directory, add these directories to sys.path here. If the directory is
|
|
17
|
+
# relative to the documentation root, use os.path.abspath to make it
|
|
18
|
+
# absolute, like shown here.
|
|
19
|
+
#
|
|
20
|
+
import os
|
|
21
|
+
import sys
|
|
22
|
+
|
|
23
|
+
sys.path.insert(0, os.path.abspath(".."))
|
|
24
|
+
|
|
25
|
+
import django_codemod # E402 isort:skip
|
|
26
|
+
|
|
27
|
+
# -- General configuration ---------------------------------------------
|
|
28
|
+
|
|
29
|
+
# If your documentation needs a minimal Sphinx version, state it here.
|
|
30
|
+
#
|
|
31
|
+
# needs_sphinx = '1.0'
|
|
32
|
+
|
|
33
|
+
# Add any Sphinx extension module names here, as strings. They can be
|
|
34
|
+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
|
35
|
+
extensions = [
|
|
36
|
+
"sphinx.ext.autodoc",
|
|
37
|
+
"sphinx.ext.viewcode",
|
|
38
|
+
"myst_parser",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
# Add any paths that contain templates here, relative to this directory.
|
|
42
|
+
templates_path = ["_templates"]
|
|
43
|
+
|
|
44
|
+
# The suffix(es) of source filenames.
|
|
45
|
+
# You can specify multiple suffix as a list of string:
|
|
46
|
+
#
|
|
47
|
+
source_suffix = [".rst", ".md"]
|
|
48
|
+
|
|
49
|
+
# The master toctree document.
|
|
50
|
+
master_doc = "index"
|
|
51
|
+
|
|
52
|
+
# General information about the project.
|
|
53
|
+
project = "Django Codemod"
|
|
54
|
+
copyright = "2020, Bruno Alla"
|
|
55
|
+
author = "Bruno Alla"
|
|
56
|
+
|
|
57
|
+
# The version info for the project you're documenting, acts as replacement
|
|
58
|
+
# for |version| and |release|, also used in various other places throughout
|
|
59
|
+
# the built documents.
|
|
60
|
+
#
|
|
61
|
+
# The short X.Y version.
|
|
62
|
+
version = django_codemod.__version__
|
|
63
|
+
# The full version, including alpha/beta/rc tags.
|
|
64
|
+
release = django_codemod.__version__
|
|
65
|
+
|
|
66
|
+
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
67
|
+
# for a list of supported languages.
|
|
68
|
+
#
|
|
69
|
+
# This is also used if you do content translation via gettext catalogs.
|
|
70
|
+
# Usually you set "language" from the command line for these cases.
|
|
71
|
+
language = None
|
|
72
|
+
|
|
73
|
+
# List of patterns, relative to source directory, that match files and
|
|
74
|
+
# directories to ignore when looking for source files.
|
|
75
|
+
# This patterns also effect to html_static_path and html_extra_path
|
|
76
|
+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
|
77
|
+
|
|
78
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
|
79
|
+
pygments_style = "sphinx"
|
|
80
|
+
|
|
81
|
+
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
|
82
|
+
todo_include_todos = False
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
# -- Options for HTML output -------------------------------------------
|
|
86
|
+
|
|
87
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
88
|
+
# a list of builtin themes.
|
|
89
|
+
#
|
|
90
|
+
html_theme = "furo"
|
|
91
|
+
|
|
92
|
+
# Theme options are theme-specific and customize the look and feel of a
|
|
93
|
+
# theme further.
|
|
94
|
+
html_theme_options = {
|
|
95
|
+
"light_logo": "img/logo-black.svg",
|
|
96
|
+
"dark_logo": "img/logo-white.svg",
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
|
100
|
+
# relative to this directory. They are copied after the builtin static files,
|
|
101
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
102
|
+
html_static_path = ["_static"]
|
|
103
|
+
|
|
104
|
+
# Favicon
|
|
105
|
+
html_favicon = "_static/img/favicon.ico"
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
# -- Options for HTMLHelp output ---------------------------------------
|
|
109
|
+
|
|
110
|
+
# Output file base name for HTML help builder.
|
|
111
|
+
htmlhelp_basename = "django_codemoddoc"
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# -- Options for LaTeX output ------------------------------------------
|
|
115
|
+
|
|
116
|
+
# latex_elements = {
|
|
117
|
+
# # The paper size ('letterpaper' or 'a4paper').
|
|
118
|
+
# #
|
|
119
|
+
# # 'papersize': 'letterpaper',
|
|
120
|
+
# # The font size ('10pt', '11pt' or '12pt').
|
|
121
|
+
# #
|
|
122
|
+
# # 'pointsize': '10pt',
|
|
123
|
+
# # Additional stuff for the LaTeX preamble.
|
|
124
|
+
# #
|
|
125
|
+
# # 'preamble': '',
|
|
126
|
+
# # Latex figure (float) alignment
|
|
127
|
+
# #
|
|
128
|
+
# # 'figure_align': 'htbp',
|
|
129
|
+
# }
|
|
130
|
+
|
|
131
|
+
# Grouping the document tree into LaTeX files. List of tuples
|
|
132
|
+
# (source start file, target name, title, author, documentclass
|
|
133
|
+
# [howto, manual, or own class]).
|
|
134
|
+
# latex_documents = [
|
|
135
|
+
# (
|
|
136
|
+
# master_doc,
|
|
137
|
+
# "django_codemod.tex",
|
|
138
|
+
# "Django Codemod Documentation",
|
|
139
|
+
# "Bruno Alla",
|
|
140
|
+
# "manual",
|
|
141
|
+
# ),
|
|
142
|
+
# ]
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
# -- Options for manual page output ------------------------------------
|
|
146
|
+
|
|
147
|
+
# One entry per manual page. List of tuples
|
|
148
|
+
# (source start file, name, description, authors, manual section).
|
|
149
|
+
man_pages = [
|
|
150
|
+
(master_doc, "django_codemod", "Django Codemod Documentation", [author], 1)
|
|
151
|
+
]
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
# -- Options for Texinfo output ----------------------------------------
|
|
155
|
+
|
|
156
|
+
# Grouping the document tree into Texinfo files. List of tuples
|
|
157
|
+
# (source start file, target name, title, author,
|
|
158
|
+
# dir menu entry, description, category)
|
|
159
|
+
texinfo_documents = [
|
|
160
|
+
(
|
|
161
|
+
master_doc,
|
|
162
|
+
"django_codemod",
|
|
163
|
+
"Django Codemod Documentation",
|
|
164
|
+
author,
|
|
165
|
+
"django_codemod",
|
|
166
|
+
"One line description of project.",
|
|
167
|
+
"Miscellaneous",
|
|
168
|
+
),
|
|
169
|
+
]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=python -msphinx
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=.
|
|
11
|
+
set BUILDDIR=_build
|
|
12
|
+
set SPHINXPROJ=django_codemod
|
|
13
|
+
|
|
14
|
+
if "%1" == "" goto help
|
|
15
|
+
|
|
16
|
+
%SPHINXBUILD% >NUL 2>NUL
|
|
17
|
+
if errorlevel 9009 (
|
|
18
|
+
echo.
|
|
19
|
+
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
|
|
20
|
+
echo.then set the SPHINXBUILD environment variable to point to the full
|
|
21
|
+
echo.path of the 'sphinx-build' executable. Alternatively you may add the
|
|
22
|
+
echo.Sphinx directory to PATH.
|
|
23
|
+
echo.
|
|
24
|
+
echo.If you don't have Sphinx installed, grab it from
|
|
25
|
+
echo.http://sphinx-doc.org/
|
|
26
|
+
exit /b 1
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
|
30
|
+
goto end
|
|
31
|
+
|
|
32
|
+
:help
|
|
33
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
|
34
|
+
|
|
35
|
+
:end
|
|
36
|
+
popd
|
|
@@ -1,60 +1,63 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
build-backend = "
|
|
3
|
-
requires = [ "
|
|
2
|
+
build-backend = "setuptools.build_meta"
|
|
3
|
+
requires = [ "setuptools" ]
|
|
4
4
|
|
|
5
|
-
[
|
|
5
|
+
[project]
|
|
6
6
|
name = "django-codemod"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.3.0"
|
|
8
8
|
description = "A command line tool to automatically fix Django deprecations."
|
|
9
|
-
authors = [ "Bruno Alla <alla.brunoo@gmail.com>" ]
|
|
10
|
-
license = "MIT"
|
|
11
9
|
readme = "README.md"
|
|
12
|
-
keywords = [
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
keywords = [
|
|
11
|
+
"codemod",
|
|
12
|
+
"django",
|
|
13
|
+
"libCST",
|
|
14
|
+
]
|
|
15
|
+
license = { text = "MIT" }
|
|
16
|
+
authors = [
|
|
17
|
+
{ name = "Bruno Alla", email = "alla.brunoo@gmail.com" },
|
|
18
|
+
]
|
|
19
|
+
requires-python = ">=3.9"
|
|
15
20
|
classifiers = [
|
|
16
21
|
"Development Status :: 5 - Production/Stable",
|
|
17
22
|
"Intended Audience :: Developers",
|
|
18
23
|
"Natural Language :: English",
|
|
19
24
|
"Operating System :: OS Independent",
|
|
20
|
-
"
|
|
25
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
26
|
+
"Programming Language :: Python :: 3.9",
|
|
27
|
+
"Programming Language :: Python :: 3.10",
|
|
28
|
+
"Programming Language :: Python :: 3.11",
|
|
21
29
|
"Programming Language :: Python :: 3.12",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{ include = "django_codemod", from = "src" },
|
|
25
|
-
{ include = "tests", format = "sdist" },
|
|
30
|
+
"Programming Language :: Python :: 3.13",
|
|
31
|
+
"Topic :: Software Development :: Libraries",
|
|
26
32
|
]
|
|
27
33
|
|
|
28
|
-
[
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
pytest
|
|
48
|
-
pytest-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
myst-parser = { version = ">=0.16", python = ">=3.11" }
|
|
56
|
-
sphinx = { version = ">=4.0", python = ">=3.11" }
|
|
57
|
-
furo = { version = ">=2023.5.20", python = ">=3.11" }
|
|
34
|
+
dependencies = [
|
|
35
|
+
"click<9",
|
|
36
|
+
"libcst==1.5.1",
|
|
37
|
+
"pathspec>=0.6,<1",
|
|
38
|
+
"rich>=10",
|
|
39
|
+
"rich-click>=1",
|
|
40
|
+
]
|
|
41
|
+
urls."Bug Tracker" = "https://github.com/browniebroke/django-codemod/issues"
|
|
42
|
+
urls.Changelog = "https://django-codemod.readthedocs.io/en/stable/changelog.html"
|
|
43
|
+
urls.documentation = "https://django-codemod.readthedocs.io"
|
|
44
|
+
urls.Mastodon = "https://fosstodon.org/@browniebroke"
|
|
45
|
+
urls.repository = "https://github.com/browniebroke/django-codemod"
|
|
46
|
+
urls.Twitter = "https://twitter.com/_BrunoAlla"
|
|
47
|
+
scripts.djcodemod = "django_codemod.cli:djcodemod"
|
|
48
|
+
|
|
49
|
+
[dependency-groups]
|
|
50
|
+
dev = [
|
|
51
|
+
"parameterized>=0.9,<1",
|
|
52
|
+
"pytest>=8,<9",
|
|
53
|
+
"pytest-cov>=6,<7",
|
|
54
|
+
"pytest-mock>=3.3,<4",
|
|
55
|
+
]
|
|
56
|
+
docs = [
|
|
57
|
+
"furo>=2023.5.20; python_version>='3.11'",
|
|
58
|
+
"myst-parser>=0.16; python_version>='3.11'",
|
|
59
|
+
"sphinx>=4; python_version>='3.11'",
|
|
60
|
+
]
|
|
58
61
|
|
|
59
62
|
[tool.ruff]
|
|
60
63
|
target-version = "py39"
|
|
@@ -120,11 +123,16 @@ warn_no_return = true
|
|
|
120
123
|
show_error_codes = true
|
|
121
124
|
|
|
122
125
|
[tool.semantic_release]
|
|
123
|
-
version_toml = [ "pyproject.toml:
|
|
126
|
+
version_toml = [ "pyproject.toml:project.version" ]
|
|
124
127
|
version_variables = [
|
|
125
128
|
"src/django_codemod/__init__.py:__version__",
|
|
126
129
|
]
|
|
127
|
-
build_command = "
|
|
130
|
+
build_command = """
|
|
131
|
+
pip install uv
|
|
132
|
+
uv lock
|
|
133
|
+
git add uv.lock
|
|
134
|
+
uv build
|
|
135
|
+
"""
|
|
128
136
|
|
|
129
137
|
[tool.semantic_release.changelog]
|
|
130
138
|
exclude_commit_patterns = [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.3.0"
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: django-codemod
|
|
3
|
+
Version: 2.3.0
|
|
4
|
+
Summary: A command line tool to automatically fix Django deprecations.
|
|
5
|
+
Author-email: Bruno Alla <alla.brunoo@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/browniebroke/django-codemod/issues
|
|
8
|
+
Project-URL: Changelog, https://django-codemod.readthedocs.io/en/stable/changelog.html
|
|
9
|
+
Project-URL: documentation, https://django-codemod.readthedocs.io
|
|
10
|
+
Project-URL: Mastodon, https://fosstodon.org/@browniebroke
|
|
11
|
+
Project-URL: repository, https://github.com/browniebroke/django-codemod
|
|
12
|
+
Project-URL: Twitter, https://twitter.com/_BrunoAlla
|
|
13
|
+
Keywords: codemod,django,libCST
|
|
14
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Natural Language :: English
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
25
|
+
Requires-Python: >=3.9
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Requires-Dist: click<9
|
|
29
|
+
Requires-Dist: libcst==1.5.1
|
|
30
|
+
Requires-Dist: pathspec<1,>=0.6
|
|
31
|
+
Requires-Dist: rich>=10
|
|
32
|
+
Requires-Dist: rich-click>=1
|
|
33
|
+
|
|
34
|
+
<p align="center">
|
|
35
|
+
<img alt="Django Codemod" src="https://raw.githubusercontent.com/browniebroke/django-codemod/main/assets/djangocodemod-stroke.png">
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
<p align="center">
|
|
39
|
+
<a href="https://github.com/browniebroke/django-codemod/actions/workflows/ci.yml?query=branch%3Amain">
|
|
40
|
+
<img alt="CI Status" src="https://img.shields.io/github/actions/workflow/status/browniebroke/django-codemod/ci.yml?branch=main&label=CI&logo=github&style=flat-square">
|
|
41
|
+
</a>
|
|
42
|
+
<a href="https://django-codemod.readthedocs.io">
|
|
43
|
+
<img src="https://img.shields.io/readthedocs/django-codemod.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">
|
|
44
|
+
</a>
|
|
45
|
+
<a href="https://codecov.io/gh/browniebroke/django-codemod">
|
|
46
|
+
<img src="https://img.shields.io/codecov/c/github/browniebroke/django-codemod.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">
|
|
47
|
+
</a>
|
|
48
|
+
<a href="https://results.pre-commit.ci/latest/github/browniebroke/django-codemod/main">
|
|
49
|
+
<img src="https://results.pre-commit.ci/badge/github/browniebroke/django-codemod/main.svg" alt="pre-commit.ci status">
|
|
50
|
+
</a>
|
|
51
|
+
</p>
|
|
52
|
+
<p align="center">
|
|
53
|
+
<a href="https://github.com/astral-sh/uv">
|
|
54
|
+
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json" alt="uv">
|
|
55
|
+
</a>
|
|
56
|
+
<a href="https://github.com/astral-sh/ruff">
|
|
57
|
+
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
|
|
58
|
+
</a>
|
|
59
|
+
<a href="https://github.com/pre-commit/pre-commit">
|
|
60
|
+
<img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
|
|
61
|
+
</a>
|
|
62
|
+
</p>
|
|
63
|
+
<p align="center">
|
|
64
|
+
<a href="https://pypi.org/project/django-codemod/">
|
|
65
|
+
<img src="https://img.shields.io/pypi/v/django-codemod.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPi Status">
|
|
66
|
+
</a>
|
|
67
|
+
<img src="https://img.shields.io/pypi/pyversions/django-codemod.svg?style=flat-square&logo=python&logoColor=fff" alt="pyversions">
|
|
68
|
+
<img src="https://img.shields.io/pypi/l/django-codemod.svg?style=flat-square" alt="license">
|
|
69
|
+
<a href="https://github.com/browniebroke/django-codemod">
|
|
70
|
+
<img src="https://tokei.rs/b1/github/browniebroke/django-codemod/" alt="LoC">
|
|
71
|
+
</a>
|
|
72
|
+
</p>
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
**Documentation**: <a href="https://django-codemod.readthedocs.io" target="_blank">https://django-codemod.readthedocs.io</a>
|
|
77
|
+
|
|
78
|
+
**Source Code**: <a href="https://github.com/browniebroke/django-codemod" target="_blank">https://github.com/browniebroke/django-codemod </a>
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
A tool to help upgrade Django projects to newer version of the framework by automatically fixing deprecations.
|
|
83
|
+
|
|
84
|
+
## The problem
|
|
85
|
+
|
|
86
|
+
When maintaining a Django site, over time you'll find yourself to a point where you'll need to update to the next major version of Django. When Django APIs changes, functions move or are removed, changing usages in your project might add up to many changes. Often these changes are simple to do, but sometimes a simple "find and replace" is not possible.
|
|
87
|
+
|
|
88
|
+
Take, for instance, the removal of the `url()` function from Django 4.0, to be replaced by `re_path()`. In simple cases, you might even want to switch to `path()`, which has a nicer API. A typical Django project easily has 100's or routes, so this simple decision becomes a much longer task when to be made for each of them.
|
|
89
|
+
|
|
90
|
+
### This solution
|
|
91
|
+
|
|
92
|
+
This project solves this problem by providing codemodders for simple changes like this. A codemodder re-writes your code from the old way to the new way.
|
|
93
|
+
|
|
94
|
+
With the help of AST analysis, we're able to understand what modifications are applicable, remove imports as they become irrelevant, and add missing ones as they are needed.
|
|
95
|
+
|
|
96
|
+
To continue the example, the tool will look at the route in the `url()` call, and decide whether the regular expression may be replaced by one of the built-in URL converters and use `path()` or stick to a regex and use `re_path()`.
|
|
97
|
+
|
|
98
|
+
Interested? Check out [the documentation](https://django-codemod.readthedocs.io) for usage and the full list of codemodders.
|
|
99
|
+
|
|
100
|
+
### What this tool is not
|
|
101
|
+
|
|
102
|
+
- This tool is best suited for Django sites, NOT for reusable Django applications. The project needs to target a single Django version, e.g. 3.1.x.
|
|
103
|
+
- You do NOT need to install this tool as part of your project dependencies, it is a CLI tool, not a Django package to be installed in your site.
|
|
104
|
+
|
|
105
|
+
### Similar tools
|
|
106
|
+
|
|
107
|
+
[django-upgrade](https://github.com/adamchainz/django-upgrade) is a similar tool written by Adam Johnson. It's a reimplementation taking a different approach based only on standard library module.
|
|
108
|
+
|
|
109
|
+
django-codemod is based on [libCST](https://libcst.readthedocs.io/) (Concrete Syntax Tree) which is a limiting factor in terms of speed. By using standard library modules, django-upgrade is a lot faster and is able to support the latest Python, however it requires Python 3.8+.
|
|
110
|
+
|
|
111
|
+
## Contributors ✨
|
|
112
|
+
|
|
113
|
+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
114
|
+
|
|
115
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
116
|
+
<!-- prettier-ignore-start -->
|
|
117
|
+
<!-- markdownlint-disable -->
|
|
118
|
+
<table>
|
|
119
|
+
<tr>
|
|
120
|
+
<td align="center"><a href="https://browniebroke.com"><img src="https://avatars1.githubusercontent.com/u/861044?v=4?s=80" width="80px;" alt=""/><br /><sub><b>Bruno Alla</b></sub></a><br /><a href="https://github.com/browniebroke/django-codemod/commits?author=browniebroke" title="Code">💻</a> <a href="https://github.com/browniebroke/django-codemod/commits?author=browniebroke" title="Documentation">📖</a> <a href="#ideas-browniebroke" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
121
|
+
<td align="center"><a href="https://akx.github.io/"><img src="https://avatars2.githubusercontent.com/u/58669?v=4?s=80" width="80px;" alt=""/><br /><sub><b>Aarni Koskela</b></sub></a><br /><a href="https://github.com/browniebroke/django-codemod/commits?author=akx" title="Code">💻</a> <a href="#ideas-akx" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/browniebroke/django-codemod/commits?author=akx" title="Tests">⚠️</a></td>
|
|
122
|
+
<td align="center"><a href="https://adamj.eu/"><img src="https://avatars2.githubusercontent.com/u/857609?v=4?s=80" width="80px;" alt=""/><br /><sub><b>Adam Johnson</b></sub></a><br /><a href="https://github.com/browniebroke/django-codemod/commits?author=adamchainz" title="Documentation">📖</a></td>
|
|
123
|
+
<td align="center"><a href="https://sobolevn.me"><img src="https://avatars1.githubusercontent.com/u/4660275?v=4?s=80" width="80px;" alt=""/><br /><sub><b>Nikita Sobolev</b></sub></a><br /><a href="https://github.com/browniebroke/django-codemod/commits?author=sobolevn" title="Documentation">📖</a></td>
|
|
124
|
+
<td align="center"><a href="http://www.zapier.com"><img src="https://avatars3.githubusercontent.com/u/21158438?v=4?s=80" width="80px;" alt=""/><br /><sub><b>Chris VanderKolk</b></sub></a><br /><a href="https://github.com/browniebroke/django-codemod/commits?author=cvanderkolk" title="Code">💻</a></td>
|
|
125
|
+
<td align="center"><a href="https://ghuser.io/jayvdb"><img src="https://avatars1.githubusercontent.com/u/15092?v=4?s=80" width="80px;" alt=""/><br /><sub><b>John Vandenberg</b></sub></a><br /><a href="https://github.com/browniebroke/django-codemod/issues?q=author%3Ajayvdb" title="Bug reports">🐛</a> <a href="https://github.com/browniebroke/django-codemod/commits?author=jayvdb" title="Code">💻</a></td>
|
|
126
|
+
<td align="center"><a href="https://iamshnoo.github.io/blog/"><img src="https://avatars1.githubusercontent.com/u/45921510?v=4?s=80" width="80px;" alt=""/><br /><sub><b>Anjishnu</b></sub></a><br /><a href="#infra-iamshnoo" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
|
|
127
|
+
</tr>
|
|
128
|
+
<tr>
|
|
129
|
+
<td align="center"><a href="https://github.com/drewbrew"><img src="https://avatars1.githubusercontent.com/u/7773256?v=4?s=80" width="80px;" alt=""/><br /><sub><b>Drew Winstel</b></sub></a><br /><a href="#ideas-drewbrew" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
130
|
+
<td align="center"><a href="https://DmytroLitvinov.com"><img src="https://avatars.githubusercontent.com/u/16066485?v=4?s=80" width="80px;" alt=""/><br /><sub><b>Dmytro Litvinov</b></sub></a><br /><a href="https://github.com/browniebroke/django-codemod/commits?author=DmytroLitvinov" title="Documentation">📖</a></td>
|
|
131
|
+
<td align="center"><a href="https://mzulqarnain1.github.io/"><img src="https://avatars.githubusercontent.com/u/23311265?v=4?s=80" width="80px;" alt=""/><br /><sub><b>M. Zulqarnain</b></sub></a><br /><a href="https://github.com/browniebroke/django-codemod/commits?author=mzulqarnain1" title="Documentation">📖</a></td>
|
|
132
|
+
</tr>
|
|
133
|
+
</table>
|
|
134
|
+
|
|
135
|
+
<!-- markdownlint-restore -->
|
|
136
|
+
<!-- prettier-ignore-end -->
|
|
137
|
+
|
|
138
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
139
|
+
|
|
140
|
+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
|
141
|
+
|
|
142
|
+
## Credits
|
|
143
|
+
|
|
144
|
+
This package was created with
|
|
145
|
+
[Cookiecutter](https://github.com/audreyr/cookiecutter) and the
|
|
146
|
+
[audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage)
|
|
147
|
+
project template.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
docs/Makefile
|
|
6
|
+
docs/conf.py
|
|
7
|
+
docs/make.bat
|
|
8
|
+
src/django_codemod/__init__.py
|
|
9
|
+
src/django_codemod/cli.py
|
|
10
|
+
src/django_codemod/commands.py
|
|
11
|
+
src/django_codemod/constants.py
|
|
12
|
+
src/django_codemod/feature_flags.py
|
|
13
|
+
src/django_codemod/path_utils.py
|
|
14
|
+
src/django_codemod.egg-info/PKG-INFO
|
|
15
|
+
src/django_codemod.egg-info/SOURCES.txt
|
|
16
|
+
src/django_codemod.egg-info/dependency_links.txt
|
|
17
|
+
src/django_codemod.egg-info/entry_points.txt
|
|
18
|
+
src/django_codemod.egg-info/requires.txt
|
|
19
|
+
src/django_codemod.egg-info/top_level.txt
|
|
20
|
+
src/django_codemod/utils/__init__.py
|
|
21
|
+
src/django_codemod/utils/calls.py
|
|
22
|
+
src/django_codemod/visitors/__init__.py
|
|
23
|
+
src/django_codemod/visitors/admin.py
|
|
24
|
+
src/django_codemod/visitors/base.py
|
|
25
|
+
src/django_codemod/visitors/core.py
|
|
26
|
+
src/django_codemod/visitors/crypto.py
|
|
27
|
+
src/django_codemod/visitors/decorators.py
|
|
28
|
+
src/django_codemod/visitors/encoding.py
|
|
29
|
+
src/django_codemod/visitors/exceptions.py
|
|
30
|
+
src/django_codemod/visitors/forms.py
|
|
31
|
+
src/django_codemod/visitors/html.py
|
|
32
|
+
src/django_codemod/visitors/http.py
|
|
33
|
+
src/django_codemod/visitors/lru_cache.py
|
|
34
|
+
src/django_codemod/visitors/models.py
|
|
35
|
+
src/django_codemod/visitors/os_utils.py
|
|
36
|
+
src/django_codemod/visitors/paginator.py
|
|
37
|
+
src/django_codemod/visitors/postgres_fields.py
|
|
38
|
+
src/django_codemod/visitors/shortcuts.py
|
|
39
|
+
src/django_codemod/visitors/signals.py
|
|
40
|
+
src/django_codemod/visitors/template_context.py
|
|
41
|
+
src/django_codemod/visitors/template_tags.py
|
|
42
|
+
src/django_codemod/visitors/timezone.py
|
|
43
|
+
src/django_codemod/visitors/translations.py
|
|
44
|
+
src/django_codemod/visitors/urls.py
|
|
45
|
+
tests/__init__.py
|
|
46
|
+
tests/test_cli.py
|
|
47
|
+
tests/test_e2e.sh
|
|
48
|
+
tests/test_path_utils.py
|
|
49
|
+
tests/visitors/__init__.py
|
|
50
|
+
tests/visitors/base.py
|
|
51
|
+
tests/visitors/test_admin.py
|
|
52
|
+
tests/visitors/test_base.py
|
|
53
|
+
tests/visitors/test_core.py
|
|
54
|
+
tests/visitors/test_crypto.py
|
|
55
|
+
tests/visitors/test_decorators.py
|
|
56
|
+
tests/visitors/test_encoding.py
|
|
57
|
+
tests/visitors/test_exceptions.py
|
|
58
|
+
tests/visitors/test_forms.py
|
|
59
|
+
tests/visitors/test_html.py
|
|
60
|
+
tests/visitors/test_http.py
|
|
61
|
+
tests/visitors/test_lru_cache.py
|
|
62
|
+
tests/visitors/test_models.py
|
|
63
|
+
tests/visitors/test_os_utils.py
|
|
64
|
+
tests/visitors/test_paginator.py
|
|
65
|
+
tests/visitors/test_postgres_fields.py
|
|
66
|
+
tests/visitors/test_shortcuts.py
|
|
67
|
+
tests/visitors/test_signals.py
|
|
68
|
+
tests/visitors/test_template_context.py
|
|
69
|
+
tests/visitors/test_template_tags.py
|
|
70
|
+
tests/visitors/test_timezone.py
|
|
71
|
+
tests/visitors/test_translations.py
|
|
72
|
+
tests/visitors/test_urls.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
django_codemod
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.2"
|
|
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
|
{django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/postgres_fields.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_codemod-2.2.2 → django_codemod-2.3.0}/src/django_codemod/visitors/template_context.py
RENAMED
|
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
|