-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 release 1.6.1
Update CHANGELOG for 1.6.1
- Loading branch information
Showing
4 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', | ||
|
@@ -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', | ||
], | ||
) |