Skip to content

Commit

Permalink
Updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
midstar committed Apr 28, 2023
1 parent 879bafe commit e13f986
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.12.0.{build}
version: 0.12.1.{build}

environment:
PYTHONUNBUFFERED: 1
Expand Down
6 changes: 3 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@

# General information about the project.
project = 'pycstruct'
copyright = '2019, Joel Midstjärna'
copyright = '2023, Joel Midstjärna'
author = 'Joel Midstjärna'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.1.0'
version = '0.12.1'
# The full version, including alpha/beta/rc tags.
release = '0.1.0'
release = '0.12.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="pycstruct",
version="0.12.0",
version="0.12.1",
description="Binary data handling in Python using dictionaries",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
15 changes: 15 additions & 0 deletions tests/buildtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

appveyor_name = "appveyor.yml"
setup_name = "setup.py"
doc_conf_name = "doc/source/conf.py"

###############################################################################
# Get version specified in appveyor.yml file
Expand All @@ -25,6 +26,15 @@
if line.strip().startswith("version="):
setup_version = line.split('"')[1]

###############################################################################
# Get version specified in conf.py file
doc_conf_version = "conf?"
with open(doc_conf_name, "r") as f:
lines = f.readlines()
for line in lines:
if line.strip().startswith("version ="):
doc_conf_version = line.split("'")[1]

###############################################################################
# Compare
if appveyor_version == setup_version:
Expand All @@ -35,6 +45,11 @@
f"match {setup_name} version {setup_version}"
)
exit(1)
if doc_conf_version == setup_version:
print(f"PASS: Doc version {doc_conf_version} match in {doc_conf_name}")
else:
print(f"WARN: Doc version {doc_conf_version} don't match in {doc_conf_name}")
print(" If document or interace was updated please update this version.")

###############################################################################
# Fetch versions from PyPI and check if it already exists
Expand Down

0 comments on commit e13f986

Please sign in to comment.