Skip to content

Commit d417365

Browse files
committed
Refactor dev dependencies lists and remove tox
1 parent 280efee commit d417365

5 files changed

Lines changed: 24 additions & 40 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ jobs:
6767
python-version: ${{ matrix.python-version }}
6868
- name: Run tests
6969
run: |
70-
pip install ".[test]"
71-
tox
70+
pip install ".[unit-test]"
71+
make test-unit

‎AGENTS.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
## Source of Truth
44

55
- This is the official synchronous Python SDK for the Linode API. Supported
6-
Python versions come from [pyproject.toml](pyproject.toml) (`>=3.10`); do not
7-
infer support from the older environment names still present in [tox.ini](tox.ini).
6+
Python versions come from [pyproject.toml](pyproject.toml) (`>=3.10`).
87
- Make changes only in canonical source trees such as `linode_api4/`, `test/`,
98
`docs/`, `examples/`, and `.github/`. Do not edit generated copies or output in
109
`build/`, `dist/`, `docs/build/`, `docs/_build/`, or `linode_api4.egg-info/`.

‎README.rst‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,13 @@ Tests
102102
-----
103103

104104
Tests live in the ``test`` directory. When invoking tests, make sure you are
105-
in the root directory of this project. To run the full suite across all
106-
supported python versions, use tox_:
105+
in the root directory of this project. Install unit-test dependencies and run
106+
the mocked unit suite with:
107107

108108
.. code-block:: shell
109109
110-
tox
111-
112-
Running tox also runs pylint and coverage reports.
110+
python3 -m pip install -e ".[unit-test]"
111+
make test-unit
113112
114113
The test suite uses fixtures stored as JSON in ``test/fixtures``. These files
115114
contain sanitized JSON responses from the API - the file name is the URL called
@@ -131,8 +130,6 @@ from the api base url that should be returned, for example::
131130
linode = self.client.linode.instance_create('g6-standard-2', 'us-east')
132131
self.assertEqual(linode.id, 123) # passes
133132

134-
.. _tox: http://tox.readthedocs.io
135-
136133

137134
Integration Tests
138135
-----------------

‎pyproject.toml‎

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,32 +35,37 @@ dependencies = ["requests", "polling", "deprecated"]
3535
dynamic = ["version"]
3636

3737
[project.optional-dependencies]
38-
test = ["tox>=4.4.0"]
39-
40-
dev = [
41-
"tox>=4.4.0",
42-
"mock>=5.0.0",
38+
test-shared = [
4339
"pytest>=7.3.1",
4440
"httpretty>=1.1.4",
41+
"pytest-rerunfailures",
42+
]
43+
unit-test = [
44+
"linode_api4[test-shared]",
45+
"mock>=5.0.0",
46+
]
47+
int-test = [
48+
"linode_api4[test-shared]",
49+
]
50+
lint = [
4551
"black>=23.1.0",
4652
"isort>=5.12.0",
4753
"autoflake>=2.0.1",
4854
"pylint",
4955
"twine>=4.0.2",
5056
"build>=0.10.0",
51-
"Sphinx>=6.0.0",
52-
"sphinx-autobuild>=2021.3.14",
53-
"sphinxcontrib-fulltoc>=1.2.0",
54-
"build>=0.10.0",
55-
"twine>=4.0.2",
56-
"pytest-rerunfailures",
5757
]
58-
5958
doc = [
6059
"Sphinx>=6.0.0",
6160
"sphinx-autobuild>=2021.3.14",
6261
"sphinxcontrib-fulltoc>=1.2.0",
6362
]
63+
dev = [
64+
"linode_api4[unit-test]",
65+
"linode_api4[int-test]",
66+
"linode_api4[lint]",
67+
"linode_api4[doc]",
68+
]
6469

6570
[project.urls]
6671
Homepage = "https://github.com/linode/linode_api4-python"

‎tox.ini‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)