Repository: StackStorm/st2

Issue:
Add version string to st2tests to make it installable
Prior to this change, this will fail:

    cd st2tests/st2tests
    pip install .

After this change that command successfully installs the `st2tests` package. This will also work for installing via GitHub as in:

    pip install -e git+https://github.com/StackStorm/st2.git@v3.2.0#egg=st2tests&subdirectory=st2tests

The original request in #2574 is to get st2tests onto PyPI, and I'm not sure if this will accomplish that request, but this is a good first step.


Discussion:
[![CLA assistant check](https://cla-assistant.io/pull/badge/signed)](https://cla-assistant.io/StackStorm/st2?pullRequest=4982) <br/>All committers have signed the CLA.
I see I need to sign the CLA, please wait while I seek approval to do so. In the meantime, I'm investigating the failure in Integration Tests, definitely seems like this somehow broke a test.
I'm blocked on running tests because of #3934 (I'm on OSX), though I might see if I can get enough installed to just run the st2tests integration tests.
You can also use Vagrant (https://github.com/stackstorm/st2vagrant) or Docker for development as StackStorm comes with lots of requirements and infra, including DB/MQ/etc.

@StephenWeber BTW, do you think it would be easier for you to sign DCO or CLA, considering your work environment?
We may switch to DCO soon.
Thanks for the tip on testing!

> do you think it would be easier for you to sign DCO or CLA, considering your work environment?
> We may switch to DCO soon.

We have an internal process for CLA, I do not believe we have a process for DCO but I can ask.

That said, my request is in with Legal and I expect an answer soon.
I heard back from legal, and they did say that a DCO would be easier - they prefer to sign company-level CLAs. I haven't gotten confirmation back that I can sign the individual CLA but I expect that to be approved this week.

In the meantime, I suppose I could also branch off of v3.2 and provide a similar PR for that in case a patch ever is released for that? My deployment is using v3.2 for the time being.
[current Integration test](https://travis-ci.org/github/StackStorm/st2/jobs/708801209) error:

    Python wrapper process script took more than 0.31 seconds to execute (0.3175). This most likely means
    that a direct or in-direct import of a module which takes a long time to load has been added (e.g.
    jsonschema, pecan, kombu, etc).`

I know I'm adding a new project import, and it's not over by much (0.0175 seconds) - unfortunately other tests that pass do not print out the actual value so I don't know how much import time I'm adding to the system with this change..
Integration tests failed to complete in time, closing and reopening ticket to trigger a new build.
Now the integration tests are back to failing for `test_process_wrapper_exits_in_reasonable_timeframe`, I'll see about running these locally... but I probably need help...

Resolving patch:
diff --git a/st2tests/st2tests/__init__.py b/st2tests/st2tests/__init__.py
--- a/st2tests/st2tests/__init__.py
+++ b/st2tests/st2tests/__init__.py
@@ -29,3 +29,5 @@
     'DbModelTestCase',
     'WorkflowTestCase'
 ]
+
+__version__ = '3.3dev'


Test patch: