-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update requirements. Change build scripts.
- Loading branch information
Showing
20 changed files
with
78 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
export PROJECT=drremote |
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,12 @@ | ||
#!/usr/bin/env bash | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
source "${SCRIPT_DIR}"/build.env | ||
|
||
cd ~/Projekte/${PROJECT} || exit 1 | ||
if [ -d dist ]; then | ||
rm -r dist | ||
fi | ||
if [ -d src/${PROJECT}.egg-info ]; then | ||
rm -r src/${PROJECT}.egg-info | ||
fi | ||
|
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,14 @@ | ||
#!/usr/bin/env bash | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
source "${SCRIPT_DIR}"/build.env | ||
|
||
cd ~/Projekte/${PROJECT} || exit 1 | ||
|
||
./clean.sh | ||
./package.sh | ||
python3 -m pip install --upgrade twine | ||
# deploy | ||
# user:__token__ | ||
python3 -m twine upload --repository pypi dist/* | ||
|
||
|
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,15 @@ | ||
#!/usr/bin/env bash | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
source "${SCRIPT_DIR}"/build.env | ||
|
||
cd ~/Projekte/${PROJECT} || exit 1 | ||
|
||
./clean.sh | ||
./package.sh | ||
python3 -m pip install --upgrade twine | ||
# deploy | ||
# user:__token__ | ||
python3 -m twine upload --repository testpypi dist/* | ||
|
||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,42 +1,14 @@ | ||
#!/usr/bin/env bash | ||
# as venv is activated we must reset PATH | ||
echo current python is: `which python` | ||
export PATH=`echo $PATH | tr ":" "\n" | grep -v "venv/bin" | tr "\n" ":"` | ||
echo switched to: `pyenv which python` | ||
export PROJECT=drremote | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
source "${SCRIPT_DIR}"/build.env | ||
|
||
cd ~/Projekte/${PROJECT} || exit 1 | ||
if [ -d dist ]; then | ||
rm -r dist | ||
fi | ||
if [ -d ${PROJECT}.egg-info ]; then | ||
rm -r ${PROJECT}.egg-info | ||
fi | ||
if [ -d build ]; then | ||
rm -r build | ||
fi | ||
# | ||
# install from local | ||
#python setup.py sdist | ||
#pip install dist/${PROJECT}*.gz --force-reinstall | ||
# | ||
# upload to pypi | ||
# | ||
# wheel must be installed before:pip install wheel | ||
python setup.py sdist bdist_wheel | ||
# twine must be installed before:pip install twine | ||
# user:__token__ | ||
#python3 -m twine upload --repository testpypi dist/* | ||
python3 -m twine upload --repository pypi dist/* | ||
export PATH=`echo $PATH | tr ":" "\n" | grep -v "venv" | tr "\n" ":"` | ||
./clean.sh | ||
./package.sh | ||
|
||
# Install global | ||
# pip3 install dist/${PROJECT}*.whl --force-reinstall | ||
|
||
# cleanup | ||
if [ -d dist ]; then | ||
rm -r dist | ||
fi | ||
if [ -d ${PROJECT}.egg-info ]; then | ||
rm -r ${PROJECT}.egg-info | ||
fi | ||
if [ -d build ]; then | ||
rm -r build | ||
fi | ||
|
||
|
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,15 @@ | ||
#!/usr/bin/env bash | ||
clear | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
source "${SCRIPT_DIR}"/build.env | ||
echo current python is: `which python3 ` | ||
|
||
|
||
cd ~/Projekte/${PROJECT} || exit 1 | ||
|
||
# install/update necessary packages | ||
python3 -m pip install --upgrade build | ||
python3 -m pip install --upgrade pip | ||
|
||
# Create build | ||
python3 -m build |
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 |
---|---|---|
@@ -1 +1 @@ | ||
setuptools~=57.0.0 | ||
setuptools~=69.5.1 |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
|
||
def run_main(): | ||
from drremote.drremote import main | ||
from .drremote import main | ||
main() | ||
|
||
|
||
|
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
from .__init__ import run_main | ||
|
||
if __name__ == '__main__': | ||
run_main() | ||
run_main() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.