Package: dev-shell
A "dev-shell" for Python projects ;)This small project is intended to improve the start-up for collaborators.The idea is to make the project setup as simple as possible. Just clone the sources and start a script and you're done ;)Why in hell not just aMakefile? Because it doesn't out-of-the-box under Windows and MacOS, the dev-shell does ;)Run Tests? Just start the script and call the "run test command".The "dev-shell" is the base to create a CLI and a shell. It also shows how to make a project bootstrap as simply as possible, e.g.:~$gitclonehttps://github.com/jedie/dev-shell.git
~$cddev-shell
~/dev-shell$./devshell.pypytestHow it worksFirst start of the Python script./devshell.pywill bootstrap:Generate a Python virtual environment (in short:venv)Install poetryInstall project dependencies and the project himselfThe output on first bootstrap start looks like:~/dev-shell$./devshell.py
Createvenvhere:~/dev-shell/.venv
Collectingpip
...
Successfullyinstalledpip-21.0.1
Collectingpoetry
...
Installingdependenciesfromlockfile

Packageoperations:31installs,1update,0removals

...

Installingthecurrentproject:dev-shell(0.0.1alpha0)+.venv/bin/python.venv/bin/devshell


Developershell-dev_shell-v0.2.0


Documentedcommands(use'help -v'forverbose/'help <topic>'fordetails):

dev-shellcommands==================fix_code_stylelintinglist_venv_packagespublishpytestupdate

...(dev_shell)quit
~/dev-shell$The first bootstrap start takes a few seconds. Each later startup detects the existing virtualenv and is very fast:~/dev-shell$./devshell.py

Developershell-dev_shell-v0.2.0(dev_shell)helpInfo: The.venvwill be automatically updated viapoetry installcall if thepoetry.lockfile has been changed.A call with--updatewill force to call some create/update steps, e.g.:~/dev-shell$./devshell.py--updateYou can also just delete/.venv/and startdevshell.pyagain ;)(Using--updateis not to be confused with the call of "update" command.)compatibilitydev-shell versionOSPython version>=v0.7.0Linux + MacOS + Windows3.11, 3.10, 3.9>=v0.5.0Linux + MacOS + Windows3.10, 3.9, 3.8, 3.7>=v0.0.1Linux + MacOS + Windows3.9, 3.8, 3.7See also github test configuration:.github/workflows/test.ymlHistorydevTBC0.7.0 - 2023-04-25Update test matrixupdate requirements0.6.1 - 2022-09-02Set default subprocess timeout to 5 Min.Skip buggy Poetry v1.2.0Update requirements0.6.0 - 2022-07-19Add "pyupgrade" as shell command0.5.0 - 2022-05-29Add "tox" and "poetry" commands to call them installed in created.venvUpdate requirementsv0.4.0 - 2022-02-28Update to new cmd2, colorama and pytest versionsv0.3.0 - 2022-01-30Remove "flynt" form linting/fix code stylev0.2.4 - 2022-01-30Update requirementsUse darker as code formatter and pytest-darker for lintingv0.2.3 - 2021-11-15Update requirementsFlynt arguments can be changes via CommandSetv0.2.2 - 2021-04-13Include bootstrap file, to it's possible to use it in external projects, too.v0.2.1 - 2021-04-12Handle if "poetry-publish" is not installed, so a project that used "dev-shell" must not install it.v0.2.0 - 2021-04-11Rename: "dev-shell.py => devshell.py" because of better autocompleteAddDevShellConfig.base_pathand use it in own commands like,pytest,lintingetc. (So they are usable in external project, too.)recognize "--update" and "--help" arguments better in./devshell.pycalls.Updatesetuptoolson.venvcreation, too.Fix Bugs/tests under Windowsv0.1.0 - 2021-03-22Fix CI usage: Exit with correct return code if tests failedBetter "run as CLI" implementation via newrun_cmd2_app()Bugfix errors that only occur on Windows.Simplifydevshell.pyboot script and fix raise error ifensurepipmissingv0.0.2 - 2021-03-19refactor colorful shortcutsdisplay subprocess calls with separated colorsv0.0.1 - 2021-03-19first "useable" versionProject linksGithub:https://github.com/jedie/dev-shell/PyPi:https://pypi.org/project/dev-shell/