public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: "cygwin-apps@cygwin.com" <cygwin-apps@cygwin.com>
Cc: Jon Turney <jon.turney@dronecode.org.uk>
Subject: Re: [ANNOUNCEMENT] cygport 0.36.1-1
Date: Sat, 11 Mar 2023 21:15:59 +0100	[thread overview]
Message-ID: <1f2f0726-e46e-afd8-7f43-c4719f2c0f04@gmail.com> (raw)
In-Reply-To: <announce.35193db5-ad95-ce9d-53fe-4ed535da8279@dronecode.org.uk>

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

On 11.03.2023 17:29, Jon Turney via Cygwin wrote:
> 
> The following packages have been uploaded to the Cygwin distribution:
> 
> * cygport-0.36.1-1
> 

Hi Jon,

I was a bit too late...

Updating the python 3.[89] subpackages, I finally hit
a case where setup.py and setup.cfg are missing as obsolete.

Attached patch solved the issue and allowed to build
python-platformdirs-3.1.1-1


Regards
Marco

[-- Attachment #2: 0001-Allow-wheel-to-manage-project-without-setup.py-and-s.patch --]
[-- Type: text/plain, Size: 1494 bytes --]

From 4081ce236a5d8f9b76afd9c68e489600d7b434f1 Mon Sep 17 00:00:00 2001
From: Marco Atzeri <marco.atzeri@gmail.com>
Date: Sat, 11 Mar 2023 21:00:15 +0100
Subject: [PATCH] Allow wheel to manage project without setup.py and setup.cfg
 and use the pyproject.toml (PEP 518)

---
 cygclass/python-wheel.cygclass | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/cygclass/python-wheel.cygclass b/cygclass/python-wheel.cygclass
index 1ef23826..b0f5288a 100644
--- a/cygclass/python-wheel.cygclass
+++ b/cygclass/python-wheel.cygclass
@@ -159,9 +159,13 @@ fi
 python_wheel_compile() {
 	local ver
 
-	if [ ! -e setup.py ] && [ ! -e setup.cfg ]
+	if [ ! -e  pyproject.toml ]
 	then
-		error "No Python Distutils module detected in source tree"
+		warning "No pyproject.toml (PEP 518)  detected in source tree"
+		if [ ! -e setup.py ] && [ ! -e setup.cfg ]
+		then
+			error "No Python Distutils module detected in source tree"
+		fi
 	fi
 
 	for ver in ${PYTHON_WHEEL_VERSIONS//:/ }
@@ -189,9 +193,13 @@ python_wheel_compile() {
 python_wheel_install() {
 	local ver whl
 
-	if [ ! -e setup.py ] && [ ! -e setup.cfg ]
+	if [ ! -e  pyproject.toml ]
 	then
-		error "No Python Distutils module detected in source tree"
+		warning "No pyproject.toml (PEP 518)  detected in source tree"
+		if [ ! -e setup.py ] && [ ! -e setup.cfg ]
+		then
+			error "No Python Distutils module detected in source tree"
+		fi
 	fi
 
 	for ver in ${PYTHON_WHEEL_VERSIONS//:/ }
-- 
2.39.0


       reply	other threads:[~2023-03-11 20:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <announce.35193db5-ad95-ce9d-53fe-4ed535da8279@dronecode.org.uk>
2023-03-11 20:15 ` Marco Atzeri [this message]
2023-03-26 16:43   ` Jon Turney
2023-04-11  4:14     ` Marco Atzeri
2023-04-11 18:54       ` Jon Turney

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=1f2f0726-e46e-afd8-7f43-c4719f2c0f04@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin-apps@cygwin.com \
    --cc=jon.turney@dronecode.org.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).