Skip to content

Commit 22c14bf

Browse files
adammcmasterlcjohnsoyuenmichelle1
authored
Drop support for Python 2 and remove dependency on future (#330)
* Drop support for Python 2 and remove dependency on future. * Update README to reference removal of Python 2 support. --------- Co-authored-by: Cliff Johnson <cliff@zooniverse.org> Co-authored-by: yuenmichelle1 <michelle.dano.yuen@gmail.com>
1 parent 78b1cea commit 22c14bf

27 files changed

+6
-84
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.8.0 (TBD)
2+
- Change: Drop support for Python 2 and remove dependency on future.
3+
14
## 1.7.1 (2025-06-24)
25
- New: Track logged in user
36
- Fix: Batch aggregation links updated

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN apk --no-cache add libmagic
44

55
WORKDIR /usr/src/panoptes-python-client
66

7-
COPY setup.py .
7+
COPY setup.py README.md .
88

99
RUN pip install .[testing,docs]
1010

Dockerfile.dev2

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

Dockerfile.stable2

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

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ Upgrade an existing installation:
3030
$ pip install -U panoptes-client
3131
```
3232

33-
The Panoptes Client is supported on all versions of Python 2 and 3, from Python
34-
2.7 onwards.
33+
The Panoptes Client is supported on all versions of Python 3 onwards.
3534

3635
## Usage Examples
3736

@@ -61,12 +60,10 @@ for information about how you can get involved.
6160

6261
### Running the Tests
6362

64-
You can run the tests with Docker. This will run them under Python 3 and Python
65-
2:
63+
You can run the tests with Docker. This will run them under Python 3:
6664

6765
```
6866
docker-compose build tests && docker-compose run tests
69-
docker-compose build tests2 && docker-compose run tests2
7067
```
7168

7269
Or you can run them directly in Python with:

docker-compose.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,3 @@ services:
2727
- ${HOME}/.panoptes/:/root/.panoptes/
2828
- ${HOME}:${HOME}
2929
command: python -m unittest discover
30-
31-
dev2:
32-
build:
33-
context: ./
34-
dockerfile: Dockerfile.dev2
35-
volumes:
36-
- ${HOME}/.panoptes/:/root/.panoptes/
37-
- ${HOME}:${HOME}
38-
environment:
39-
- PANOPTES_DEBUG=true
40-
41-
tests2:
42-
build:
43-
context: ./
44-
dockerfile: Dockerfile.dev2
45-
volumes:
46-
- ${HOME}/.panoptes/:/root/.panoptes/
47-
- ${HOME}:${HOME}
48-
command: python -m unittest discover
49-
50-
stable2:
51-
build:
52-
context: ./
53-
dockerfile: Dockerfile.stable2
54-
volumes:
55-
- ${HOME}/.panoptes/:/root/.panoptes/
56-
- ${HOME}:${HOME}

panoptes_client/classification.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import absolute_import, division, print_function
2-
31
from panoptes_client.panoptes import LinkResolver, PanoptesObject
42

53

panoptes_client/collection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import absolute_import, division, print_function
21
from builtins import str
32

43
from panoptes_client.panoptes import (

panoptes_client/collection_role.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import absolute_import, division, print_function
2-
31
from panoptes_client.panoptes import PanoptesObject, LinkResolver
42

53

panoptes_client/exportable.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import absolute_import, division, print_function
2-
31
import csv
42
import datetime
53
import functools

0 commit comments

Comments
 (0)