Django Sonic Screwdriver is a collection of very useful commands and will make your life easier.
Project description
Django Sonic Screwdriver
========================
.. image:: https://coveralls.io/repos/rhazdon/django-sonic-screwdriver/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/rhazdon/django-sonic-screwdriver?branch=master
.. image:: https://codeclimate.com/github/rhazdon/django-sonic-screwdriver/badges/gpa.svg
:target: https://codeclimate.com/github/rhazdon/django-sonic-screwdriver
:alt: Code Climate
.. image:: https://badge.fury.io/py/django-sonic-screwdriver.svg
:target: http://badge.fury.io/py/django-sonic-screwdriver
Django Sonic Screwdriver is a collection of very useful commands and will make your life easier.
Installation
------------
You can download the latest version from the Python Package Index PyPI.
.. code:: bash
$ pip install django-sonic-screwdriver
Add the package to your settings.py:
.. code:: python
INSTALLED_APPS = (
...
'django_sonic_screwdriver',
...
)
Settings
--------
.. code:: python
SONIC_SCREWDRIVER = {
# For test purpose
'DEBUG': False,
# Returns file where the version number is located
'VERSION_FILE': 'setup.py',
'PRE_RELEASE_SEPARATOR': '', # '_', '-', '.'
'PATCH_AUTO_TAG': False,
'PATCH_AUTO_TAG_PUSH': False,
'PATCH_AUTO_COMMIT': False,
'GIT_DIR': setting.BASE_DIR,
# Git Tagging
'GIT_TAG_AUTO_COMMIT': False,
'GIT_TAG_AUTO_TAG_PUSH': False,
'GIT_STAGING_PRE_TAG': 'staging',
'GIT_ACTIVATE_PRE_TAG': 'activate',
}
Commands
--------
$ ./manage.py cache:clear
~~~~~~~~~~~~~~~~~~~~~~~~~~
--default Clear cache
$ ./manage.py gen:secretkey
~~~~~~~~~~~~~~~~~~~~~~~~~~
--default Generate a new Secretkey for Django
$ ./manage.py patch
~~~~~~~~~~~~~~~~~~~
-M, --major Set major number
-m, --minor Set minor number
-p, --patch Set patch number
-d, --dev Set dev release (e.g. 1.2.1dev1)
-a, --alpha Set alpha release (e.g. 1.2.1a1)
-b, --beta Set beta release (e.g. 1.2.1b1)
-r, --release-candidate Set release candidate release (e.g. 1.2.1rc1)
-f, --force Force patching
$ ./manage.py git:tag
~~~~~~~~~~~~~~~~~~~~~
--default (is default)
--staging Create a staging tag (e.g. staging-v1.2.3)
--activate Create a activate tag (e.g. activate-v1.2.3)
--push Push tags
$ ./manage.py git:tag:push
~~~~~~~~~~~~~~~~~~~~~~~~~~
--default Push all tags
$ ./manage.py git:tag:delete
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<tag> Remove the latest or given tag (optional).
$ ./manage.py pypi:export
~~~~~~~~~~~~~~~~~~~~~~~~~
-w, --wheel Export project with wheel (recommended)
-u, --upload Upload Project
$ ./manage.py pypi:upload
~~~~~~~~~~~~~~~~~~~~~~~~~
--default Upload project to PyPI via twine
========================
.. image:: https://coveralls.io/repos/rhazdon/django-sonic-screwdriver/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/rhazdon/django-sonic-screwdriver?branch=master
.. image:: https://codeclimate.com/github/rhazdon/django-sonic-screwdriver/badges/gpa.svg
:target: https://codeclimate.com/github/rhazdon/django-sonic-screwdriver
:alt: Code Climate
.. image:: https://badge.fury.io/py/django-sonic-screwdriver.svg
:target: http://badge.fury.io/py/django-sonic-screwdriver
Django Sonic Screwdriver is a collection of very useful commands and will make your life easier.
Installation
------------
You can download the latest version from the Python Package Index PyPI.
.. code:: bash
$ pip install django-sonic-screwdriver
Add the package to your settings.py:
.. code:: python
INSTALLED_APPS = (
...
'django_sonic_screwdriver',
...
)
Settings
--------
.. code:: python
SONIC_SCREWDRIVER = {
# For test purpose
'DEBUG': False,
# Returns file where the version number is located
'VERSION_FILE': 'setup.py',
'PRE_RELEASE_SEPARATOR': '', # '_', '-', '.'
'PATCH_AUTO_TAG': False,
'PATCH_AUTO_TAG_PUSH': False,
'PATCH_AUTO_COMMIT': False,
'GIT_DIR': setting.BASE_DIR,
# Git Tagging
'GIT_TAG_AUTO_COMMIT': False,
'GIT_TAG_AUTO_TAG_PUSH': False,
'GIT_STAGING_PRE_TAG': 'staging',
'GIT_ACTIVATE_PRE_TAG': 'activate',
}
Commands
--------
$ ./manage.py cache:clear
~~~~~~~~~~~~~~~~~~~~~~~~~~
--default Clear cache
$ ./manage.py gen:secretkey
~~~~~~~~~~~~~~~~~~~~~~~~~~
--default Generate a new Secretkey for Django
$ ./manage.py patch
~~~~~~~~~~~~~~~~~~~
-M, --major Set major number
-m, --minor Set minor number
-p, --patch Set patch number
-d, --dev Set dev release (e.g. 1.2.1dev1)
-a, --alpha Set alpha release (e.g. 1.2.1a1)
-b, --beta Set beta release (e.g. 1.2.1b1)
-r, --release-candidate Set release candidate release (e.g. 1.2.1rc1)
-f, --force Force patching
$ ./manage.py git:tag
~~~~~~~~~~~~~~~~~~~~~
--default (is default)
--staging Create a staging tag (e.g. staging-v1.2.3)
--activate Create a activate tag (e.g. activate-v1.2.3)
--push Push tags
$ ./manage.py git:tag:push
~~~~~~~~~~~~~~~~~~~~~~~~~~
--default Push all tags
$ ./manage.py git:tag:delete
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<tag> Remove the latest or given tag (optional).
$ ./manage.py pypi:export
~~~~~~~~~~~~~~~~~~~~~~~~~
-w, --wheel Export project with wheel (recommended)
-u, --upload Upload Project
$ ./manage.py pypi:upload
~~~~~~~~~~~~~~~~~~~~~~~~~
--default Upload project to PyPI via twine
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-sonic-screwdriver-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7b9fb289b80ca2c87dbbdb66e06cc9cadbdbbb7733a779a6abc2421ea738bbc |
|
MD5 | 9c84fd875a33cdfdb8b979c0ac630734 |
|
BLAKE2b-256 | 062d7c6838d6dfb45ae8a65d3b789810696c871f05148315749491bac8d89cd2 |
Close
Hashes for django_sonic_screwdriver-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acc117379fa533c50222b1d96e3728678a5878338adda6fd6ee2a61190829228 |
|
MD5 | e8bf222e3eb58a062e4911b666152ca2 |
|
BLAKE2b-256 | 2144a0e2b54e2d4543cef2350c3e0db4b89605b27280479ee7c4960105f0c862 |