Moved attrs_extra to Pillar.
Requires Pillar revision 407aefb9ada8b8d627e29ca14d8ddd9bc758a70f
This commit is contained in:
@@ -1,17 +0,0 @@
|
|||||||
"""Extra functionality for attrs."""
|
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
import attr
|
|
||||||
|
|
||||||
|
|
||||||
def log(name):
|
|
||||||
"""Returns a logger attr.ib
|
|
||||||
|
|
||||||
:param name: name to pass to logging.getLogger()
|
|
||||||
:rtype: attr.ib
|
|
||||||
"""
|
|
||||||
return attr.ib(default=logging.getLogger(name),
|
|
||||||
repr=False,
|
|
||||||
hash=False,
|
|
||||||
cmp=False)
|
|
@@ -13,8 +13,8 @@ import pillarsdk
|
|||||||
import pillar.api.utils
|
import pillar.api.utils
|
||||||
from pillar.web.system_util import pillar_api
|
from pillar.web.system_util import pillar_api
|
||||||
from pillar.api.nodes.custom import register_patch_handler
|
from pillar.api.nodes.custom import register_patch_handler
|
||||||
|
from pillar import attrs_extra
|
||||||
|
|
||||||
from attract import attrs_extra
|
|
||||||
from attract.node_types import node_type_shot, node_type_task
|
from attract.node_types import node_type_shot, node_type_task
|
||||||
|
|
||||||
# From patch operation name to fields that operation may edit.
|
# From patch operation name to fields that operation may edit.
|
||||||
|
@@ -8,8 +8,7 @@ import attr
|
|||||||
import blinker
|
import blinker
|
||||||
import svn.remote
|
import svn.remote
|
||||||
import svn.common
|
import svn.common
|
||||||
|
from pillar import attrs_extra
|
||||||
from . import attrs_extra
|
|
||||||
|
|
||||||
task_logged = blinker.NamedSignal('task_logged')
|
task_logged = blinker.NamedSignal('task_logged')
|
||||||
task_marker_re = re.compile(r'\[(?P<task_id>T\d+)\]')
|
task_marker_re = re.compile(r'\[(?P<task_id>T\d+)\]')
|
||||||
|
@@ -4,9 +4,9 @@ import attr
|
|||||||
import flask_login
|
import flask_login
|
||||||
|
|
||||||
import pillarsdk
|
import pillarsdk
|
||||||
|
from pillar import attrs_extra
|
||||||
from pillar.web.system_util import pillar_api
|
from pillar.web.system_util import pillar_api
|
||||||
|
|
||||||
from attract import attrs_extra
|
|
||||||
from attract.node_types.task import node_type_task
|
from attract.node_types.task import node_type_task
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# Primary requirements:
|
# Primary requirements:
|
||||||
#pillar
|
#pillar
|
||||||
attrs==16.1.0
|
attrs==16.2.0
|
||||||
# Use Sybren's branch, until this pull request is merged:
|
# Use Sybren's branch, until this pull request is merged:
|
||||||
# https://github.com/dsoprea/PySvn/pull/43
|
# https://github.com/dsoprea/PySvn/pull/43
|
||||||
-e git+https://github.com/sybrenstuvel/PySvn.git@sybren-svncommanderror#egg=svn
|
-e git+https://github.com/sybrenstuvel/PySvn.git@sybren-svncommanderror#egg=svn
|
||||||
|
Reference in New Issue
Block a user