Skip to content

Commit 67d544d

Browse files
authored
Merge pull request padelt#137 release 1.6.1
Update CHANGELOG for 1.6.1
2 parents eda310d + 75d356e commit 67d544d

File tree

4 files changed

+53
-4
lines changed

4 files changed

+53
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@
1818
"postCreateCommand": "pip3 install --user -r requirements.txt -r requirements_test.txt",
1919

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

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

2626
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
2727
//"remoteUser": "root"
28+
29+
// Access local .pypi api keys
30+
"mounts": [
31+
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.pypirc,target=/home/vscode/.pypirc,type=bind,consistency=cached"
32+
]
2833
}

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ All notable changes to this project will be documented in this file.
88

99
No changes yet.
1010

11-
## [1.6.0]
11+
## [1.6.1] - 2023-12-19
12+
### Added
13+
- Support for TEMPer2V1.3
14+
- Support for TEMPerHumiV1.1
15+
- Support for TEMPerHumiV1.0
16+
- Experimental support for TEMPer2_V3.7
17+
- get_product() function to get product name
18+
- Updates to documentation
19+
20+
## [1.6.0] - 2021-11-03
1221
### Added
1322
- A new architecture for supporting different device types.
1423
- Tests using pytest

scripts/publish_to_pypi.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
# Script to automate publishing to pypi
3+
# Dave T 2023-12-21
4+
pypi_config_file=~/.pypirc
5+
6+
pip install twine
7+
8+
if [ ! -f dist/*.tar.gz ]; then
9+
echo "No releases found. Please run python3 -m setup.py sdist"
10+
exit
11+
fi
12+
twine check dist/*
13+
14+
echo "Ready to publish."
15+
echo "Default is publishing to testpypi."
16+
read -r -p "If you are fully ready, please publish to pypi by typing 'thisisnotatest'<enter>: " response
17+
echo "response=$response"
18+
if [ "$response" = "thisisnotatest" ]; then
19+
repository=pypi
20+
else
21+
repository=testpypi
22+
fi
23+
24+
if [ -f $pypi_config_file ]; then
25+
echo "Using $pypi_config_file for API keys"
26+
else
27+
echo "$pypi_config_file not found, please paste pypi API token below:"
28+
read twine_api_key
29+
export TWINE_USERNAME=__token__
30+
export TWINE_PASSWORD=$twine_api_key
31+
fi
32+
echo "Publishing to $repository..."
33+
twine upload --repository $repository dist/*
34+
echo "Publishing complete!"
35+
echo
36+
echo "Don't forget to tag this release!"

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
author='Philipp Adelt',
77
author_email='[email protected] ',
88
url='https://github.com/padelt/temper-python',
9-
version='1.6.0',
9+
version='1.6.1',
1010
description='Reads temperature from TEMPerV1 devices (USB 0c45:7401)',
1111
long_description=open('README.md', encoding='utf-8').read(),
1212
long_description_content_type='text/markdown',
@@ -24,7 +24,6 @@
2424
'Development Status :: 5 - Production/Stable',
2525
'Environment :: Console',
2626
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
27-
'Programming Language :: Python :: 2',
2827
'Programming Language :: Python :: 3',
2928
],
3029
)

0 commit comments

Comments
 (0)