mMecoRelease


Package contains functionalities to release Meco™ packages.

Python Packages

Name Description
mMecoRelease Primary Python package

Python API

mMecoRelease API Reference

Commands

mmecorelease-check

This command runs pre-dependencies on the current package in the development environment but it doesn't release it. This is a convenient command for developers to test the package they are working on before they actually release it.

Flags

Flag Flag Type Default Example Description
re raise-exceptions bool false N/A Raise exceptions if any.

Examples

cd mFileSystem;

mmecorelease-check;

# Example Result

# --------------------------------------------------------------------------------------------------------
PACKAGE RELEASE - CONTAINER
# --------------------------------------------------------------------------------------------------------

    PACKAGE RELEASE - PRE DEPENDENCY
    # ----------------------------------------------------------------------------------------------------
    2020.01.22 - 21:31:03 - INFO    : Generic    - Display Package Info                    : mFileSystem 1.0.0
    2020.01.22 - 21:31:03 - SUCCESS : Generic    - Check Developer                         : OK
    2020.01.22 - 21:31:03 - SUCCESS : Generic    - Check end of Week                       : OK
    2020.01.22 - 21:31:03 - SUCCESS : Generic    - Check Package Development Location      : OK
    2020.01.22 - 21:31:03 - SUCCESS : Generic    - Check Package Version for Releasing     : OK
    2020.01.22 - 21:31:03 - SUCCESS : Generic    - Check App Files                         : OK
    2020.01.22 - 21:31:03 - SUCCESS : Executable - Check Names                             : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Check Package Dependencies              : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Check Python Packages                   : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Check Module Names                      : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Check Exclamation Mark                  : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Check Coding Convention                 : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Run Unit Test                           : OK

mmecorelease-check-all

This command runs pre-dependencies on all the development packages in the active development environment but doesn't release them. This is a convenient command for developers to test all the packages they are working on in their development environment before they actually release them.

Flags

Flag Flag Type Default Example Description
re raise-exceptions bool false N/A Raise exceptions if any.

Examples

mmecorelease-check-all

# Example Result

# --------------------------------------------------------------------------------------------------------
PACKAGE RELEASE - CONTAINER
# --------------------------------------------------------------------------------------------------------

    PACKAGE RELEASE - PRE DEPENDENCY
    # ----------------------------------------------------------------------------------------------------
    2020.01.22 - 21:31:03 - INFO    : Generic    - Display Package Info                    : mFileSystem 1.0.0
    2020.01.22 - 21:31:03 - SUCCESS : Generic    - Check Developer                         : OK
    2020.01.22 - 21:31:03 - SUCCESS : Generic    - Check end of Week                       : OK
    2020.01.22 - 21:31:03 - SUCCESS : Generic    - Check Package Development Location      : OK
    2020.01.22 - 21:31:03 - SUCCESS : Generic    - Check Package Version for Releasing     : OK
    2020.01.22 - 21:31:03 - SUCCESS : Generic    - Check App Files                         : OK
    2020.01.22 - 21:31:03 - SUCCESS : Executable - Check Names                             : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Check Package Dependencies              : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Check Python Packages                   : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Check Module Names                      : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Check Exclamation Mark                  : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Check Coding Convention                 : OK
    2020.01.22 - 21:31:03 - SUCCESS : Python     - Run Unit Test                           : OK

more info displayed...

mmecorelease-release

This command releases a package. You have to be in the root of the package that you want to release.

The package will be released if it passes all the pre-dependencies (tests). If you want to ignore any failed pre-dependencies you can provide ignore failed pre-dependencies flag -ifpre.

Flags

Flag Flag Type Default Example Description
rl run-level int 0 0 0 for all
1 for pre-dependencies only
2 for post-dependencies only
3 for pre and post dependencies only
4 for process only
5 for process and post-dependencies only
ifpred ignore-failed-pre-dependencies bool false N/A Ignore failed pre-dependencies.
ifpostd ignore-failed-post-dependencies bool false N/A Ignore failed post-dependencies.
re raise-exceptions bool false N/A Raise exceptions if any.
dm display-messages int 0 0 0 for none
1 for all messages
2 for info messages
3 for success messages
4 for warning messages
5 for failure messages
di display-info bool false N/A Display info about this container.

Examples

cd sNukeCore;

mmecorelease-release;

# Example Result

# --------------------------------------------------------------------------------------------------------
PACKAGE RELEASE - CONTAINER
# --------------------------------------------------------------------------------------------------------

    PACKAGE RELEASE - PRE DEPENDENCY
    # ----------------------------------------------------------------------------------------------------
    2020.01.22 - 21:39:07 - INFO    : Generic    - Display Package Info                    : sNukeCore 1.0.0
    2020.01.22 - 21:39:07 - SUCCESS : Generic    - Check Developer                         : OK
    2020.01.22 - 21:39:07 - SUCCESS : Generic    - Check end of Week                       : OK
    2020.01.22 - 21:39:07 - SUCCESS : Generic    - Check Package Development Location      : OK
    2020.01.22 - 21:39:07 - SUCCESS : Generic    - Check Package Version for Releasing     : OK
    2020.01.22 - 21:39:07 - SUCCESS : Executable - Check Names                             : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Check Package Dependencies              : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Check Python Packages                   : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Check Module Names                      : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Check Exclamation Mark                  : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Check Coding Convention                 : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Run Unit Test                           : No unittest found for this package.

    -

    PACKAGE RELEASE - PROCESS
    # ----------------------------------------------------------------------------------------------------
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/README.md
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/nuke/12/font/FallingSky.otf
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/nuke/placeholder.txt
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/python/sNukeCore/__init__.py
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/python/sNukeCore/packageInfoLib.py
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/python/sNukeCore/packageReleaseLib.py
    2020.01.22 - 21:39:07 - SUCCESS : Package Release : OK

    -

    PACKAGE RELEASE - POST DEPENDENCY
    # ----------------------------------------------------------------------------------------------------
    2020.01.22 - 21:39:07 - SUCCESS : Generic - Send Notification                          : OK

mmecorelease-release-all

You can use this command to release all packages in the active development environment. You will be prompted with a question whether you really want to do it first. If you answer the question YES, command will initially run pre-dependencies on all the packages, if pre-dependencies pass for all the packages, then they will be release one after another automatically.

Examples

mmecorelease-release-all

# Example Question

Do you want to release all packages in your development environment?

Development Packages Path      : /<PATH>/meco/master/developers/soner/development/main

Project Internal Packages Path : /<PATH>/meco/master/internal

Project External Packages Path : /<PATH>/meco/master/external

Answer (YES, NO):

# Example Result

# --------------------------------------------------------------------------------------------------------
PACKAGE RELEASE - CONTAINER
# --------------------------------------------------------------------------------------------------------

    PACKAGE RELEASE - PRE DEPENDENCY
    # ----------------------------------------------------------------------------------------------------
    2020.01.22 - 21:39:07 - INFO    : Generic    - Display Package Info                    : sNukeCore 1.0.0
    2020.01.22 - 21:39:07 - SUCCESS : Generic    - Check Developer                         : OK
    2020.01.22 - 21:39:07 - SUCCESS : Generic    - Check end of Week                       : OK
    2020.01.22 - 21:39:07 - SUCCESS : Generic    - Check Package Development Location      : OK
    2020.01.22 - 21:39:07 - SUCCESS : Generic    - Check Package Version for Releasing     : OK
    2020.01.22 - 21:39:07 - SUCCESS : Executable - Check Names                             : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Check Package Dependencies              : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Check Python Packages                   : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Check Module Names                      : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Check Exclamation Mark                  : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Check Coding Convention                 : OK
    2020.01.22 - 21:39:07 - SUCCESS : Python     - Run Unit Test                           : No unittest found for this package.

    -

    PACKAGE RELEASE - PROCESS
    # ----------------------------------------------------------------------------------------------------
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/README.md
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/nuke/12/font/FallingSky.otf
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/nuke/placeholder.txt
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/python/sNukeCore/__init__.py
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/python/sNukeCore/packageInfoLib.py
    2020.01.22 - 21:39:07 - INFO    : Package Release : /<PATH>/meco/master/packages/sNukeCore/1.0.0/sNukeCore/python/sNukeCore/packageReleaseLib.py
    2020.01.22 - 21:39:07 - SUCCESS : Package Release : OK

    -

    PACKAGE RELEASE - POST DEPENDENCY
    # ----------------------------------------------------------------------------------------------------
    2020.01.22 - 21:39:07 - SUCCESS : Generic - Send Notification                          : OK