Bug#1066036: black: Consider building faster native packages with mypyc

2024-04-20 Thread Julian Gilbey
On Sat, Apr 20, 2024 at 04:50:20PM +0200, Michael R. Crusoe wrote:
> On 19/04/2024 07.17, Julian Gilbey wrote:
> > [...]
> > > Dear Maintainer,
> > > 
> > > I noticed that your package supports building native code extensions using
> > > mypyc. Upstream themselves ship portable binary wheels for better
> > > performance. As a member of the Debian Package Team, I would be happy to 
> > > add
> 
> I should have said "Debian Python Package Team"
> > > this to your package. Please let me know.
> > [...]
> 
> Thanks for the positive response. How do you want the mypyc compilation added 
> to the package? Do you want a diff, a merge-request on Salsa, or a team 
> upload?

I'm not the primary maintainer, so I suggest a team upload once
hatch-pypyc has made it to testing.

Best wishes,

   Julian



Bug#1066036: black: Consider building faster native packages with mypyc

2024-04-20 Thread Michael R. Crusoe



On 19/04/2024 07.17, Julian Gilbey wrote:

On Mon, Mar 11, 2024 at 02:49:26PM +0100, Michael R. Crusoe wrote:

Package: black
Version: 23.1.0-1
Severity: wishlist
X-Debbugs-Cc: cru...@debian.org

Dear Maintainer,

I noticed that your package supports building native code extensions using
mypyc. Upstream themselves ship portable binary wheels for better
performance. As a member of the Debian Package Team, I would be happy to add


I should have said "Debian Python Package Team"

this to your package. Please let me know.


This sounds like a nice idea; the pyproject.toml file states:

[tool.hatch.build.targets.wheel.hooks.mypyc]
enable-by-default = false
dependencies = [
   "hatch-mypyc>=0.16.0",
   "mypy==1.7.1",
   "click==8.1.3",  # avoid https://github.com/pallets/click/issues/2558
]

so you would have to build python3-hatch-pypyc first, though.  If you
can do that, this would be plausible.


Sure, I'll make that package.


 I would guess that using mypyc
would depend on having mypyc in Debian, but at the moment it's only an
ITP (#932003).


Oh! mypyc has been apart of the mypy Debian package since 0.740-1; Thanks, I've 
gone and closed that bug.

Thanks for the positive response. How do you want the mypyc compilation added 
to the package? Do you want a diff, a merge-request on Salsa, or a team upload?


OpenPGP_signature.asc
Description: OpenPGP digital signature


Bug#1066036: black: Consider building faster native packages with mypyc

2024-04-18 Thread Julian Gilbey
On Mon, Mar 11, 2024 at 02:49:26PM +0100, Michael R. Crusoe wrote:
> Package: black
> Version: 23.1.0-1
> Severity: wishlist
> X-Debbugs-Cc: cru...@debian.org
> 
> Dear Maintainer,
> 
> I noticed that your package supports building native code extensions using
> mypyc. Upstream themselves ship portable binary wheels for better
> performance. As a member of the Debian Package Team, I would be happy to add
> this to your package. Please let me know.

This sounds like a nice idea; the pyproject.toml file states:

[tool.hatch.build.targets.wheel.hooks.mypyc]
enable-by-default = false
dependencies = [
  "hatch-mypyc>=0.16.0",
  "mypy==1.7.1",
  "click==8.1.3",  # avoid https://github.com/pallets/click/issues/2558
]

so you would have to build python3-hatch-pypyc first, though.  If you
can do that, this would be plausible.  I would guess that using mypyc
would depend on having mypyc in Debian, but at the moment it's only an
ITP (#932003).

Best wishes,

   Julian



Bug#1066036: black: Consider building faster native packages with mypyc

2024-03-11 Thread Michael R. Crusoe

Package: black
Version: 23.1.0-1
Severity: wishlist
X-Debbugs-Cc: cru...@debian.org

Dear Maintainer,

I noticed that your package supports building native code extensions 
using mypyc. Upstream themselves ship portable binary wheels for better 
performance. As a member of the Debian Package Team, I would be happy to 
add this to your package. Please let me know.


https://pypi.org/project/black/#files

Example Debian packages that uses mypyc to compile on many 
architectures: https://tracker.debian.org/pkg/python-schema-salad


--
Michael R. Crusoe