Skip to content

Commit

Permalink
Changelog update, bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Feb 11, 2024
1 parent ba9aba7 commit 902f863
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/alexdlaird/pyngrok/compare/7.1.1...HEAD)
## [Unreleased](https://github.com/alexdlaird/pyngrok/compare/7.1.2...HEAD)

## [7.1.2](https://github.com/alexdlaird/pyngrok/compare/7.1.1...7.1.2) - 2024-02-11
### Added
- Relative dependency pinning in `pyproject.toml`.
- Style and stability improvements (check `flake8` with `make check-style`).
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ validate-release:
@if [[ "${VERSION}" == "" ]]; then echo "VERSION is not set" & exit 1 ; fi

@if [[ $$(grep "version = \"${VERSION}\"" pyproject.toml) == "" ]] ; then echo "Version not bumped in pyproject.toml" & exit 1 ; fi
@if [[ $$(grep "__version__ = \"${VERSION}\"" pyngrok/ngrok.py) == "" ]] ; then echo "Version not bumped in pyngrok/ngrok.py" & exit 1 ; fi
@if [[ $$(grep "__version__ = \"${VERSION}\"" pyngrok/conf.py) == "" ]] ; then echo "Version not bumped in pyngrok/conf.py" & exit 1 ; fi

test-downstream-dependency:
@( \
Expand Down
4 changes: 3 additions & 1 deletion pyngrok/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

__author__ = "Alex Laird"
__copyright__ = "Copyright 2023, Alex Laird"
__version__ = "7.0.4"
__version__ = "7.1.2"

VERSION = __version__

BIN_DIR = os.path.normpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), "bin"))
DEFAULT_NGROK_PATH = os.path.join(BIN_DIR, get_ngrok_bin())
Expand Down
10 changes: 5 additions & 5 deletions pyngrok/ngrok.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
from urllib.request import urlopen, Request

from pyngrok import process, conf, installer
from pyngrok.conf import PyngrokConfig
from pyngrok.conf import PyngrokConfig, VERSION
from pyngrok.exception import PyngrokNgrokHTTPError, PyngrokNgrokURLError, PyngrokSecurityError, PyngrokError
from pyngrok.installer import get_default_config
from pyngrok.process import NgrokProcess

__author__ = "Alex Laird"
__copyright__ = "Copyright 2024, Alex Laird"
__version__ = "7.1.1"
__version__ = "7.1.2"

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -429,7 +429,7 @@ def get_version(pyngrok_config: Optional[PyngrokConfig] = None) -> Tuple[str, st

ngrok_version = process.capture_run_process(pyngrok_config.ngrok_path, ["--version"]).split("version ")[1]

return ngrok_version, __version__
return ngrok_version, VERSION


def update(pyngrok_config: Optional[PyngrokConfig] = None) -> str:
Expand Down Expand Up @@ -566,9 +566,9 @@ def main() -> None:
run(sys.argv[1:])

if len(sys.argv) == 1 or len(sys.argv) == 2 and sys.argv[1].lstrip("-").lstrip("-") == "help":
print(f"\nPYNGROK VERSION:\n {__version__}")
print(f"\nPYNGROK VERSION:\n {VERSION}")
elif len(sys.argv) == 2 and sys.argv[1].lstrip("-").lstrip("-") in ["v", "version"]:
print(f"pyngrok version {__version__}")
print(f"pyngrok version {VERSION}")


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyngrok"
version = "7.1.1"
version = "7.1.2"
description = "A Python wrapper for ngrok."
readme = "README.md"
license = { file = "LICENSE" }
Expand Down

0 comments on commit 902f863

Please sign in to comment.