infrastructure: Stricter tox dependensies (#8119)
This commit is contained in:
		
							parent
							
								
									902739cfc3
								
							
						
					
					
						commit
						cf1051cfba
					
				| 
						 | 
					@ -165,7 +165,10 @@ jobs:
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        path: ~/.cache/pre-commit
 | 
					        path: ~/.cache/pre-commit
 | 
				
			||||||
        key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
 | 
					        key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
 | 
				
			||||||
    - run: pip install tox
 | 
					    - name: Install dependencies
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        python -m pip install --upgrade pip
 | 
				
			||||||
 | 
					        pip install tox
 | 
				
			||||||
    - run: tox -e linting
 | 
					    - run: tox -e linting
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  deploy:
 | 
					  deploy:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -42,7 +42,7 @@ install_requires =
 | 
				
			||||||
    attrs>=19.2.0
 | 
					    attrs>=19.2.0
 | 
				
			||||||
    iniconfig
 | 
					    iniconfig
 | 
				
			||||||
    packaging
 | 
					    packaging
 | 
				
			||||||
    pluggy>=0.12,<1.0
 | 
					    pluggy>=0.12,<1.0.0a1
 | 
				
			||||||
    py>=1.8.2
 | 
					    py>=1.8.2
 | 
				
			||||||
    toml
 | 
					    toml
 | 
				
			||||||
    atomicwrites>=1.0;sys_platform=="win32"
 | 
					    atomicwrites>=1.0;sys_platform=="win32"
 | 
				
			||||||
| 
						 | 
					@ -52,8 +52,8 @@ python_requires = >=3.6
 | 
				
			||||||
package_dir =
 | 
					package_dir =
 | 
				
			||||||
    =src
 | 
					    =src
 | 
				
			||||||
setup_requires =
 | 
					setup_requires =
 | 
				
			||||||
    setuptools>=40.0
 | 
					    setuptools>=>=42.0
 | 
				
			||||||
    setuptools-scm
 | 
					    setuptools-scm>=3.4
 | 
				
			||||||
zip_safe = no
 | 
					zip_safe = no
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[options.entry_points]
 | 
					[options.entry_points]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										16
									
								
								tox.ini
								
								
								
								
							
							
						
						
									
										16
									
								
								tox.ini
								
								
								
								
							| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
[tox]
 | 
					[tox]
 | 
				
			||||||
isolated_build = True
 | 
					isolated_build = True
 | 
				
			||||||
minversion = 3.5.3
 | 
					minversion = 3.20.0
 | 
				
			||||||
distshare = {homedir}/.tox/distshare
 | 
					distshare = {homedir}/.tox/distshare
 | 
				
			||||||
# make sure to update environment list in travis.yml and appveyor.yml
 | 
					# make sure to update environment list in travis.yml and appveyor.yml
 | 
				
			||||||
envlist =
 | 
					envlist =
 | 
				
			||||||
| 
						 | 
					@ -16,6 +16,7 @@ envlist =
 | 
				
			||||||
    py37-freeze
 | 
					    py37-freeze
 | 
				
			||||||
    docs
 | 
					    docs
 | 
				
			||||||
    docs-checklinks
 | 
					    docs-checklinks
 | 
				
			||||||
 | 
					requires = pip >= 20.3.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[testenv]
 | 
					[testenv]
 | 
				
			||||||
commands =
 | 
					commands =
 | 
				
			||||||
| 
						 | 
					@ -44,19 +45,20 @@ setenv =
 | 
				
			||||||
extras = testing
 | 
					extras = testing
 | 
				
			||||||
deps =
 | 
					deps =
 | 
				
			||||||
    doctesting: PyYAML
 | 
					    doctesting: PyYAML
 | 
				
			||||||
    numpy: numpy
 | 
					    numpy: numpy>=1.19.4
 | 
				
			||||||
    pexpect: pexpect
 | 
					    pexpect: pexpect>=4.8.0
 | 
				
			||||||
    pluggymaster: git+https://github.com/pytest-dev/pluggy.git@master
 | 
					    pluggymaster: git+https://github.com/pytest-dev/pluggy.git@master
 | 
				
			||||||
    pygments
 | 
					    pygments>=2.7.2
 | 
				
			||||||
    unittestextras: twisted
 | 
					    unittestextras: twisted
 | 
				
			||||||
    unittestextras: asynctest
 | 
					    unittestextras: asynctest
 | 
				
			||||||
    xdist: pytest-xdist>=1.13
 | 
					    xdist: pytest-xdist>=2.1.0
 | 
				
			||||||
 | 
					    xdist: -e .
 | 
				
			||||||
    {env:_PYTEST_TOX_EXTRA_DEP:}
 | 
					    {env:_PYTEST_TOX_EXTRA_DEP:}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[testenv:linting]
 | 
					[testenv:linting]
 | 
				
			||||||
skip_install = True
 | 
					skip_install = True
 | 
				
			||||||
basepython = python3
 | 
					basepython = python3
 | 
				
			||||||
deps = pre-commit>=1.11.0
 | 
					deps = pre-commit>=2.9.3
 | 
				
			||||||
commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
 | 
					commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[testenv:docs]
 | 
					[testenv:docs]
 | 
				
			||||||
| 
						 | 
					@ -141,7 +143,7 @@ passenv = *
 | 
				
			||||||
deps =
 | 
					deps =
 | 
				
			||||||
    colorama
 | 
					    colorama
 | 
				
			||||||
    github3.py
 | 
					    github3.py
 | 
				
			||||||
    pre-commit>=1.11.0
 | 
					    pre-commit>=2.9.3
 | 
				
			||||||
    wheel
 | 
					    wheel
 | 
				
			||||||
    towncrier
 | 
					    towncrier
 | 
				
			||||||
commands = python scripts/release.py {posargs}
 | 
					commands = python scripts/release.py {posargs}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue