Compliance with Telegram Bot API 6.5

This commit is contained in:
2023-02-03 21:38:20 +01:00
parent 5c30dafd4c
commit 0c3ed2070d
5 changed files with 18 additions and 19 deletions

14
update_package.sh Normal file → Executable file
View File

@@ -5,20 +5,20 @@ this_script_directory=$(cd "$(dirname "$0")" && pwd)
packenv="";
# Python virtual environment directory: packenv variable in my_config.sh
source $this_script_directory/my_config.sh;
source "$this_script_directory"/my_config.sh;
# Ensure the success of importing procedure
if [ -z ${packenv} ];
if [ -z "${packenv}" ];
then
printf "Please set in ""my_config.sh"" the path to bot python virtual environment\n\nExample:\npackenv=""path/to/virtual/env""\n";
exit;
fi
# Merge, push, build and publish package to pypi.org
bash merge_and_push.sh;
# Push, build and publish package to pypi.org
bash "$this_script_directory"/push_to_remotes.sh;
rm -rf "$this_script_directory/build";
rm -rf "$this_script_directory/dist";
rm -rf "$this_script_directory/davtelepot.egg-info";
$packenv/python setup.py sdist;
$packenv/pip wheel --no-index --no-deps --wheel-dir dist dist/*.tar.gz;
$packenv/twine upload --skip-existing dist/*;
"$packenv"/python setup.py sdist;
"$packenv"/pip wheel --no-index --no-deps --wheel-dir dist dist/*.tar.gz;
"$packenv"/twine upload --skip-existing dist/*;