Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit e2c43e7

Browse files
authored
drop python < 3.5 support, update vulnerable deps (#202)
- have to add new python requirements to lock to a non-vulnerable verison of urllib3 - increase python requirement to drop django 1 - fix new lint warning
1 parent 84b810b commit e2c43e7

File tree

6 files changed

+345
-478
lines changed

6 files changed

+345
-478
lines changed

.circleci/config.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,7 @@ jobs:
1515
- checkout
1616
- python/install-packages:
1717
pkg-manager: poetry
18-
- when:
19-
condition:
20-
equal:
21-
- "2.7"
22-
- << parameters.python-version >>
23-
steps:
24-
- run: poetry run pylint --ignore=aiotrace.py,test_async.py,urllib.py,test_urllib.py --rcfile=pylint.rc beeline
25-
- when:
26-
condition:
27-
not:
28-
equal:
29-
- "2.7"
30-
- << parameters.python-version >>
31-
steps:
32-
- run: poetry run pylint --rcfile=pylint.rc beeline
18+
- run: poetry run pylint --rcfile=pylint.rc beeline
3319
- run: poetry run pycodestyle beeline --max-line-length=140
3420

3521
test:
@@ -103,7 +89,6 @@ workflows:
10389
matrix: &matrix
10490
parameters:
10591
python-version:
106-
- "2.7"
10792
- "3.5"
10893
- "3.6"
10994
- "3.7"

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ If you haven't used pyenv or poetry before, see https://blog.jayway.com/2019/12/
3232
- `poetry shell` will get you a shell with the current virtualenv.
3333

3434
* Switch python version by using the PYENV_VERSION environment variable to toggle between multiple python versions for testing
35-
- `export PYENV_VERSION=2.7.18` to set the Python virtualenv to 2.7.18
36-
- It is generally a good idea to test in both Python 2.7.18 as well as the latest released 3.x version. Our CircleCI configuration tests in 2.7 and all currently supported versions of Python 3.x.
35+
- `export PYENV_VERSION=3.10.1` to set the Python virtualenv to 3.10.1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ This package makes it easy to instrument your Python web application to send use
1010

1111
## Compatible with
1212

13-
Currently supports Django (>1.10), Flask, Bottle, and Tornado.
13+
Currently, supports Django (>2), Flask, Bottle, and Tornado.
1414

15-
Compatible with both Python 2.7 and Python 3.
15+
Compatible with Python 3.
1616

1717
## Get in touch
1818

beeline/trace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def _run_hooks_and_send(self, span):
334334

335335
class SynchronousTracer(Tracer):
336336
def __init__(self, client):
337-
super(SynchronousTracer, self).__init__(client)
337+
super().__init__(client)
338338
self._state = threading.local()
339339

340340
@property

0 commit comments

Comments
 (0)