Skip to content

Commit

Permalink
release v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ngardiner committed Mar 12, 2024
1 parent 5dec69c commit 531f149
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 7 deletions.
48 changes: 47 additions & 1 deletion .github/workflows/docker+pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
runs-on: [ "self-hosted", "build_host" ]

if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) ||
(vars.build_env == 'self-hosted' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.trigger_pypi_prod == 'yes')
steps:
Expand Down Expand Up @@ -197,6 +197,52 @@ jobs:
with:
password: ${{ secrets.PYPI_API_TOKEN }}

pypi-cloud:
name: Build a PyPi Package if this is a tagged release commit
runs-on: ubuntu-latest

if: |
(vars.build_env == 'cloud' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.trigger_pypi_prod == 'yes')
steps:
- name: Check out Repository
uses: actions/checkout@v3
with:
path: ./pypi

- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution package to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
skip_existing: true
repository_url: https://test.pypi.org/legacy/

- name: Publish distribution package to Production PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

docker-latest:
name: Create docker-latest Docker Image from current head
runs-on: [ "self-hosted", "build_host" ]
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This document logs the changes per release of TWCManager.

## v1.4.0 - Upcoming Development release
* Placeholder - TWC abstraction code

## v1.3.2 - Latest Development version
* (@RichieB2B) - Nicer looking log prefixes for EMS modules
* (@RichieB2B) - Support for new fleet API and vehicle command proxy
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TWCManager

[![Stable Release](https://img.shields.io/badge/Stable_Release-1.3.1-blue)](https://github.com/ngardiner/TWCManager/releases/tag/v1.3.1)
[![Development Release](https://img.shields.io/badge/Devel_Release-1.3.2-green.svg)](https://github.com/ngardiner/TWCManager/tree/main)
[![Stable Release](https://img.shields.io/badge/Stable_Release-1.3.2-blue)](https://github.com/ngardiner/TWCManager/releases/tag/v1.3.2)
[![Development Release](https://img.shields.io/badge/Devel_Release-1.4.0-green.svg)](https://github.com/ngardiner/TWCManager/tree/main)
![Build Status](https://github.com/ngardiner/TWCManager/actions/workflows/test_suite.yml/badge.svg)
![GitHub commits](https://img.shields.io/github/commit-activity/m/ngardiner/TWCManager)
![Docker Pulls](https://img.shields.io/docker/pulls/twcmanager/twcmanager.svg)
Expand Down
4 changes: 2 additions & 2 deletions docs/Software_Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ You can check that this command has been successful by running ```python --versi

During this step, the source code and all related files will be cloned from the GitHub repository and installed into the appropriate location on your system.

We have two versions of the codebase that you may want to check out. The stable version is **v1.3.1**, which will only change for stability or urgent fixes. To check out **v1.3.1**, follow these steps:
We have two versions of the codebase that you may want to check out. The stable version is **v1.3.2**, which will only change for stability or urgent fixes. To check out **v1.3.2**, follow these steps:


```
git clone https://github.com/ngardiner/TWCManager
cd TWCManager
git checkout v1.3.1
git checkout v1.3.2
sudo make install
```

Expand Down
2 changes: 1 addition & 1 deletion lib/TWCManager/TWCMaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TWCMaster:
teslaLoginAskLater = False
TWCID = None
updateVersion = False
version = "1.3.1"
version = "1.3.2"

# TWCs send a seemingly-random byte after their 2-byte TWC id in a number of
# messages. I call this byte their "Sign" for lack of a better term. The byte
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="TWCManager",
version="1.3.1",
version="1.3.2",
package_dir={"": "lib"},
packages=find_namespace_packages(where="lib"),
python_requires=">= 3.6",
Expand Down

0 comments on commit 531f149

Please sign in to comment.