Skip to content

Commit

Permalink
[luigi.file] removed (spotify#2832)
Browse files Browse the repository at this point in the history
* luigi.file removed

* master branch in travis
  • Loading branch information
drowoseque authored and m.slavoshevski@cian.ru committed Nov 26, 2019
1 parent d108eb5 commit 4fbdb4a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 33 deletions.
2 changes: 1 addition & 1 deletion luigi/contrib/ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import io

import luigi
import luigi.file
import luigi.local_target
import luigi.format
import luigi.target
from luigi.format import FileWrapper
Expand Down
2 changes: 1 addition & 1 deletion luigi/contrib/opener.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import json

from luigi.file import LocalTarget
from luigi.local_target import LocalTarget
from luigi.mock import MockTarget
from luigi.contrib.s3 import S3Target
from luigi.target import FileSystemException
Expand Down
26 changes: 0 additions & 26 deletions luigi/file.py

This file was deleted.

4 changes: 2 additions & 2 deletions luigi/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def copy(self, path, dest):

class FileSystemTarget(Target):
"""
Base class for FileSystem Targets like :class:`~luigi.file.LocalTarget` and :class:`~luigi.contrib.hdfs.HdfsTarget`.
Base class for FileSystem Targets like :class:`~luigi.local_target.LocalTarget` and :class:`~luigi.contrib.hdfs.HdfsTarget`.
A FileSystemTarget has an associated :py:class:`FileSystem` to which certain operations can be
delegated. By default, :py:meth:`exists` and :py:meth:`remove` are delegated to the
Expand Down Expand Up @@ -313,7 +313,7 @@ class AtomicLocalFile(io.BufferedWriter):
moving it to its final destination.
This class is just for the writing part of the Target. See
:class:`luigi.file.LocalTarget` for example
:class:`luigi.local_target.LocalTarget` for example
"""

def __init__(self, path):
Expand Down
6 changes: 3 additions & 3 deletions test/contrib/opener_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from luigi.contrib.opener import OpenerTarget, NoOpenerError
from luigi.mock import MockTarget
from luigi.file import LocalTarget
from luigi.local_target import LocalTarget

from nose.plugins.attrib import attr

Expand Down Expand Up @@ -79,8 +79,8 @@ def test_local_target(self):
target.open('w').close()
self.assertTrue(LocalTarget.fs.exists(self.local_file))

@mock.patch('luigi.file.LocalTarget.__init__')
@mock.patch('luigi.file.LocalTarget.__del__')
@mock.patch('luigi.local_target.LocalTarget.__init__')
@mock.patch('luigi.local_target.LocalTarget.__del__')
def test_local_tmp_target(self, lt_del_patch, lt_init_patch):
'''Verify local target url with query string
Expand Down

0 comments on commit 4fbdb4a

Please sign in to comment.