mirror of
https://github.com/yakhyo/uniface.git
synced 2025-12-30 09:02:25 +00:00
Initial commit
This commit is contained in:
23
scripts/release.sh
Normal file
23
scripts/release.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Exit on errors
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"/..
|
||||
|
||||
echo "Deleting existing release-related files..."
|
||||
rm -rf dist/ build/ *.egg-info
|
||||
|
||||
pip install --upgrade pip
|
||||
pip install twine
|
||||
|
||||
echo "Creating a package for the current release (PyPI compatible)..."
|
||||
python3 setup.py sdist bdist_wheel
|
||||
|
||||
echo "Release package created successfully in the 'dist/' folder."
|
||||
|
||||
|
||||
echo "Uploading the package to PyPI..."
|
||||
twine upload dist/*
|
||||
|
||||
echo "Release uploaded successfully!"
|
||||
Reference in New Issue
Block a user