summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBernát Gábor <gaborjbernat@gmail.com>2022-12-29 20:25:07 -0800
committerGitHub <noreply@github.com>2022-12-29 20:25:07 -0800
commite7fa1c2b4bbbe7495077e5f2146dca9c369b08d7 (patch)
tree4262eb520549529a7f5275e82fdf4cb4baf593aa /docs
parent95a57f2ab796c22ab8c0644ba6f9334fe5d5ca67 (diff)
downloadvirtualenv-e7fa1c2b4bbbe7495077e5f2146dca9c369b08d7.tar.gz
Move to hatchling, drop 3.6 support (#2474)
Diffstat (limited to 'docs')
-rw-r--r--docs/_static/custom.css43
-rw-r--r--docs/conf.py2
-rw-r--r--docs/development.rst2
-rw-r--r--docs/installation.rst13
-rw-r--r--docs/render_cli.py8
5 files changed, 33 insertions, 35 deletions
diff --git a/docs/_static/custom.css b/docs/_static/custom.css
index 7efa026..6893373 100644
--- a/docs/_static/custom.css
+++ b/docs/_static/custom.css
@@ -1,64 +1,65 @@
.wy-nav-content {
- padding: 1em;
+ padding: 1em;
}
#virtualenv img {
- margin-bottom: 6px;
+ margin-bottom: 6px;
}
/* Allow table content to wrap around */
-.wy-table-responsive table th, .wy-table-responsive table td {
- /* !important because RTD has conflicting stylesheets */
- white-space: normal !important;
- padding: 8px 6px !important;
+.wy-table-responsive table th,
+.wy-table-responsive table td {
+ /* !important because RTD has conflicting stylesheets */
+ white-space: normal !important;
+ padding: 8px 6px !important;
}
.wy-table-responsive table {
- width: 100%;
- margin-left: 0 !important;
+ width: 100%;
+ margin-left: 0 !important;
}
.rst-content table.docutils td ol {
- margin-bottom: 0;
+ margin-bottom: 0;
}
.rst-content table.docutils td ul {
- margin-bottom: 0;
+ margin-bottom: 0;
}
.rst-content table.docutils td p {
- margin-bottom: 0;
+ margin-bottom: 0;
}
div[class*="highlight-"] {
- margin-bottom: 12px;
+ margin-bottom: 12px;
}
/* Tweak whitespace on the release history page */
#release-history p {
- margin-bottom: 0;
- margin-top: 0;
+ margin-bottom: 0;
+ margin-top: 0;
}
#release-history h3 {
- margin-bottom: 6px;
+ margin-bottom: 6px;
}
#release-history ul {
- margin-bottom: 12px;
+ margin-bottom: 12px;
}
#release-history ul ul {
- margin-bottom: 0;
- margin-top: 0;
+ margin-bottom: 0;
+ margin-top: 0;
}
#release-history h2 {
- margin-bottom: 12px;
+ margin-bottom: 12px;
}
/* Reduce whitespace on the inline-code snippets and add softer corners */
.rst-content code {
- padding: 2px 3px;
- border-radius: 3px;
+ padding: 2px 3px;
+ border-radius: 3px;
}
diff --git a/docs/conf.py b/docs/conf.py
index 0f39331..26fef79 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -62,7 +62,7 @@ def generate_draft_news():
new = subprocess.check_output(
[sys.executable, "-m", "towncrier", "--draft", "--version", "NEXT"],
cwd=root,
- universal_newlines=True,
+ text=True,
)
dest = root / "docs" / "_draft.rst"
dest.write_text("" if "No significant changes" in new else new)
diff --git a/docs/development.rst b/docs/development.rst
index 36d8cba..ef5b75e 100644
--- a/docs/development.rst
+++ b/docs/development.rst
@@ -83,7 +83,7 @@ run:
.. code-block:: console
- tox -e fix_lint
+ tox -e fix
.. note::
diff --git a/docs/installation.rst b/docs/installation.rst
index 57e57d9..eebac4d 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -64,13 +64,6 @@ supporting Python 2.7 use
If you are looking for past version of virtualenv.pyz they are available here:
https://github.com/pypa/get-virtualenv/blob/<virtualenv version>/public/<python version>/virtualenv.pyz?raw=true
-via ``setup.py``
-----------------
-We don't recommend and officially support this method. One should prefer using an installer that supports
-`PEP-517 <https://www.python.org/dev/peps/pep-0517/>`_ interface, such as pip ``19.0.0`` or later. That being said you
-might be able to still install a package via this method if you satisfy build dependencies before calling the install
-command (as described under :ref:`sdist`).
-
latest unreleased
-----------------
Installing an unreleased version is discouraged and should be only done for testing purposes. If you do so you'll need
@@ -88,8 +81,8 @@ Python and OS Compatibility
virtualenv works with the following Python interpreter implementations:
-- `CPython <https://www.python.org/>`_ versions 2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10
-- `PyPy <https://pypy.org/>`_ 2.7, 3.6, 3.7, 3.8, 3.9
+- `CPython <https://www.python.org/>`_ versions 3.7, 3.8, 3.9, 3.10, 3.11, 3.12
+- `PyPy <https://pypy.org/>`_ 3.7, 3.8, 3.9
This means virtualenv works on the latest patch version of each of these minor versions. Previous patch versions are
supported on a best effort approach.
@@ -97,7 +90,7 @@ supported on a best effort approach.
CPython is shipped in multiple forms, and each OS repackages it, often applying some customization along the way.
Therefore we cannot say universally that we support all platforms, but rather specify some we test against. In case
of ones not specified here the support is unknown, though likely will work. If you find some cases please open a feature
-request on our issue tracker. Note, as of ``20.16.0`` we no longer support running under Python less than 3.6, however
+request on our issue tracker. Note, as of ``20.18.0`` we no longer support running under Python less than 3.7, however
we still support creating environments for 2.7 and 3.5.
Linux
diff --git a/docs/render_cli.py b/docs/render_cli.py
index e45a37e..ca75e41 100644
--- a/docs/render_cli.py
+++ b/docs/render_cli.py
@@ -76,12 +76,16 @@ class CliTable(SphinxDirective):
return True
elif key == "creator":
if name == "venv":
- from virtualenv.create.via_global_ref.venv import ViaGlobalRefMeta
+ from virtualenv.create.via_global_ref.venv import (
+ ViaGlobalRefMeta,
+ )
meta = ViaGlobalRefMeta()
meta.symlink_error = None
return meta
- from virtualenv.create.via_global_ref.builtin.via_global_self_do import BuiltinViaGlobalRefMeta
+ from virtualenv.create.via_global_ref.builtin.via_global_self_do import (
+ BuiltinViaGlobalRefMeta,
+ )
meta = BuiltinViaGlobalRefMeta()
meta.symlink_error = None