Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit 54d96ab

Browse files
committed
Upgrade nox
Package nox-automation is not being maintained. Update noxfile.py syntax for new version
1 parent 6e236e9 commit 54d96ab

File tree

5 files changed

+11
-17
lines changed

5 files changed

+11
-17
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ before_install:
55
- sudo apt-get -qq update
66
- sudo apt-get install -y portaudio19-dev libffi-dev libssl-dev
77
install:
8-
- pip install nox-automation
8+
- pip install nox
99
script:
10-
- nox -f google-assistant-grpc/nox.py -s lint
11-
- nox -f google-assistant-sdk/nox.py -s lint unittest
10+
- nox -f google-assistant-grpc/noxfile.py -s lint
11+
- nox -f google-assistant-sdk/noxfile.py -s lint unittest

google-assistant-grpc/MAINTAINER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Maintainer guide
55

66
- Install automation tools
77

8-
pip install --upgrade nox-automation
8+
pip install --upgrade nox
99

1010
## Tasks
1111

google-assistant-grpc/nox.py renamed to google-assistant-grpc/noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
import nox
1818

1919

20-
@nox.session
20+
@nox.session(python=["3"])
2121
def lint(session):
22-
session.interpreter = 'python3'
2322
session.install('pip', 'setuptools')
2423
session.install('docutils', 'flake8', 'readme_renderer')
2524
session.run('flake8', 'nox.py', 'setup.py')

google-assistant-sdk/MAINTAINER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Maintainer guide
55

66
- Install automation tools
77

8-
pip install --upgrade nox-automation
8+
pip install --upgrade nox
99

1010
## Tasks
1111

google-assistant-sdk/nox.py renamed to google-assistant-sdk/noxfile.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
import nox
1717

1818

19-
@nox.session
19+
@nox.session(python=["3"])
2020
def lint(session):
21-
session.interpreter = 'python3'
2221
session.install('pip', 'setuptools')
2322
session.install('docutils', 'flake8', 'readme_renderer')
2423
session.run('flake8',
@@ -29,21 +28,17 @@ def lint(session):
2928
session.run('python', '-m', 'json.tool', 'actions.json')
3029

3130

32-
@nox.session
33-
@nox.parametrize('python_version', ['2.7', '3'])
34-
def unittest(session, python_version):
35-
session.interpreter = 'python' + python_version
31+
@nox.session(python=['2.7', '3'])
32+
def unittest(session):
3633
session.install('pip', 'setuptools')
3734
session.install('pytest', 'future')
3835
session.install('../google-assistant-grpc/')
3936
session.install('-e', '.[samples]')
4037
session.run('py.test', '-k', 'not test_endtoend', 'tests')
4138

4239

43-
@nox.session
44-
@nox.parametrize('python_version', ['2.7', '3'])
45-
def endtoend_test(session, python_version):
46-
session.interpreter = 'python' + python_version
40+
@nox.session(python=['2.7', '3'])
41+
def endtoend_test(session):
4742
session.install('pip', 'setuptools')
4843
session.install('pytest', 'future')
4944
session.install('../google-assistant-grpc/')

0 commit comments

Comments
 (0)