Skip to content

Commit 44bee5c

Browse files
Setting the version to 5.0.0rc1.
1 parent efee155 commit 44bee5c

4 files changed

Lines changed: 19 additions & 3 deletions

File tree

bitstring/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
THE SOFTWARE.
4747
"""
4848

49-
__version__ = "5.0.0b1"
49+
__version__ = "5.0.0rc1"
5050

5151
__author__ = "Scott Griffiths"
5252

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
project = "bitstring"
1313
copyright = f"2006 - {year}, Scott Griffiths"
1414
author = "Scott Griffiths"
15-
release = "5.0.0_beta1"
15+
release = "5.0.0rc1"
1616

1717
extensions = []
1818

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "bitstring"
7-
version = "5.0.0b1"
7+
version = "5.0.0rc1"
88
license = { text = "MIT" }
99
authors = [
1010
{ name="Scott Griffiths", email="dr.scottgriffiths@gmail.com" },

tests/test_bitstring.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)