Skip to content

Add source click option used on cron jobs to install ets packages from source#532

Merged
aaronayres35 merged 3 commits into
masterfrom
setup-cron-job
Oct 27, 2020
Merged

Add source click option used on cron jobs to install ets packages from source#532
aaronayres35 merged 3 commits into
masterfrom
setup-cron-job

Conversation

@aaronayres35
Copy link
Copy Markdown
Contributor

fixes #522

This PR adds a --source click option and uses this option on cron jobs to install other ets packages from source.
Note that previously enable was installed from source always and that was how traits, traitsui and pyface got installed. Following Marks comment here: enthought/envisage#325 (comment), I added all of these to __requires__ in __init__.py. Additionally, I made it so that by default enable is not installed from source, but it will be when the --source flag is used.

This follows what is done in other ets projects (e.g https://github.com/enthought/envisage/blob/8245931f7e3dfcb6513bfb7dc2ae9b10ca6f89a1/etstool.py#L255-L273)

Copy link
Copy Markdown
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can you do the set TRAVIS_EVENT_TYPE env var in CI like with the other PRs to exercise the cron job code path in CI? I tested this locally and it works as expected.

@rahulporuri
Copy link
Copy Markdown
Contributor

I'm a little surprised at the fact that the CI passed without needing enable from master.

@aaronayres35 aaronayres35 merged commit 82ac232 into master Oct 27, 2020
@rahulporuri rahulporuri deleted the setup-cron-job branch October 27, 2020 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup cron job to test against dependencies from source

2 participants