From 5ff2ec5219e42d610d046c3913adbbb06737a790 Mon Sep 17 00:00:00 2001 From: lars Date: Tue, 15 Nov 2022 01:22:25 +0100 Subject: [PATCH] dfasf --- .gitignore | 3 ++- build/build.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 build/build.sh diff --git a/.gitignore b/.gitignore index 1cc6884..263b2b9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ __pycache__/ *.mp3 *.cache* -/build/* \ No newline at end of file +/build/* +!/build/build.sh diff --git a/build/build.sh b/build/build.sh new file mode 100644 index 0000000..c3788fc --- /dev/null +++ b/build/build.sh @@ -0,0 +1,17 @@ +# https://packaging.python.org/en/latest/tutorials/packaging-projects/ +cd ../src +cp ../README.md README.md + +echo "building......" +python3 -m pip install --upgrade build +python3 -m build + +echo "cleaning up......." +rm README.md +cd ../build +rm -rf dist +mv ../src/dist . + +echo "uploading......." +# python3 -m pip install --upgrade twine +twine upload dist/*