Skip to content

Commit

Permalink
dev-python/requests-credssp: python 3.9 support
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/788670
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Matthew Bakhtiari <dev@mtbk.me>
Closes: #20767
Signed-off-by: Sam James <sam@gentoo.org>
  • Loading branch information
AltF02 authored and thesamesam committed Jun 1, 2021
1 parent d91186a commit 1666f2f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
From b3583f2e959600ea27a2b8577c172c5695ec7f2c Mon Sep 17 00:00:00 2001
From: Matthew <matthewabtin@protonmail.com>
Date: Mon, 10 May 2021 10:36:23 +0000
Subject: [PATCH] Python 3.9 support (#22)

* Python 3.9 support

* Add 3.9 to pipelines
---
azure-pipelines.yml | 8 ++++++++
setup.py | 1 +
2 files changed, 9 insertions(+)

diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index a60bd62..1f0cbde 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -38,6 +38,8 @@ stages:
python.version: 3.7
Python38:
python.version: 3.8
+ Python39:
+ python.version: 3.9

steps:
- task: UsePythonVersion@0
@@ -119,6 +121,12 @@ stages:
Python38-x64:
python.version: 3.8
python.arch: x64
+ Python39-x86:
+ python.version: 3.9
+ python.arch: x86
+ Python39-x64:
+ python.version: 3.9
+ python.arch: x64

steps:
- task: UsePythonVersion@0
diff --git a/setup.py b/setup.py
index ee5268f..49af47b 100644
--- a/setup.py
+++ b/setup.py
@@ -53,5 +53,6 @@ def abs_path(rel_path):
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
],
)
8 changes: 6 additions & 2 deletions dev-python/requests-credssp/requests-credssp-1.2.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{7,8} )
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1

DESCRIPTION="HTTPS CredSSP authentication with the requests library"
Expand All @@ -23,3 +23,7 @@ RDEPEND="dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"

PATCHES=(
"${FILESDIR}/${PN}-1.2.0-python-3.9.patch"
)

0 comments on commit 1666f2f

Please sign in to comment.