Skip to content

Commit 8271559

Browse files
committed
Rename extras for tests
Should be "tests" instead of "test" because we also have "docs" and because we use the name "Tests" for the test directories.
1 parent 0bd6314 commit 8271559

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

.github/workflows/test-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install .[test]
23+
pip install .[tests]
2424
- name: Lint with flake8
2525
run: |
2626
flake8 webware setup.py --count --exit-zero --statistics

docs/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ When installing Webware for Python 3, the following "extras" can optionally be i
5757

5858
On your development machine, we recommend installing the full "test" environment which also includes the other two environments. To do that, you need to specify the "Extras" name in square brackets when installing Webware for Python 3::
5959

60-
pip install "Webware-for-Python[test]>=3a"
60+
pip install "Webware-for-Python[tests]>=3a"
6161

6262

6363
Installation from Source

docs/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The unit tests and end to end tests for Webware for Python can be found in the `
1313

1414
Before running the test suite, install Webware for Python into a virtual environment and activate that environment. While developing and testing Webware, it is recommended to install Webware in editable mode. To do this, unpack the source installation package of Webware for Python 3, and run this command in the directory containing the ``setup.py`` file::
1515

16-
pip install -e .[test]
16+
pip install -e .[tests]
1717

1818
Next, change into the directory containing the main Webware package::
1919

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
requireExamples = [
2020
'Pygments>=2,<3', 'Pillow>=6,<8', 'dominate>=2,<3', 'yattag>=1,<2'
2121
]
22-
requireTest = [
22+
requireTests = [
2323
'psutil>=5,<6', 'flake8>=3.7,<4', 'pylint>=2.4,<3', 'tox>=3.14,<4',
2424
'pywin32>=227,<300;sys_platform=="win32"'
2525
] + requireDev + requireDocs + requireExamples
@@ -54,7 +54,7 @@
5454
'dev': requireDev,
5555
'docs': requireDocs,
5656
'examples': requireExamples,
57-
'test': requireTest,
57+
'tests': requireTests,
5858
},
5959
entry_points={
6060
'console_scripts': [

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ commands =
1515

1616
[testenv:docs]
1717
basepython = python3.8
18-
deps =
19-
sphinx>=2.3,<3
20-
sphinx_rtd_theme>=0.4
18+
extras =
19+
docs
2120
commands =
2221
sphinx-build -b html -nEW docs docs/_build/html
2322

0 commit comments

Comments
 (0)