Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move stuff to contrib #1997

Merged
merged 2 commits into from
Feb 2, 2017
Merged

Conversation

Tarrasch
Copy link
Contributor

Description

While it's of course a bit subjective that what is core and not. I
settled on choosing these modules. I found the rest either to be kind
of core or very hard to move and eventually create seperate packages
for.

I conciously did not create an luigi/mrrunner.py importing contrib, as
it will not do as one expects as you typically will use .__file__ on
it to ship it with your map reduce job.

Motivation and Context

This is a step in the direction of defining something that is later core. Eventually luigi.contrib can be split into modules.

Have you tested this? If so, how?

Nope. I tried to edit the files carefully, and then there will be Travis testing this out.

Copy link
Collaborator

@dlstadther dlstadther left a comment

Choose a reason for hiding this comment

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

I generally agree with these changes, it should just be noted explicitly that this will require all Luigi users to update their import statements upon bumping Luigi versions to 2.6.0(?)

@Tarrasch
Copy link
Contributor Author

@dlstadther, well, they'll only get an deprecation warning in the beginning. The temporary backward compatibility modules will eventually be deleted tough. So they have time to upgrade between versions.

While it's of course a bit subjective that what is core and not. I
settled on choosing these modules.  I found the rest either to be kind
of core or very hard to move and eventually create seperate packages
for.

I conciously did not create an `luigi/mrrunner.py` importing contrib, as
it will not do as one expects as you typically will use `.__file__` on
it to ship it with your map reduce job.
And also guide away new users from using this pretty old technology.
@Tarrasch Tarrasch force-pushed the move_stuff_to_contrib branch from d09ff96 to 1bef1d0 Compare February 2, 2017 07:44
@Tarrasch Tarrasch merged commit f3bc4fd into spotify:master Feb 2, 2017
@Tarrasch Tarrasch deleted the move_stuff_to_contrib branch February 2, 2017 08:37
Tarrasch added a commit to Tarrasch/luigi that referenced this pull request Jul 12, 2017
After this commit the following imports will no longer work

    import luigi.file
    import luigi.s3
    import luigi.postgres

Instead use

    import luigi.contrib.{file,s3,postgres}

This is a continution on spotify#1997
Tarrasch added a commit to Tarrasch/luigi that referenced this pull request Jul 12, 2017
After this commit the following imports will no longer work

    import luigi.s3
    import luigi.postgres

Instead use

    import luigi.contrib.{s3,postgres}

This is a continution on spotify#1997
Tarrasch added a commit that referenced this pull request Aug 25, 2017
After this commit the following imports will no longer work

    import luigi.s3
    import luigi.postgres

Instead use

    import luigi.contrib.{s3,postgres}

This is a continution on #1997
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.

2 participants