Skip to content

Commit

Permalink
Update requirements. Change build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
sto3014 committed May 17, 2024
1 parent add2b5d commit 5705365
Show file tree
Hide file tree
Showing 20 changed files with 78 additions and 43 deletions.
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ Installation see project description.
### Changed
### Fixed

## [0.1.0.5] - 2024-05-15

### Added
### Changed
* Update requirements
### Fixed
1 change: 1 addition & 0 deletions build.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export PROJECT=drremote
12 changes: 12 additions & 0 deletions clean.sh
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

14 changes: 14 additions & 0 deletions deploy-pypi.sh
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/*


15 changes: 15 additions & 0 deletions deploy-testpypi.sh
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 removed drremote/__init__.pyc
Binary file not shown.
Binary file removed drremote/drremote.pyc
Binary file not shown.
Binary file removed drremote/get_resolve.pyc
Binary file not shown.
Binary file removed drremote/parse.pyc
Binary file not shown.
46 changes: 9 additions & 37 deletions install.sh
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


15 changes: 15 additions & 0 deletions package.sh
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
setuptools~=57.0.0
setuptools~=69.5.1
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
with open('README.md', encoding='utf-8') as f:
long_description = f.read()

__version__ = '0.1.0.4'
__version__ = '0.1.0.5'
setup(
name='drremote',
version=__version__,
packages=['drremote'],
packages=find_packages(where='src'),
package_dir={'': 'src'},
url='',
license='MIT',
author='Dieter Stockhausen',
Expand Down
2 changes: 1 addition & 1 deletion drremote/__init__.py → src/drremote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def run_main():
from drremote.drremote import main
from .drremote import main
main()


Expand Down
2 changes: 1 addition & 1 deletion drremote/__main__.py → src/drremote/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 5705365

Please sign in to comment.