Moved attrs_extra to Pillar.

Requires Pillar revision 407aefb9ada8b8d627e29ca14d8ddd9bc758a70f
This commit is contained in:
2016-09-27 13:00:56 +02:00
parent 6ea22dfcce
commit 0eb51a2804
5 changed files with 4 additions and 22 deletions

View File

@@ -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)

View File

@@ -13,8 +13,8 @@ import pillarsdk
import pillar.api.utils
from pillar.web.system_util import pillar_api
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 patch operation name to fields that operation may edit.

View File

@@ -8,8 +8,7 @@ import attr
import blinker
import svn.remote
import svn.common
from . import attrs_extra
from pillar import attrs_extra
task_logged = blinker.NamedSignal('task_logged')
task_marker_re = re.compile(r'\[(?P<task_id>T\d+)\]')

View File

@@ -4,9 +4,9 @@ import attr
import flask_login
import pillarsdk
from pillar import attrs_extra
from pillar.web.system_util import pillar_api
from attract import attrs_extra
from attract.node_types.task import node_type_task

View File

@@ -1,6 +1,6 @@
# Primary requirements:
#pillar
attrs==16.1.0
attrs==16.2.0
# Use Sybren's branch, until this pull request is merged:
# https://github.com/dsoprea/PySvn/pull/43
-e git+https://github.com/sybrenstuvel/PySvn.git@sybren-svncommanderror#egg=svn