File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646THE SOFTWARE.
4747"""
4848
49- __version__ = "5.0.0b1 "
49+ __version__ = "5.0.0rc1 "
5050
5151__author__ = "Scott Griffiths"
5252
Original file line number Diff line number Diff line change 1212project = "bitstring"
1313copyright = f"2006 - { year } , Scott Griffiths"
1414author = "Scott Griffiths"
15- release = "5.0.0_beta1 "
15+ release = "5.0.0rc1 "
1616
1717extensions = []
1818
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " bitstring"
7- version = " 5.0.0b1 "
7+ version = " 5.0.0rc1 "
88license = { text = " MIT" }
99authors = [
1010 { name =" Scott Griffiths" , email =" dr.scottgriffiths@gmail.com" },
Original file line number Diff line number Diff line change @@ -35,6 +35,22 @@ def test_pyproject_version(self):
3535 except FileNotFoundError :
3636 pass # Doesn't run on CI.
3737
38+ def test_docs_version_matches (self ):
39+ # doc/conf.py is the third place the version is written, and the only one that
40+ # nothing checked - it had drifted to a spelling the others never used.
41+ filename = os .path .join (THIS_DIR , '../doc/conf.py' )
42+ try :
43+ with open (filename ) as conffile :
44+ found = False
45+ for line in conffile :
46+ if line .startswith ("release" ):
47+ assert not found
48+ assert bitstring .__version__ in line , line
49+ found = True
50+ assert found
51+ except FileNotFoundError :
52+ pass # Doesn't run on CI.
53+
3854 def test_compatibility_aliases_do_not_warn (self ):
3955 # They are kept rather than deprecated, so nothing should emit a warning.
4056 # If a future version does deprecate them, that is a deliberate change and
You can’t perform that action at this time.
0 commit comments