Skip to content

Commit a58c2f4

Browse files
authored
Merge pull request #231 from DiffSK/5.0.x
prepping to release 5.0.8
2 parents 62c2c88 + 97325b9 commit a58c2f4

8 files changed

Lines changed: 54 additions & 7 deletions

File tree

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
---------
33

4+
Release 5.0.8
5+
"""""""""""""
6+
7+
* fixing/test for a regression introduced in 5.0.7 that prevented ``import validate`` from working
8+
9+
410
Release 5.0.7
511
"""""""""""""
612

docs/configobj.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,6 +2383,12 @@ CHANGELOG
23832383
This is an abbreviated changelog showing the major releases up to version 4.
23842384
From version 4 it lists all releases and changes.
23852385

2386+
2023/01/18 - Version 5.0.8
2387+
--------------------------
2388+
2389+
* fixing/test for a regression introduced in 5.0.7 that prevented ``import validate`` from working
2390+
2391+
23862392
2023/01/17 - Version 5.0.7
23872393
--------------------------
23882394

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
#
44

55
[egg_info]
6-
tag_build = .dev0
6+
#tag_build = .dev0
77
tag_date = false
88

99

1010
[sdist]
11-
formats = zip, gztar
11+
formats = gztar
1212

1313

1414
[bdist_wheel]

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
NAME = 'configobj'
3838
MODULES = []
39-
PACKAGES = ['configobj']
39+
PACKAGES = ['configobj', 'validate']
4040
DESCRIPTION = 'Config file reading, writing and validation.'
4141
URL = 'https://github.com/DiffSK/configobj'
4242

@@ -105,7 +105,7 @@
105105

106106
AUTHOR = 'Rob Dennis, Eli Courtwright (Michael Foord & Nicola Larosa original maintainers)'
107107

108-
AUTHOR_EMAIL = 'rdennis+configobj@gmail.com, eli@courtwright.org, fuzzyman@voidspace.co.uk, nico@tekNico.net'
108+
AUTHOR_EMAIL = 'rdennis+configobj@gmail.com, eli@courtwright.org, michael@python.org, nico@tekNico.net'
109109

110110
KEYWORDS = "config, ini, dictionary, application, admin, sysadmin, configuration, validation".split(', ')
111111

@@ -121,7 +121,7 @@
121121
package_dir={'': 'src'},
122122
packages=PACKAGES,
123123
install_requires=[i.strip() for i in REQUIRES.splitlines() if i.strip()],
124-
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
124+
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
125125
classifiers=CLASSIFIERS,
126126
keywords=KEYWORDS,
127127
license='BSD (2 clause)',

src/configobj/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '5.0.7'
1+
__version__ = '5.0.8'

src/configobj/validate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@
158158
'is_ip_addr_list',
159159
'is_mixed_list',
160160
'is_option',
161-
'__docformat__',
162161
)
163162

164163

src/tests/test_validate.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55
from configobj.validate import Validator, VdtValueTooSmallError
66

77

8+
class TestImporting(object):
9+
def test_top_level(self, val):
10+
import validate
11+
assert val.__class__ is validate.Validator
12+
13+
def test_within_configobj_using_from(self, val):
14+
from configobj import validate
15+
assert val.__class__ is validate.Validator
16+
17+
def test_within_configobj(self, val):
18+
import configobj.validate
19+
assert val.__class__ is configobj.validate.Validator
20+
21+
822
class TestBasic(object):
923
def test_values_too_small(self, val):
1024
config = '''

src/validate/__init__.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"""
2+
This is a backwards compatibility-shim to support:
3+
4+
```
5+
import validate
6+
```
7+
8+
in a future release, we'd expect this to no longer work and
9+
instead using:
10+
11+
```
12+
import configobj.validate
13+
```
14+
15+
or:
16+
17+
```
18+
from configobj import validate
19+
```
20+
"""
21+
from configobj.validate import *
22+

0 commit comments

Comments
 (0)