معرفی شرکت ها


bock-0.2.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Small cli - tool to support GAMS4+ local development
ویژگی مقدار
سیستم عامل -
نام فایل bock-0.2.0
نام bock
نسخه کتابخانه 0.2.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Sebastian Stoff
ایمیل نویسنده SebastianStoff@gmx.at
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/bock/
مجوز -
# bock Very basic cli-tool to support local (GAMS4+)[http://gams.uni-graz.at/] project development. ## Quick Start ```sh # 1. make sure python3 + pip are installed pip install bock # 2. restart shell / wsl etc. # run bock bock ``` ## Requirements - python 3.10.0? - pip installed ## Bock development ### Windows ```sh # cd to clone of repo cd /to/the/clone # install via pip locally pip install . # logout / login from wsl afterwards # launch bock commands bock [cmd] # launch demo sub-command (inside commands/demo.py) bock demo testme ``` ### WSL / Linux ```sh # cd to clone of repo cd /to/the/clone # activate venv (needs virtualenv installed) source venv/Scripts/activate # if there is an error (like command not found -> use dos2Unix command on venv/Scripts/activate ) # install via pip locally pip install . # logout / login from wsl afterwards # launch bock commands bock [cmd] # launch demo sub-command (inside commands/demo.py) bock demo testme ``` ## Idols / Sources - https://github.com/IVIURRAY/yt-eve - https://www.youtube.com/watch?v=Jr4QDJwwj60&ab_channel=SoftwareEngineerHaydn ### 1. Install pip (WSL + Ubuntu 20.x LTS) ```sh # pip wsl ubuntu installation # update / upgrade ubuntu first sudo apt update && sudo apt upgrade # install pip on ubuntu sudo apt install python3-pip # then install bock ``` ## Install 1. create venv 2. install requirements specified in requirements.txt 3. code along! ### Update bock ```sh # update bock py -m pip install --upgrade bock ``` ## Aims 1. Simplify - setting up the dev assets shpuld be 2. Centralize - avoid copying of old code. Make sure to spread best practices / bug fixes etc. 3. Abstract away: - knowledge about different repositories and other implementation details. 4. Validate: - integrate frontend test possiblity into the tool ## Example cli calls ```sh ``` # Production / Packaging - according to official doc here: https://packaging.python.org/guides/distributing-packages-using-setuptools/#packaging-your-project - based on windows machines - packaged as "wheel" (check doc link from before) ```sh # on windows! # launch venv first # cd into clone ./venv/Scripts/activate.bat # then increment version in setup.py according to semantic versioning! # build python wheel py -m build --wheel # OPTIONAL: check if description is valid twine check dist/* ``` # Deployment (on pypi) - on pypi https://packaging.python.org/guides/distributing-packages-using-setuptools/#uploading-your-project-to-pypi - check docu for api token (test out on testpypi) ## Pypi ```sh # First build files + create pypi account (if not existing) # username: __token__ # pw: MYTOKEN twine upload dist/* # install from pypi pip install bock ``` ## Testpypi ```sh # test on testpypi # need to specify testpypi repo # username: __token__ # pw: MYTOKEN twine upload dist/* --repository testpypi # install from testpypi # needs to be done this way -> deps need to be installed from pypi and not the test instance. pip install bock --extra-index-url https://test.pypi.org/simple ``` # Testing ## Manual Deployment ### Installation from TestPypi ```sh # first update ubuntu stuff sudo apt-get update && apt-get upgrade # install pip first sudo apt-get python3-pip # install from testpypi # needs to be done this way -> deps need to be installed from pypi and not the test instance. pip install bock --extra-index-url https://test.pypi.org/simple # (when on wsl -> restart wsl ) # use bock bock project setup "templates" ```


نیازمندی

مقدار نام
==1.6.0 autopep8
==4.1.0 bleach
==0.7.0 build
==2021.10.8 certifi
==2.0.7 charset-normalizer
==8.0.3 click
==0.4.4 colorama
==0.18 docutils
==3.3 idna
==4.8.1 importlib-metadata
==23.2.1 keyring
==21.2 packaging
==0.12.0 pep517
==1.7.1 pkginfo
==2.8.0 pycodestyle
==2.10.0 Pygments
==2.4.7 pyparsing
==0.2.0 pywin32-ctypes
==30.0 readme-renderer
==2.26.0 requests
==0.9.1 requests-toolbelt
==1.5.0 rfc3986
==1.16.0 six
==0.10.2 toml
==1.2.2 tomli
==4.62.3 tqdm
==3.4.2 twine
==1.26.7 urllib3
==0.5.1 webencodings
==3.6.0 zipp


زبان مورد نیاز

مقدار نام
>=3 Python


نحوه نصب


نصب پکیج whl bock-0.2.0:

    pip install bock-0.2.0.whl


نصب پکیج tar.gz bock-0.2.0:

    pip install bock-0.2.0.tar.gz