All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>,
	Simon Glass <sjg@chromium.org>
Subject: [PATCH v2 4/8] patman: rename main script to __main__.py
Date: Mon, 19 Dec 2022 09:52:53 -0500	[thread overview]
Message-ID: <20221219145258.32046-4-maxim.cournoyer@savoirfairelinux.com> (raw)
In-Reply-To: <20221219145258.32046-1-maxim.cournoyer@savoirfairelinux.com>

This allows running the package as a Python module, like e.g.:

    $ python -m patman

It also prevents Pytest from attempting to parse main.py, which
would cause errors.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
---

(no changes since v1)

 tools/patman/{main.py => __main__.py} | 0
 tools/patman/patman                   | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename tools/patman/{main.py => __main__.py} (100%)

diff --git a/tools/patman/main.py b/tools/patman/__main__.py
similarity index 100%
rename from tools/patman/main.py
rename to tools/patman/__main__.py
diff --git a/tools/patman/patman b/tools/patman/patman
index 11a5d8e18a..5a427d1942 120000
--- a/tools/patman/patman
+++ b/tools/patman/patman
@@ -1 +1 @@
-main.py
\ No newline at end of file
+__main__.py
\ No newline at end of file
-- 
2.38.1


  parent reply	other threads:[~2022-12-19 14:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19 14:52 [PATCH v2 1/8] patman: cosmetic: Fix PEP 8 warnings for the gitutil module Maxim Cournoyer
2022-12-19 14:52 ` [PATCH v2 2/8] patman: locate test data files via __file__ and pathlib Maxim Cournoyer
2022-12-19 19:20   ` Simon Glass
2022-12-19 14:52 ` [PATCH v2 3/8] patman: invoke the checkpatch.pl script with '--u-boot' and '--strict' Maxim Cournoyer
2022-12-19 19:20   ` Simon Glass
2022-12-19 14:52 ` Maxim Cournoyer [this message]
2022-12-19 19:20   ` [PATCH v2 4/8] patman: rename main script to __main__.py Simon Glass
2022-12-19 14:52 ` [PATCH v2 5/8] patman: add pytest configuration file Maxim Cournoyer
2022-12-19 19:20   ` Simon Glass
2022-12-19 14:52 ` [PATCH v2 6/8] patman: hide the 'test' action unless test data is available Maxim Cournoyer
2022-12-19 19:20   ` Simon Glass
2022-12-19 14:52 ` [PATCH v2 7/8] patman: document how to run test suite via pytest Maxim Cournoyer
2022-12-19 19:20   ` Simon Glass
2022-12-19 14:52 ` [PATCH v2 8/8] patman: document default 'send' command Maxim Cournoyer
2022-12-19 19:20   ` Simon Glass
2022-12-19 19:20 ` [PATCH v2 1/8] patman: cosmetic: Fix PEP 8 warnings for the gitutil module Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221219145258.32046-4-maxim.cournoyer@savoirfairelinux.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=maxim.cournoyer@savoirfairelinux.com \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.