Skip to content

Commit f4b7792

Browse files
author
zhenwei-li
committed
to add tox
1 parent c45bfff commit f4b7792

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Python-DeMo
22

3-
Python DeMo
3+
![Python Logo](https://www.python.org/static/community_logos/python-logo.png "Python DeMo")
44

55
- [一. 构建`venv`环境](#一-构建venv环境)
66
- [1.1 venv2](#11-venv2)

tox.ini

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# tox (https://tox.readthedocs.io/) is a tool for running tests
2+
# in multiple virtualenvs. This configuration file will run the
3+
# test suite on all supported python versions. To use it, "pip install tox"
4+
# and then run "tox" from this directory.
5+
# For information see https://tox.readthedocs.io/en/latest/examples.html
6+
7+
[tox]
8+
envlist = py27, py39
9+
10+
minversion = 3.23.1
11+
12+
# Activate isolated build environment. tox will use a virtual environment
13+
# to build a source distribution from the source tree. For build tools and
14+
# arguments use the pyproject.toml file as specified in PEP-517 and PEP-518.
15+
isolated_build = true
16+
17+
# install testing framework
18+
# ... or install anything else you might need here
19+
[testenv]
20+
platform = linux: linux
21+
macos: darwin
22+
windows: win32
23+
; alwayscopy = True
24+
allowlist_externals =
25+
/bin/bash
26+
changedir =
27+
tests
28+
deps =
29+
build
30+
discover
31+
commands =
32+
; windows: python --version
33+
; macos,linux: python --version
34+
discover
35+
; python -m unittest discover

0 commit comments

Comments
 (0)