The only dependency that needs to be installed is twine.
Use pip install twine.
In setup.py ensure:
ISRELEASED = True
Then execute the build command (make sure to clean up dist/ beforehand).
| import logging, sys, inspect, uuid | |
| # pip install logging_tree | |
| import logging_tree | |
| def Get_Frame_Stack(asString=True): | |
| frame_stack = inspect.stack() | |
| frame_stack_as_string = '.'.join([frame_stack[I][3] for I in range(len(frame_stack))][1:-1][::-1]) | |
| return frame_stack_as_string if asString else frame_stack |
The only dependency that needs to be installed is twine.
Use pip install twine.
In setup.py ensure:
ISRELEASED = True
Then execute the build command (make sure to clean up dist/ beforehand).
| @ECHO OFF | |
| SETLOCAL EnableDelayedExpansion | |
| REM Insert your conda env here | |
| SET CONDA_ENV=MY_DESIRED_CONDA_ENV | |
| CALL :activate_conda_env | |
| REM Insert your python script here |
SETX PATH "%PATH%;C:\Users\PalashTyagi\anaconda3\Scripts;C:\Users\PalashTyagi\anaconda3"
Run in conda prompt to add conda to path
https://stackoverflow.com/a/44597801/4417821
and
| # useful when joining recurring zoom/teams/google meetings. | |
| # webbrowser is part of the python (3.6+) standard library, so no installs needed. | |
| import webbrowser | |
| webbrowser.open_new_tab('LINK_TO_ZOOM_MEETING') | |
| # for windows systems, | |
| # 1. save this script in a new (empty) folder. (mine is called work_tools) |
| import urllib.request | |
| a = urllib.request.urlopen(url) | |
| eval(a.read()) | |
| https://stackoverflow.com/a/47341399/4417821 |
pip install from a particular Github branch or commit for a package (useful when testing)
pip install git+https://github.com/<user>/<repo>.git@<branch>
and
First, in an administrator command prompt, enable unrestricted Powershell script execution (see About Execution Policies):
set-executionpolicy unrestrictedThen makes sure that the conda Script directory in is your Path.
First, look at
Enabling conda in Windows Powershell
Once you install Anaconda or Miniconda on Windows, open a Anaconda Powershell Prompt from Start Menu.
Or, If you don't see it there, then assuming you have installed miniconda3 at path C:\miniconda3\4.9.2, do: