Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 98a100b

Browse files
authored
Merge pull request #58 from IdentityPython/develop
Allow attributes in Configure instances to be set to none value before assigned a value
2 parents 00bfde9 + 24fcf93 commit 98a100b

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ def run_tests(self):
6262
classifiers=[
6363
"Development Status :: 4 - Beta",
6464
"License :: OSI Approved :: Apache Software License",
65-
"Programming Language :: Python :: 3.6",
6665
"Programming Language :: Python :: 3.7",
6766
"Programming Language :: Python :: 3.8",
67+
"Programming Language :: Python :: 3.9",
68+
"Programming Language :: Python :: 3.10",
6869
"Topic :: Software Development :: Libraries :: Python Modules"],
6970
install_requires=[
7071
"cryptojwt==1.6.1",

src/oidcmsg/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Roland Hedberg"
2-
__version__ = "1.5.4"
2+
__version__ = "1.6.0"
33

44
import os
55
from typing import Dict

src/oidcmsg/configure.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ def __getattr__(self, item, default=None):
105105
return default
106106

107107
def __setattr__(self, key, value):
108-
if key in self:
108+
if key in self and self.key:
109109
raise KeyError('{} has already been set'.format(key))
110110
super(Base, self).__setitem__(key, value)
111111

112112
def __setitem__(self, key, value):
113-
if key in self:
113+
if key in self and self.key:
114114
raise KeyError('{} has already been set'.format(key))
115115
super(Base, self).__setitem__(key, value)
116116

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{36,37,38},docs,quality
2+
envlist = py{37,38,39,310},docs,quality
33

44
[testenv]
55
passenv = CI TRAVIS TRAVIS_*

0 commit comments

Comments
 (0)