Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Dr. Volker Jaenisch" 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: References: 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com de.comp.lang.python:4902 Servus Python Users! Ich habe das Problem zwei Entry-Point Spezifikationen zusammen in eine setup.py zu bekommen. Zum eine habe ich entry_points=3D""" [z3c.autoinclude.plugin] target =3D my_base """ von z3c.autoinclude.plugin . Dann brauche ich noch ein Console Script z.B.=20 entry_points=3D{ 'console_scripts' : ['bokeh_server =3D inqbus.bokeh_plone.bokeh.st= artup:startup_bokeh'], } Wie man schnell sieht ist das eine ein String, das andere ein Dictionary.= =20 Dieser naive Versuch=20 entry_points=3D{ 'z3c.autoinclude.plugin': ['[z3c.autoinclude.plugin] target =3D p= lone'], 'console_scripts' : ['bokeh_server =3D inqbus.bokeh_plone.bokeh.st= artup:startup_bokeh'], } scheiterte mit File "/home/graphdemoplone/workspace/plone_bokeh/zeocluster/local/lib/p= ython2.7/site-packages/pkg_resources/__init__.py", line 2695, in get_entr= y_map self._get_metadata('entry_points.txt'), self File "/home/graphdemoplone/workspace/plone_bokeh/zeocluster/local/lib/p= ython2.7/site-packages/pkg_resources/__init__.py", line 2425, in parse_ma= p for group, lines in data: File "/home/graphdemoplone/workspace/plone_bokeh/zeocluster/local/lib/p= ython2.7/site-packages/pkg_resources/__init__.py", line 3030, in split_se= ctions raise ValueError("Invalid section heading", line) ValueError: ('Invalid section heading', '[z3c.autoinclude.plugin] target = =3D plone') Leider gibt die Dokumentation zu pkg-Ressouces also setuptools zu diesem = Thema wenig her. F=C3=BCr jede Hilfe dankbar, der Volker =20 --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D inqbus Scientific Computing Dr. Volker Jaenisch Richard-Strauss-Stra=C3=9Fe 1 +49(08861) 690 474 0 86956 Schongau-West http://www.inqbus.de =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D