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


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

[Python-de] Re: Review eines Project Layouts

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Hartmut Goebel <h.goebel@crazy-compilers.com>
Newsgroups de.comp.lang.python
Subject [Python-de] Re: Review eines Project Layouts
Date Sun, 3 Jul 2022 10:04:09 +0200
Organization crazy-compilers.com
Lines 32
Message-ID <3571fa2e-b483-2008-c8d0-de4ec395beba@crazy-compilers.com> (permalink)
References <4LZyBw0LNDz9rxP@submission02.posteo.de>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de l57hskooEg+hERB396haDgeAw5/EJmoJPmyrOM9UNxhg==
Authentication-Results mail.python.org; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
Content-Language de-DE
In-Reply-To <4LZyBw0LNDz9rxP@submission02.posteo.de>
X-Provags-ID V03:K1:AjYCxbwWbzBynPka6rByn193mOqzzwnF3ZWlDI73vw3NGwkSwjz cQZYPaC43IvEE0rBtj5k09+o42eW/8hgOKKXqqvruNYwbr+ENco9QrsHKbISi590YYfuzbk 133srze0RXC+aPLOf69M4I0WTaqBHAimvYioCHTlncazvxOQelxIv5zkRyzYVP3id/Dp52i kKqA4uwNqUHHYrYj+cIqQ==
X-Spam-Flag NO
X-UI-Out-Filterresults notjunk:1;V03:K0:Z/AwfZQRWww=:SpI0g4Kigpr71zK7629b94 nonN93Lhfjz5s2n8KHcmhE1o02EriAhY8OHWBFWH+ZpqxxXrQJ4vy710KcinlEVv6XIbSO4Oe xDGbCUJ5Deu3Fn6GwXWxRWk1csoPSwdZoHoIQsPNMbnRN8un2vKz2vq9x6XZ67WrKEQf3JhhF 5QmMjiEFlavjtCyWBDJb7XacQJHfjd1KVVMV/15dkMDeSeM7oUAScE4Nd8/GsUPeVuL5SC+as +MO+5IIP0Tz9UjZ2d7KgM33rd15niMLlq//YDrhdhk+aPx6mhCLz+xA910BX4QA0Fdem//4Uf mUxkfTCY/NFkl0ev6vvMOaaSkwtbpBw7f0x/MvayEO+zolCkyLg+UGwib3EePsxysgf0RcWfg YhL0r9RdGYLso7MAh4C0sug0Ph09cG52PokbQ0U2AQ2xs05DvpphJ0T5ve5QiDdS/+Fq2Evw9 DGegyg1gqg+DZ/GybxICFltY5VGeGnubtoAeDxLoqj/IFLgStkCfxL7w3wrpFLUG3DAeEWw7P kYCMEchRslPuJw1CsgqD/UGZ6km6YsssiDuOdLRj0kE0nYEiYNqc3eyEs/W+pboV3dBPL2fKx 3uSCoycEzcJbOhj9mswvsG4+80SolCyTCTv2A4IkoxlxQy/DjK926GwmE3AzGZ8k7xvxEFsyb OVE+4zyYHWGkLsjBjDEm4jiOro0RTGuxdgux27/siZtRxGBu7P2Vj2zrY3qSQKEg9IugZ7Owb vBc90oRSj/GabtM+CNrCLNcmN2zLvZLrPYREBWqxWqCl2nIusvxldM/vWSw=
Message-ID-Hash RI43V3QJNUDADFD5MJDXL6265FAKZQLJ
X-Message-ID-Hash RI43V3QJNUDADFD5MJDXL6265FAKZQLJ
X-MailFrom h.goebel@crazy-compilers.com
X-Mailman-Rule-Misses dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-python-de.python.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version 3.3.6b1
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
Archived-At <https://mail.python.org/archives/list/python-de@python.org/message/RI43V3QJNUDADFD5MJDXL6265FAKZQLJ/>
List-Archive <https://mail.python.org/archives/list/python-de@python.org/>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Owner <mailto:python-de-owner@python.org>
List-Post <mailto:python-de@python.org>
List-Subscribe <mailto:python-de-join@python.org>
List-Unsubscribe <mailto:python-de-leave@python.org>
Xref csiph.com de.comp.lang.python:5822

Show key headers only | View raw


Am 02.07.22 um 18:27 schrieb c.buhtz@posteo.jp:
> Dass das "tests" Directory innerhalb des Source Directory (hier
> "styleframe" genannt)

Was Du „Source Directory” nennst, die das „package“. Die Tests dort zu 
haben ist m.E. keine gute Idee, denn dann werden sie überall mit 
installiert, wo das Package installiert wird — und die allerwenigsten 
werden es benötigen oder auch nur bemerken. (Es gibt einige wenige 
Ausnahmen, bei denen das sinnvoll ist, nämlich Bibliotheken, die auch 
Funktionen zum Testen zur Verfügung stellen. Aber auch hier: der größte 
Teil des Codes wird nur von den allermeisten nicht benötigt.)

„Mit installiert‘ bedeutet auch, dass Unnötige Daten durch die Gegend 
transportiert werden und unnötiger Source compiliert wird. Alle das 
kostet Strom — Keinvieh macht auch Mist — und Strom sollen wir 
angesichts der anrollenden Klimiakatastrophe sparen. Und als Entwickler 
haben wir dafür einige Möglichkeiten, z.B. eben möglichst kleine 
Packages auszuliefern.


> "python3 -m unittest styleframe.tests.style_frame_tests.StyleFrameTest"
Du möchtest auf pytest umstellen. :-) 
https://github.com/pytest-dev/unittest2pytest ist Dein Freund.


-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

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


Thread

[Python-de] Review eines Project Layouts <c.buhtz@posteo.jp> - 2022-07-02 16:27 +0000
  [Python-de] Re: Review eines Project Layouts Hartmut Goebel <h.goebel@crazy-compilers.com> - 2022-07-03 10:04 +0200
    [Python-de] Re: Review eines Project Layouts <c.buhtz@posteo.jp> - 2022-07-10 13:53 +0000

csiph-web