Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #4902

[Python-de] Entrypoint Spezifikation : String oder Dict und wie beides?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From "Dr. Volker Jaenisch" <volker.jaenisch@inqbus.de>
Newsgroups de.comp.lang.python
Subject [Python-de] Entrypoint Spezifikation : String oder Dict und wie beides?
Date Thu, 7 Sep 2017 23:15:31 +0200
Lines 69
Message-ID <mailman.1.1504821576.15585.python-de@python.org> (permalink)
References <f6c2ea8a-1169-6849-ca88-c6f036eeb42a@inqbus.de>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de Y5FSRlQtH+7B8s07s+D+zw8Yp5Gm9Lzwxq34KfgCSSIA==
Return-Path <volker.jaenisch@inqbus.de>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
DKIM-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inqbus.de; s=20160215; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fzWppxkui20BbO0AWZ4wxZhIz4RIMAR8gs0W7yaZXDY=; b=f2mIpZeJp3t5WiLTvkVOwlaLYn 3VIewgFK31IF+45NPrikmXX9qp5UPDkm2+G2RA+JSZu+ihrn8d93Xm461a/gY4cXXke8CyFjnetg4 OPpFvO/Bw4y9aFIrde5/8tPpkJqB2OAjvwVJrPbWq6G35tIqIo5flM2A46HpqQEFrmeo=;
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
Content-Language en-US
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.24
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <f6c2ea8a-1169-6849-ca88-c6f036eeb42a@inqbus.de>
Xref csiph.com de.comp.lang.python:4902

Show key headers only | View raw


Servus Python Users!

Ich habe das Problem zwei Entry-Point Spezifikationen zusammen in eine
setup.py zu bekommen.

Zum eine habe ich

entry_points="""
[z3c.autoinclude.plugin]
target = my_base
"""

von z3c.autoinclude.plugin .

Dann brauche ich noch ein Console Script z.B. 

    entry_points={
       'console_scripts' : ['bokeh_server = inqbus.bokeh_plone.bokeh.startup:startup_bokeh'],
    }

Wie man schnell sieht ist das eine ein String, das andere ein Dictionary. 

Dieser naive Versuch 
    entry_points={
       'z3c.autoinclude.plugin':  ['[z3c.autoinclude.plugin] target = plone'],
       'console_scripts' : ['bokeh_server = inqbus.bokeh_plone.bokeh.startup:startup_bokeh'],
    }

scheiterte mit

  File "/home/graphdemoplone/workspace/plone_bokeh/zeocluster/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2695, in get_entry_map
    self._get_metadata('entry_points.txt'), self
  File "/home/graphdemoplone/workspace/plone_bokeh/zeocluster/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2425, in parse_map
    for group, lines in data:
  File "/home/graphdemoplone/workspace/plone_bokeh/zeocluster/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3030, in split_sections
    raise ValueError("Invalid section heading", line)
ValueError: ('Invalid section heading', '[z3c.autoinclude.plugin] target = plone')

Leider gibt die Dokumentation zu pkg-Ressouces also setuptools zu diesem Thema wenig her.

Für jede Hilfe dankbar,

der Volker
 

-- 
=========================================================
   inqbus Scientific Computing    Dr.  Volker Jaenisch
   Richard-Strauss-Straße 1       +49(08861) 690 474 0
   86956 Schongau-West            http://www.inqbus.de
=========================================================

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

[Python-de] Entrypoint Spezifikation : String oder Dict und wie beides? "Dr. Volker Jaenisch" <volker.jaenisch@inqbus.de> - 2017-09-07 23:15 +0200

csiph-web