Repository: neutrinoceros/wxc (language: python)

Issue:
test_requirements should specified in setup.cfg



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 81d8c5d..baec3d6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,13 +15,9 @@ jobs:
       with:
         python-version: ${{ matrix.python-version }}
     - name: Setup package
-      run: python -m pip install -e .
-    - name: Setup requirements
-      run: python -m pip install -r test_requirements.txt
+      run: python -m pip install -e .[dev]
     - name: Generate coverage report
       run: |
-        python -m pip install toml
-        python -m pip install pytest-cov
         python -m pytest --cov=./ --cov-report=xml
     - name: Upload coverage to Codecov
       uses: codecov/codecov-action@v1
diff --git a/setup.cfg b/setup.cfg
index 7c6bca9..367dc85 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -24,16 +24,25 @@ install_requires =
     stdlib-list>=0.8
 python_requires = >=3.6
 
+[options.packages.find]
+exclude =
+    tests*
+    testing*
+
 [options.entry_points]
 console_scripts =
     pyw=pyw.cli:main
 console_script =
     pyw = pyw.cli:main
 
-[options.packages.find]
-exclude =
-    tests*
-    testing*
+[options.extras_require]
+dev =
+    pytest>=6.0.2
+    pytest-cov
+    pytest_datadir>=1.3.1
+    pytest_mock>=3.5.1
+    schema>=0.7.2
+    toml
 
 [mypy]
 python_version = 3.6


Test patch:
diff --git a/test_requirements.txt b/test_requirements.txt
deleted file mode 100644
index 0f3b2b4..0000000
--- a/test_requirements.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-pytest>=6.0.2
-pytest-datadir>=1.3.1
-pytest-mock>=3.5.1
-schema>=0.7.2