From 50d22df621228fe1503b3088d1b484528faa673d Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Wed, 5 Jun 2024 09:44:02 -0700 Subject: [PATCH] fix #3 --- .gitignore | 2 + django_routines/__init__.py | 2 +- doc/.DS_Store | Bin 6148 -> 0 bytes doc/source/changelog.rst | 5 ++ doc/source/index.rst | 4 +- examples/deploy.svg | 128 ++++++++++++++++++------------------ examples/package.svg | 98 +++++++++++++-------------- examples/readme_dict.py | 9 ++- pyproject.toml | 2 +- 9 files changed, 130 insertions(+), 120 deletions(-) delete mode 100644 doc/.DS_Store diff --git a/.gitignore b/.gitignore index 68bc17f..b4ab01e 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,5 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +**/.DS_Store \ No newline at end of file diff --git a/django_routines/__init__.py b/django_routines/__init__.py index 3d60f54..7c06826 100644 --- a/django_routines/__init__.py +++ b/django_routines/__init__.py @@ -21,7 +21,7 @@ from django.core.exceptions import ImproperlyConfigured from django.utils.functional import Promise -VERSION = (1, 0, 0) +VERSION = (1, 0, 1) __title__ = "Django Routines" __version__ = ".".join(str(i) for i in VERSION) diff --git a/doc/.DS_Store b/doc/.DS_Store deleted file mode 100644 index 272505e0ae18401d382e5f90916fb8b663a6241f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKOH0E*5Z>*>rW7Fug&r5Y7Od7MUP7#Yz=$4HYC?(zW41J@Ig~=q`iJ}_{vKy` zH_&46C}L+|_nV!^ZsvpRgE7Y4S-8iT%^0(wA#zkI1kIJMnh8eaYK}0-(@7A^pkkW8 zX~J)BvVhH4#A3Gm{U5<3j?%2(|KzoLqq)(tT2{xp_nu_#WqvkGU4MFuqbn)npw#`~ zIvVFAd+S^#nI9$NsY-~#F@)URL`f)fSI&|!Rk@yaSZ%94vb*#7;eNj-1}Ddho|vDa zelR#%EZWxg&hFXe=sA8#Kpo;7gM~(% T1??&wkS+p>5bB75Utr)1y1+`! diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index d030232..5108997 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -2,6 +2,11 @@ Change Log ========== +v1.0.1 +====== + +* `Help example images dont have the correct usage line. `_ + v1.0.0 ====== diff --git a/doc/source/index.rst b/doc/source/index.rst index 1aa3d43..db9a1ee 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -30,7 +30,7 @@ The routine command will read our settings file and generate two subcommands, on and one called package: .. typer:: django_routines.management.commands.routine.Command:typer_app:package - :prog: ./manage.py routine + :prog: ./manage.py routine package :theme: dark :convert-png: latex @@ -47,7 +47,7 @@ Now we can run all of our package routines with one command: The deploy command has several switches that we can enable to run additional commands. .. typer:: django_routines.management.commands.routine.Command:typer_app:deploy - :prog: ./manage.py routine + :prog: ./manage.py routine deploy :theme: dark :convert-png: latex diff --git a/examples/deploy.svg b/examples/deploy.svg index 22fd303..7e3a4b8 100644 --- a/examples/deploy.svg +++ b/examples/deploy.svg @@ -19,143 +19,143 @@ font-weight: 700; } - .terminal-3312726252-matrix { + .terminal-3171235174-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-3312726252-title { + .terminal-3171235174-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-3312726252-r1 { fill: #c5c8c6;font-weight: bold } -.terminal-3312726252-r2 { fill: #c5c8c6 } -.terminal-3312726252-r3 { fill: #d0b344;font-weight: bold } -.terminal-3312726252-r4 { fill: #c5c8c6;text-decoration: underline; } -.terminal-3312726252-r5 { fill: #98a84b } -.terminal-3312726252-r6 { fill: #68a0b3 } -.terminal-3312726252-r7 { fill: #d0b344 } -.terminal-3312726252-r8 { fill: #868887 } -.terminal-3312726252-r9 { fill: #68a0b3;font-weight: bold } + .terminal-3171235174-r1 { fill: #c5c8c6;font-weight: bold } +.terminal-3171235174-r2 { fill: #c5c8c6 } +.terminal-3171235174-r3 { fill: #d0b344;font-weight: bold } +.terminal-3171235174-r4 { fill: #c5c8c6;text-decoration: underline; } +.terminal-3171235174-r5 { fill: #98a84b } +.terminal-3171235174-r6 { fill: #68a0b3 } +.terminal-3171235174-r7 { fill: #d0b344 } +.terminal-3171235174-r8 { fill: #868887 } +.terminal-3171235174-r9 { fill: #68a0b3;font-weight: bold } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - ./manage.py routine + ./manage.py routine deploy - + - - -Usage: ./manage.py routine [OPTIONS] COMMAND [ARGS]... - - -Deploy the site application into production. - - -[0routine package | prepare -[0migrate -[0collectstatic -[0shellcompletion install | initial -[0loaddata ./fixtures/demo.json | demo - -╭─ Options ─────────────────────────────────────────────────────╮ ---allInclude all switched commands. ---demoLoad the demo data. ---initialThings to do on the very first deployment  -on a new server.                           ---prepareGenerate artifacts like migrations and     -transpiled javascript.                     ---helpShow this message and exit. -╰───────────────────────────────────────────────────────────────╯ -╭─ Commands ────────────────────────────────────────────────────╮ -list List the commands that will be run.                    -╰───────────────────────────────────────────────────────────────╯ + + +Usage: ./manage.py routine deploy [OPTIONS] COMMAND [ARGS]... + + +Deploy the site application into production. + + +[0routine package | prepare +[0migrate +[0collectstatic +[0shellcompletion install | initial +[0loaddata ./fixtures/demo.json | demo + +╭─ Options ─────────────────────────────────────────────────────╮ +--allInclude all switched commands. +--demoLoad the demo data. +--initialThings to do on the very first deployment  +on a new server.                           +--prepareGenerate artifacts like migrations and     +transpiled javascript.                     +--helpShow this message and exit. +╰───────────────────────────────────────────────────────────────╯ +╭─ Commands ────────────────────────────────────────────────────╮ +list List the commands that will be run.                    +╰───────────────────────────────────────────────────────────────╯ diff --git a/examples/package.svg b/examples/package.svg index a6b4224..8a1586e 100644 --- a/examples/package.svg +++ b/examples/package.svg @@ -19,114 +19,114 @@ font-weight: 700; } - .terminal-1906384706-matrix { + .terminal-3022464026-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-1906384706-title { + .terminal-3022464026-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-1906384706-r1 { fill: #c5c8c6;font-weight: bold } -.terminal-1906384706-r2 { fill: #c5c8c6 } -.terminal-1906384706-r3 { fill: #d0b344;font-weight: bold } -.terminal-1906384706-r4 { fill: #c5c8c6;text-decoration: underline; } -.terminal-1906384706-r5 { fill: #98a84b } -.terminal-1906384706-r6 { fill: #68a0b3 } -.terminal-1906384706-r7 { fill: #868887 } -.terminal-1906384706-r8 { fill: #68a0b3;font-weight: bold } + .terminal-3022464026-r1 { fill: #c5c8c6;font-weight: bold } +.terminal-3022464026-r2 { fill: #c5c8c6 } +.terminal-3022464026-r3 { fill: #d0b344;font-weight: bold } +.terminal-3022464026-r4 { fill: #c5c8c6;text-decoration: underline; } +.terminal-3022464026-r5 { fill: #98a84b } +.terminal-3022464026-r6 { fill: #68a0b3 } +.terminal-3022464026-r7 { fill: #868887 } +.terminal-3022464026-r8 { fill: #68a0b3;font-weight: bold } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - ./manage.py routine + ./manage.py routine package - + - - -Usage: ./manage.py routine [OPTIONS] COMMAND [ARGS]... - - -Generate pre-package artifacts like migrations and transpiled  -javascript. - - -[0makemigrations -[0renderstatic - -╭─ Options ─────────────────────────────────────────────────────╮ ---allInclude all switched commands. ---helpShow this message and exit. -╰───────────────────────────────────────────────────────────────╯ -╭─ Commands ────────────────────────────────────────────────────╮ -list List the commands that will be run.                    -╰───────────────────────────────────────────────────────────────╯ + + +Usage: ./manage.py routine package [OPTIONS] COMMAND [ARGS]... + + +Generate pre-package artifacts like migrations and transpiled  +javascript. + + +[0makemigrations +[0renderstatic + +╭─ Options ─────────────────────────────────────────────────────╮ +--allInclude all switched commands. +--helpShow this message and exit. +╰───────────────────────────────────────────────────────────────╯ +╭─ Commands ────────────────────────────────────────────────────╮ +list List the commands that will be run.                    +╰───────────────────────────────────────────────────────────────╯ diff --git a/examples/readme_dict.py b/examples/readme_dict.py index 106eb3c..51f2c9f 100644 --- a/examples/readme_dict.py +++ b/examples/readme_dict.py @@ -19,8 +19,10 @@ "name": "deploy", "switch_helps": { "demo": "Load the demo data.", - "initial": "Things to do on the very first deployment on a new server.", - "prepare": "Generate artifacts like migrations and transpiled javascript.", + "initial": "Things to do on the very first deployment on a new " + "server.", + "prepare": "Generate artifacts like migrations and transpiled " + "javascript.", }, }, "package": { @@ -28,7 +30,8 @@ {"command": "makemigrations"}, {"command": "renderstatic"}, ], - "help_text": "Generate pre-package artifacts like migrations and transpiled javascript.", + "help_text": "Generate pre-package artifacts like migrations and " + "transpiled javascript.", "name": "package", }, } diff --git a/pyproject.toml b/pyproject.toml index ce5bf34..fab7127 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django-routines" -version = "1.0.0" +version = "1.0.1" description = "Define named groups of management commands in Django settings files for batched execution." authors = ["Brian Kohan "] license = "MIT"