8000 feat(dev): enable gitpod development (#238) · pypa/readme_renderer@cb717bf · GitHub
[go: up one dir, main page]

Skip to content

Commit cb717bf

Browse files
authored
10000
feat(dev): enable gitpod development (#238)
Use the initalization phase to install all of the Python versions and run the tests on startup, making subsequent test runs faster. Signed-off-by: Mike Fiedler <miketheman@gmail.com>
1 parent 68a9df9 commit cb717bf

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.gitpod.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://www.gitpod.io/docs/references/gitpod-yml for full reference
2+
3+
tasks:
4+
- name: Setup Development and run Tests
5+
6+
init: |
7+
# Upgrade pyenv itself
8+
pyenv update
9+
10+
export PY_VERSIONS="3.7 3.8 3.9 3.10"
11+
12+
# Install all supported Python versions
13+
for py in $PY_VERSIONS;
14+
do pyenv install "$py":latest --skip-existing ;
15+
done
16+
17+
# Make versions available via $PATH, exclude GitPod default
18+
pyenv global $(pyenv versions --bare | grep -v 3.8.13)
19+
20+
# Install `tox` test orchestrator
21+
pip install tox
22+
23+
command: tox

pyproject.toml

Lines changed: 4 additions & 0 deletions
7AC5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
requires = ["setuptools>=40.8.0", "wheel", "bleach>=2.1.0", "docutils>=0.13.1", "Pygments>=2.5.1"]
33
build-backend = "setuptools.build_meta:__legacy__"
44

5+
# TODO: Remove when https://github.com/mgedmin/check-manifest/pull/155 released
6+
[tool.check-manifest]
7+
ignore = [".gitpod.yml"]
8+
59
[tool.mypy]
610
strict = true
711
warn_unused_configs = true

0 commit comments

Comments
 (0)
0