Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
  • Loading branch information
gaborbernat committed Dec 29, 2022
1 parent 95a57f2 commit 274e565
Show file tree
Hide file tree
Showing 37 changed files with 398 additions and 412 deletions.
30 changes: 0 additions & 30 deletions .coveragerc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Thanks for contributing, make sure you address all the checklists (for details on how see [development documentation](https://virtualenv.pypa.io/en/latest/development.html#development))!
### Thanks for contributing, make sure you address all the checklists (for details on how see [development documentation](https://virtualenv.pypa.io/en/latest/development.html#development))

- [ ] ran the linter to address style issues (`tox -e fix_lint`)
- [ ] wrote descriptive pull request text
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,43 @@ jobs:
- "3.9"
- "3.8"
- "3.7"
- "3.6"
- pypy-3.9
- pypy-3.8
- pypy-3.7
os:
- ubuntu-20.04
- macos-12
- windows-2022
exclude:
- { os: macos-12, py: "pypy-3.6" } # PyPy 3.6 does not support macOS 11/12
include:
- { os: macos-12, py: "brew@3.9" }
- { os: macos-12, py: "brew@3.8" }
steps:
- uses: taiki-e/install-action@cargo-binstall
- name: Install OS dependencies
run: |
set -x
for i in 1 2 3; do
echo "try $i" && \
${{ runner.os == 'Linux' && 'sudo apt-get update -y && sudo apt-get install snapd fish csh -y' || true }} && \
${{ runner.os == 'Linux' && 'cargo binstall -y nu' || true }} && \
${{ runner.os == 'macOS' && 'brew install fish tcsh nushell' || true }} && \
${{ runner.os == 'Windows' && 'choco install nushell' || true }} && \
exit 0 || true;
sleep 1
done
exit 1
shell: bash
- name: Setup python for tox
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install tox
run: python -m pip install tox pip -U
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use local virtualenv for tox
run: python -m pip install .
- name: Install Python 2 for cross test
uses: actions/setup-python@v4
with:
Expand All @@ -78,13 +84,6 @@ jobs:
with Path(os.environ["GITHUB_ENV"]).open("ta") as file_handler:
file_handler.write(env)
shell: python
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install tox
run: python -m pip install tox
- name: Use local virtualenv for tox
run: python -m pip install .
- name: Setup test suite
run: tox -vv --notest
- name: Run test suite
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ dist
/pip-wheel-metadata
/src/virtualenv/version.py
/src/virtualenv/out
venv*
.python-version

*wheel-store*
Expand Down
10 changes: 10 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
MD013:
code_blocks: false
headers: false
line_length: 120
tables: false

MD046:
style: fenced
no-emphasis-as-header: false
first-line-h1: false
143 changes: 80 additions & 63 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,64 +1,81 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.1
hooks:
- id: pyupgrade
args: ["--py36-plus"]
exclude: "^(src/virtualenv/create/via_global_ref/_virtualenv.py|src/virtualenv/create/via_global_ref/builtin/python2/site.py|src/virtualenv/discovery/py_info.py|tasks/__main__zipapp.py)$"
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.4
hooks:
- id: pyupgrade
files: "^(src/virtualenv/create/via_global_ref/_virtualenv.py|src/virtualenv/create/via_global_ref/builtin/python2/site.py|src/virtualenv/discovery/py_info.py|tasks/__main__zipapp.py)$"
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
args: [--safe]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black==22.10]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: rst-backticks
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: "0.5.2"
hooks:
- id: tox-ini-fmt
args: ["-p", "fix_lint"]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
hooks:
- id: setup-cfg-fmt
args: [--min-py3-version, "3.6 ", "--max-py-version", "3.10"]
- repo: https://github.com/PyCQA/flake8
rev: "5.0.4"
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==22.10.27
- flake8-comprehensions==3.10.1
- flake8-pytest-style==1.6
- flake8-spellcheck==0.28
- flake8-unused-arguments==0.0.12
- flake8-noqa==1.3
- pep8-naming==0.13.2
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0
hooks:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.1
hooks:
- id: pyupgrade
args: ["--py37-plus"]
exclude: "^(src/virtualenv/create/via_global_ref/_virtualenv.py|src/virtualenv/create/via_global_ref/builtin/python2/site.py|src/virtualenv/discovery/py_info.py|tasks/__main__zipapp.py)$"
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.4
hooks:
- id: pyupgrade
files: "^(src/virtualenv/create/via_global_ref/_virtualenv.py|src/virtualenv/create/via_global_ref/builtin/python2/site.py|src/virtualenv/discovery/py_info.py|tasks/__main__zipapp.py)$"
- repo: https://github.com/PyCQA/isort
rev: 5.11.4
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
args: [--safe]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black==22.12]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: rst-backticks
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: "0.5.2"
hooks:
- id: tox-ini-fmt
args: ["-p", "fix"]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==22.12.6
- flake8-comprehensions==3.10.1
- flake8-pytest-style==1.6
- flake8-spellcheck==0.28
- flake8-unused-arguments==0.0.12
- flake8-noqa==1.3
- pep8-naming==0.13.3
- flake8-pyproject==1.2.2
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
additional_dependencies:
- prettier@3.0.0-alpha.4
- "@prettier/plugin-xml@2.2"
args: ["--print-width=120", "--prose-wrap=always"]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.2
hooks:
- id: markdownlint
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
11 changes: 0 additions & 11 deletions MANIFEST.in

This file was deleted.

43 changes: 22 additions & 21 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ run:

.. code-block:: console
tox -e fix_lint
tox -e fix
.. note::

Expand Down
6 changes: 3 additions & 3 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ 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.

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
Expand Down
Loading

0 comments on commit 274e565

Please sign in to comment.