Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CHANGELOG for 1.6.1 #137

Merged
merged 4 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@
"postCreateCommand": "pip3 install --user -r requirements.txt -r requirements_test.txt",

// Priviledged mode is necessary to get access to usb
"runArgs": ["--privileged"]
"runArgs": ["--privileged"],

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
//"remoteUser": "root"

// Access local .pypi api keys
"mounts": [
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.pypirc,target=/home/vscode/.pypirc,type=bind,consistency=cached"
]
}
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ All notable changes to this project will be documented in this file.

No changes yet.

## [1.6.0]
## [1.6.1] - 2023-12-19
### Added
- Support for TEMPer2V1.3
- Support for TEMPerHumiV1.1
- Support for TEMPerHumiV1.0
- Experimental support for TEMPer2_V3.7
- get_product() function to get product name
- Updates to documentation

## [1.6.0] - 2021-11-03
### Added
- A new architecture for supporting different device types.
- Tests using pytest
Expand Down
36 changes: 36 additions & 0 deletions scripts/publish_to_pypi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash
# Script to automate publishing to pypi
# Dave T 2023-12-21
pypi_config_file=~/.pypirc

pip install twine

if [ ! -f dist/*.tar.gz ]; then
echo "No releases found. Please run python3 -m setup.py sdist"
exit
fi
twine check dist/*

echo "Ready to publish."
echo "Default is publishing to testpypi."
read -r -p "If you are fully ready, please publish to pypi by typing 'thisisnotatest'<enter>: " response
echo "response=$response"
if [ "$response" = "thisisnotatest" ]; then
repository=pypi
else
repository=testpypi
fi

if [ -f $pypi_config_file ]; then
echo "Using $pypi_config_file for API keys"
else
echo "$pypi_config_file not found, please paste pypi API token below:"
read twine_api_key
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=$twine_api_key
fi
echo "Publishing to $repository..."
twine upload --repository $repository dist/*
echo "Publishing complete!"
echo
echo "Don't forget to tag this release!"
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
author='Philipp Adelt',
author_email='[email protected] ',
url='https://github.com/padelt/temper-python',
version='1.6.0',
version='1.6.1',
description='Reads temperature from TEMPerV1 devices (USB 0c45:7401)',
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
Expand All @@ -24,7 +24,6 @@
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)
Loading