Skip to content

Commit b35c5e2

Browse files
committed
chores(modules): remove deprecated libraries support
1 parent f9619af commit b35c5e2

File tree

23 files changed

+10
-853
lines changed

23 files changed

+10
-853
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
python -m pip install --upgrade pip
2929
pip install -e ".[dev]"
3030
pip install sphinx
31-
pip install Werkzeug
32-
pip install tornado
3331
3432
3533
- name: Run linting (flake8)

.github/workflows/test-extras.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ jobs:
1818
matrix:
1919
python-version: ['3.9', '3.11']
2020
extras:
21-
- 'tornado'
2221
- 'flask'
2322
- 'jinja2'
2423
- 'redis'
25-
- 'twisted'
26-
- 'tornado,flask,jinja2'
24+
- 'flask,jinja2'
2725

2826
steps:
2927
- uses: actions/checkout@v4
@@ -48,9 +46,9 @@ jobs:
4846
4947
# Define which tests require which packages
5048
EXTRA_TEST_REQUIREMENTS = {
51-
'tests.ioc.extra.tornado.test_handler': ['tornado'],
52-
'tests.ioc.extra.tornado.test_router': ['tornado', 'werkzeug'],
53-
'tests.ioc.extra.jinja.test_helper': ['jinja2'],
49+
'tests.ioc_test.extra.jinja.test_helper': ['jinja2'],
50+
'tests.ioc_test.extra.flask': ['flask'],
51+
'tests.ioc_test.extra.redis': ['redis'],
5452
}
5553
5654
def check_module_available(module_name):

.github/workflows/tests.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,12 @@ jobs:
7171
matrix:
7272
python-version: ['3.9', '3.11']
7373
include:
74-
- extras: 'tornado'
75-
test_module: 'tests.ioc.extra.tornado'
7674
- extras: 'flask'
77-
test_module: 'tests.ioc.extra.flask'
75+
test_module: 'tests.ioc_test.extra.flask'
7876
- extras: 'jinja2'
79-
test_module: 'tests.ioc.extra.jinja'
77+
test_module: 'tests.ioc_test.extra.jinja'
8078
- extras: 'redis'
81-
test_module: 'tests.ioc.extra.redis'
82-
- extras: 'twisted'
83-
test_module: 'tests.ioc.extra.twisted'
79+
test_module: 'tests.ioc_test.extra.redis'
8480

8581
steps:
8682
- uses: actions/checkout@v4
@@ -112,16 +108,12 @@ jobs:
112108
missing = []
113109
for extra in extras:
114110
try:
115-
if extra == 'tornado':
116-
import tornado
117-
elif extra == 'flask':
111+
if extra == 'flask':
118112
import flask
119113
elif extra == 'jinja2':
120114
import jinja2
121115
elif extra == 'redis':
122116
import redis
123-
elif extra == 'twisted':
124-
import twisted
125117
except ImportError:
126118
missing.append(extra)
127119
@@ -158,7 +150,7 @@ jobs:
158150
- name: Install all dependencies
159151
run: |
160152
python -m pip install --upgrade pip
161-
pip install -e ".[tornado,flask,jinja2,redis,twisted,dev]"
153+
pip install -e ".[flask,jinja2,redis,dev]"
162154
163155
- name: Create smart test runner
164156
run: |
@@ -169,11 +161,9 @@ jobs:
169161
170162
# Map test modules to their requirements
171163
OPTIONAL_DEPS = {
172-
'tornado': ['tornado', 'werkzeug'],
173-
'flask': ['flask', 'werkzeug'],
164+
'flask': ['flask'],
174165
'jinja2': ['jinja2'],
175166
'redis': ['redis'],
176-
'twisted': ['twisted'],
177167
}
178168
179169
def is_module_available(module_name):

docs/extra/twisted.rst

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

ioc/extra/stats/__init__.py

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

ioc/extra/stats/di.py

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

ioc/extra/stats/resources/config/stats.yml

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

ioc/extra/stats/resources/templates/index.html

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

ioc/extra/stats/resources/templates/parameters.html

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

ioc/extra/stats/resources/templates/services.html

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

0 commit comments

Comments
 (0)