Skip to content

Commit e7621c8

Browse files
authored
Merge pull request #21 from TankerHQ/dm/drop-old-pythons
Drop support for old Python versions (2.7, 3.4)
2 parents 71c6eaa + 98c0b28 commit e7621c8

4 files changed

Lines changed: 7 additions & 41 deletions

File tree

.github/workflows/checks.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,6 @@ jobs:
2222
- name: Run tests
2323
run: dmenv run -- pytest
2424

25-
python34:
26-
runs-on: ubuntu-16.04
27-
steps:
28-
- uses: actions/checkout@v1
29-
- name: Set up Python 3.4
30-
uses: actions/setup-python@v1
31-
with:
32-
python-version: 3.4
33-
- name: Install dmenv
34-
uses: TankerHQ/dmenv-install-action@v1.0.0
35-
with:
36-
dmenv-version: 0.20.0
37-
- name: Prepare project for development
38-
run: dmenv install
39-
- name: Run tests
40-
run: dmenv run -- pytest
41-
42-
python2:
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@v1
46-
- name: Set up Python 2.7
47-
uses: actions/setup-python@v1
48-
with:
49-
python-version: 2.7
50-
- name: Install dependencies
51-
run: pip install -r requirements.lock
52-
- name: Run tests
53-
run: pytest
54-
5525
coverage:
5626
runs-on: ubuntu-latest
5727
steps:

Changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.2.2
2+
===
3+
4+
* Drop Python2 support
5+
* Drop Python 3.4 support
6+
17
1.2.1
28
===
39

setup.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,8 @@ def get_long_description():
1515
author="Kontrol SAS",
1616
packages=find_packages(),
1717
install_requires=["PyNaCl"],
18-
extras_require={
19-
"dev": [
20-
"codecov",
21-
"pytest",
22-
"pytest-cov",
23-
"twine",
24-
],
25-
},
18+
extras_require={"dev": ["codecov", "pytest", "pytest-cov", "twine"]},
2619
classifiers=[
27-
"Programming Language :: Python :: 2.7",
28-
"Programming Language :: Python :: 3.4",
2920
"Programming Language :: Python :: 3.5",
3021
"Programming Language :: Python :: 3.6",
3122
"Programming Language :: Python :: 3.7",

tankersdk_identity/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def _hash_user_id(app_id, user_id):
2020

2121
def _generate_app_id(app_secret):
2222
public_key = app_secret[APP_SECRET_SIZE - APP_PUBLIC_KEY_SIZE:APP_SECRET_SIZE]
23-
# A bit convoluted, to make it work with python 2.7
2423
to_hash = bytes(bytearray([APP_CREATION_NATURE] + [0] * AUTHOR_SIZE)) + public_key
2524
return tankersdk_identity.crypto.generichash(to_hash, size=BLOCK_HASH_SIZE)
2625

0 commit comments

Comments
 (0)