Re: [ptxdist] [PATCH 1/2] python3-gunicorn: new package

2022-05-19 Thread Bruno Thomsen
Den ons. 18. maj 2022 kl. 15.47 skrev Michael Olbrich
:
>
> On Sat, May 14, 2022 at 12:50:33PM +0200, Bruno Thomsen wrote:
> > Den fre. 13. maj 2022 kl. 09.15 skrev Michael Olbrich
> > :
> > > On Mon, May 09, 2022 at 02:05:47PM +0200, Bruno Thomsen wrote:
> > > > Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.

> >
> > I will send a version 2 of the patch.
>
> Thanks for digging into this. Unfortunately python3-falcon seems to have
> the same issue now :-/.
>

Looks like the same type of changes where egg packaging has been
added, and some documentation/examples/CI has been removed.

Full package diff below. Maybe using the latest version of python packages
isn't a great idea for the future as they seem pretty happy about silent fixing
archives after release :-/

/Bruno

---8<-

--- c9a1081d1af6df4c5d11843238dbb27b.log 2022-05-19 18:03:32.273676277 +0200
+++ 0172450908573a4449a5937810d512b9.log 2022-05-19 18:03:32.290676321 +0200
@@ -1,14 +1,4 @@
-./falcon-3.1.0/AUTHORS
e138ab040abb925116819a9992b16c325f1780a8ca5893bde7e782ce1b7778f0
-./falcon-3.1.0/BACKERS.md
29a764784d04bf0c7323300f89511e425b4a9cd8c0a6610cad0a16c14aaf6004
-./falcon-3.1.0/CHANGES.rst
d4c21f6ba9bc69bf4640ac1a6bb32b4eb5cc3555b746f0b33d26fc0abc7e21f8
-./falcon-3.1.0/CODEOFCONDUCT.md
6111a78ee608beac41dc28eaa3e74083c14861878fed6b37577ca859b0f410d1
-./falcon-3.1.0/CONTRIBUTING.md
43cd117f20a097f273a35e430dbe57bd253688ffe948388da62e03e9b6a01f3c
 ./falcon-3.1.0/.coveragerc
ce2407b0767ab9ceba1a17b1f57714dfa9c73296184910a49f5ba0d9f873744e
-./falcon-3.1.0/docker/benchmark.sh
ff56ced4941671d4cc0e12340d74464995eac3133fcd5e3f04641a8ab288
-./falcon-3.1.0/docker/bench_py3_cython.Dockerfile
69fd3225856ee2a3c9d4c29bd28aeec6b2aea9f0faad2e5a8a3ed5f21048bbf2
-./falcon-3.1.0/docker/bench_py3.Dockerfile
a5dfb5ee3381434986a7043b109c894ae6d86168f553cdefb803ecbf419c70b9
-./falcon-3.1.0/docker/bench_pypy3.Dockerfile
84ff3cf5f7408861baeabe9df688c3422cc990599ca5e82264711d79d434fb3f
-./falcon-3.1.0/docker/Makefile
5f4c00c4feadac6437be4ce7f1e7cdebe8cf6ed42602bf5ac3610535411c4b37
 ./falcon-3.1.0/docs/api/api.rst
7786475c4d6f57a6e53d175323a400e158df36b554d70faaa796769b167572ad
 ./falcon-3.1.0/docs/api/app.rst
8a5a703bc98004a8a90cf69e09ff1e35acfac61745d01093c5e8a4926ea39294
 ./falcon-3.1.0/docs/api/cookies.rst
52af736d52549a811a8cc08cdea98e04677746ae396f09fd5a751bf2bf2aef67
@@ -46,21 +36,11 @@
 ./falcon-3.1.0/docs/community/help.rst
166a838e673f459427e5bb54d5a1fc0aed4e98269811c61efa71cc92dcd04b9c
 ./falcon-3.1.0/docs/community/index.rst
9539d70483191acb052f0e67451f5c57765ad7970ae4e858ba45cfb0f6210f0d
 ./falcon-3.1.0/docs/conf.py
8eb9d22afdb8ca50b362246111e72b667a0e4c458c6252a22b5b2d0b37d35955
-./falcon-3.1.0/docs/_content/corinne-kutz-211251.jpg
86011fd4564027c0859cb6e9a23382d6e8678b3d5e27f9bf85e48bc9ddee3253
-./falcon-3.1.0/docs/_content/govcert.png
914f0aa221efbd4026253175f6b1eb798c6ec8dd53b89340685c1c523d0d5104
-./falcon-3.1.0/docs/_content/likalo.svg
378a6ba27c20ec390970e30123d80798566ac3fe1eb000a2a6ad644887c47a8e
-./falcon-3.1.0/docs/_content/luhnar.svg
2d0e06c4e6746999166913871ab6adc4203fff5e075cec0122b7a1595132605c
-./falcon-3.1.0/docs/_content/sidebar-sponsors.html
58fd62371f1012c00a03858469229b81d7d3ba81fe584b951da7a213f9bcf88a
 ./falcon-3.1.0/docs/deploy/index.rst
ec1845bf567f8c1f73405a866da20fa595c4e7749f7c30903566afc31c373e8f
 ./falcon-3.1.0/docs/deploy/intro.rst
f53ae833979c5853011edbca29d0536d5b2236603002807aa072921faa76bcb3
 ./falcon-3.1.0/docs/deploy/nginx-uwsgi.rst
260185d71bb96fad540f565bee86466417dac36068f5b83fc635c32878a30453
-./falcon-3.1.0/docs/ext/doorway.py
3b37da02893a1f22823142a1a31b7f2181548640eb622bbbccd19681b9f4b989
-./falcon-3.1.0/docs/ext/__init__.py
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
-./falcon-3.1.0/docs/ext/private_args.py
a2eb546fc928b78d9a2f37ffd3d2ca5cafd8ca9cd6be6b2f359ab6012c22a184
-./falcon-3.1.0/docs/ext/rfc.py
ad84b67bb2f88649788b37bae48621691864ae673b98858726a92124ba761af6
 ./falcon-3.1.0/docs/index.rst
5b929e4708f1cc88b4069d941c5529367927cca1885010f043c9ff9ec26c985a
 ./falcon-3.1.0/docs/Makefile
c3a877c7077af2071c80f016c57a43e24a7b0c89bfdb000b328113fb06240ca4
-./falcon-3.1.0/docs/_newsfragments/.gitignore
902a513dd9774bf8ea61865a3ab734fb16bafa5dcaa958cd45773a8c291dffe4
 ./falcon-3.1.0/docs/_static/custom.css
aa560968e311e6bb8c68dd4e0565ead0036d10130049d8f4429b2cfa21101a30
 ./falcon-3.1.0/docs/_static/img/favicon.ico
86402570c1850f971b60ae0e6c0870abe33a9582afe454eac7e024080e7418a8
 ./falcon-3.1.0/docs/_static/img/logo.svg
69ecee3193ecacabdbd3edc6aa508beb765cd1c7b72d5bc31ebb20c46ccaa5c0
@@ -82,46 +62,6 @@
 ./falcon-3.1.0/docs/user/recipes/request-id.rst
3bcbfc91f25661c19bf0384c221e802223aa6c57ce5d67d89f53b703b9f0cea4
 ./falcon-3.1.0/docs/user/tutorial-asgi.rst
3c61f539ffd542493107b0180834ce36776fc1ea6c96dc696b420f931ab9475a
 ./falcon-3.1.0/docs/user/tutorial.rst
7a10cb54ee364569cfb4b48f99eac7a25167d0077cba4460f9e5d9424d5617cb
-./falcon-3.1.0/e2e-tests/conftest.py

Re: [ptxdist] [PATCH 1/2] python3-gunicorn: new package

2022-05-18 Thread Michael Olbrich
On Sat, May 14, 2022 at 12:50:33PM +0200, Bruno Thomsen wrote:
> Den fre. 13. maj 2022 kl. 09.15 skrev Michael Olbrich
> :
> > On Mon, May 09, 2022 at 02:05:47PM +0200, Bruno Thomsen wrote:
> > > Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.
> > >
> > > Requirement for python3-falcon package.
> > >
> > > Signed-off-by: Bruno Thomsen 
> > > ---
> > >  rules/python3-gunicorn.in   | 11 +++
> > >  rules/python3-gunicorn.make | 57 +
> > >  2 files changed, 68 insertions(+)
> > >  create mode 100644 rules/python3-gunicorn.in
> > >  create mode 100644 rules/python3-gunicorn.make
> 
> > > +# Paths and names
> > > +#
> > > +PYTHON3_GUNICORN_VERSION := 20.1.0
> > > +PYTHON3_GUNICORN_MD5 := ac6254576d53c2ede3456561af3f0549
> >
> > ptxdist: error: Wrong md5sum for 'python3-gunicorn' 
> > (.../src/gunicorn-20.1.0.tar.gz)
> >
> > What's going on here?
> >
> 
> Hi Michael,
> 
> That is strange so I will dig deeper into this.
> 
> Our 3rd party dependencies are stored in a maven repository so I can
> easily go back and get the old hash file.
> 
> ac6254576d53c2ede3456561af3f0549:
> Downloaded from ptx/mirror-pypi 4/4-22.
> 
> db8a7c5c2064000af70286534803bf1d:
> Downloaded from ptx/mirror-pypi 14/5-22.
> 
> 8<-
> 
> ls -l
> total 724
> drwxrwxr-x. 7 bruno bruno   4096 12 feb  2021
> gunicorn-20.1.0.ac6254576d53c2ede3456561af3f0549
> drwxr-xr-x. 7 bruno bruno   4096 27 mar  2021
> gunicorn-20.1.0.db8a7c5c2064000af70286534803bf1d
> -rw-r--r--. 1 bruno bruno 354960 14 maj 11:55
> gunicorn-20.1.0.tar.gz.ac6254576d53c2ede3456561af3f0549
> -rw-r--r--. 1 bruno bruno 370601 14 maj 11:55
> gunicorn-20.1.0.tar.gz.db8a7c5c2064000af70286534803bf1d
> 
> 8<-
> 
> Something has changed in the file even if it's the same package version.
> The new file is around 15K bigger then the old one.
> 
> Let's locate added/removed/changed files.
> 
> 8<-
> 
> cd gunicorn-20.1.0.ac6254576d53c2ede3456561af3f0549/; find . -type f
> -exec md5sum {} + | awk '{print $2 " " $1}' | sort > ../ac62.log; cd -
> cd gunicorn-20.1.0.db8a7c5c2064000af70286534803bf1d/; find . -type f
> -exec md5sum {} + | awk '{print $2 " " $1}' | sort > ../db8a.log; cd -
> 
> diff -u --color ac62.log db8a.log
> --- ac62.log 2022-05-14 12:24:23.879695053 +0200
> +++ db8a.log 2022-05-14 12:24:29.658740539 +0200
> @@ -1,5 +1,3 @@
> -./appveyor.yml bf726b6d38fe739d0ce85347b6920b1a
> -./CONTRIBUTING.md c90900532ee96f9f0628996678ad847e
>  ./docs/gunicorn_ext.py 92e1e306d274bc426936d7d869c83e24
>  ./docs/logo/gunicorn.png 2f1ea5be10f85687cf3aa18c2c8630d4
>  ./docs/logo/gunicorn.svg a3a7ea42b3244422f7a893e7e79300ee
> @@ -138,6 +136,13 @@
>  ./gunicorn/arbiter.py 21989aa239bcb2e08b82937d694372fc
>  ./gunicorn/config.py 497e9a051d2b578fb4da7f4f0e1b80ad
>  ./gunicorn/debug.py 380b0787c429aa7b9e4982f0f40c5a5a
> +./gunicorn.egg-info/dependency_links.txt 68b329da9893e34099c7d8ad5cb9c940
> +./gunicorn.egg-info/entry_points.txt 99220ac82ecf0327be9a9408bb4e7264
> +./gunicorn.egg-info/not-zip-safe 68b329da9893e34099c7d8ad5cb9c940
> +./gunicorn.egg-info/PKG-INFO 2cc0989287a8ec45c837c23386a7e5fc
> +./gunicorn.egg-info/requires.txt 432b975e80c2fd6a8a90fa9656cf3f59
> +./gunicorn.egg-info/SOURCES.txt 802689c49aa6bb426dba36c9fbcd904f
> +./gunicorn.egg-info/top_level.txt b4e582fbec7d7ee5253b0afcf4063449
>  ./gunicorn/errors.py ed93944e0b91e1546220686e9ce983bb
>  ./gunicorn/glogging.py 015ea63387d08f09e4ef6cbaadf171d3
>  ./gunicorn/http/body.py 175b02e961bc2f81adaaa07a6f95c6eb
> @@ -166,16 +171,13 @@
>  ./gunicorn/workers/sync.py 659cb0f8197a0916c9ec5a2b9ce49a3e
>  ./gunicorn/workers/workertmp.py 4d961797f72bc61868b2e218fbf9857f
>  ./LICENSE f75f3fb94cdeab1d607e2adaa6077752
> -./MAINTAINERS dfbfe4c49e8a0e2835b5a6e0305d1719
> -./Makefile f655c000182827cff72803ac4e6be357
>  ./MANIFEST.in ea4e22f5a74bd4b6039ba6840f27a47c
>  ./NOTICE 4ff3dba58ace0076580106c9f300ae68
> -./.pylintrc ec0d83fb315bf216c6e2fff9434bcc78
> +./PKG-INFO 2cc0989287a8ec45c837c23386a7e5fc
>  ./README.rst 99bc9aa2bc6875dc46d65beb8f0fb1ae
>  ./requirements_dev.txt b553389a8cf923276becc7faed4b4899
>  ./requirements_test.txt a1677998f8d772c35e48601cfb885a43
> -./scripts/update_thanks.py bd9c215fe3200edf433f2a68a1167440
> -./setup.cfg 837af3a24e0c3f201c4a81226bb019bf
> +./setup.cfg 2d3f98eaab1812a5edd280bb18f243d3
>  ./setup.py a748b86c25e165c86175ce6d2d1b6dfa
>  ./tests/config/__init__.py d41d8cd98f00b204e9800998ecf8427e
>  ./tests/config/test_cfg_alt.py 284d27ff498c3badae9f164550c0fed7
> @@ -315,5 +317,3 @@
>  ./tests/workers/test_geventlet.py 5cbb5945a1a816d26af38e012a250bae
>  ./tests/workers/test_ggevent.py 7bd10538d8df95c35c0da1ea20b44b63
>  ./THANKS 4d2ec48c381175c4f003309016691eae
> -./tox.ini d4ce66c531dded8c8403fdad1cfbc858
> -./.travis.yml ec6cb8c8410da9f824195880f9306ecb
> 
> 8<-
> 
> So 

Re: [ptxdist] [PATCH 1/2] python3-gunicorn: new package

2022-05-14 Thread Bruno Thomsen
Den fre. 13. maj 2022 kl. 09.15 skrev Michael Olbrich
:
>
> On Mon, May 09, 2022 at 02:05:47PM +0200, Bruno Thomsen wrote:
> > Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.
> >
> > Requirement for python3-falcon package.
> >
> > Signed-off-by: Bruno Thomsen 
> > ---
> >  rules/python3-gunicorn.in   | 11 +++
> >  rules/python3-gunicorn.make | 57 +
> >  2 files changed, 68 insertions(+)
> >  create mode 100644 rules/python3-gunicorn.in
> >  create mode 100644 rules/python3-gunicorn.make

> > +# Paths and names
> > +#
> > +PYTHON3_GUNICORN_VERSION := 20.1.0
> > +PYTHON3_GUNICORN_MD5 := ac6254576d53c2ede3456561af3f0549
>
> ptxdist: error: Wrong md5sum for 'python3-gunicorn' 
> (.../src/gunicorn-20.1.0.tar.gz)
>
> What's going on here?
>

Hi Michael,

That is strange so I will dig deeper into this.

Our 3rd party dependencies are stored in a maven repository so I can
easily go back and get the old hash file.

ac6254576d53c2ede3456561af3f0549:
Downloaded from ptx/mirror-pypi 4/4-22.

db8a7c5c2064000af70286534803bf1d:
Downloaded from ptx/mirror-pypi 14/5-22.

8<-

ls -l
total 724
drwxrwxr-x. 7 bruno bruno   4096 12 feb  2021
gunicorn-20.1.0.ac6254576d53c2ede3456561af3f0549
drwxr-xr-x. 7 bruno bruno   4096 27 mar  2021
gunicorn-20.1.0.db8a7c5c2064000af70286534803bf1d
-rw-r--r--. 1 bruno bruno 354960 14 maj 11:55
gunicorn-20.1.0.tar.gz.ac6254576d53c2ede3456561af3f0549
-rw-r--r--. 1 bruno bruno 370601 14 maj 11:55
gunicorn-20.1.0.tar.gz.db8a7c5c2064000af70286534803bf1d

8<-

Something has changed in the file even if it's the same package version.
The new file is around 15K bigger then the old one.

Let's locate added/removed/changed files.

8<-

cd gunicorn-20.1.0.ac6254576d53c2ede3456561af3f0549/; find . -type f
-exec md5sum {} + | awk '{print $2 " " $1}' | sort > ../ac62.log; cd -
cd gunicorn-20.1.0.db8a7c5c2064000af70286534803bf1d/; find . -type f
-exec md5sum {} + | awk '{print $2 " " $1}' | sort > ../db8a.log; cd -

diff -u --color ac62.log db8a.log
--- ac62.log 2022-05-14 12:24:23.879695053 +0200
+++ db8a.log 2022-05-14 12:24:29.658740539 +0200
@@ -1,5 +1,3 @@
-./appveyor.yml bf726b6d38fe739d0ce85347b6920b1a
-./CONTRIBUTING.md c90900532ee96f9f0628996678ad847e
 ./docs/gunicorn_ext.py 92e1e306d274bc426936d7d869c83e24
 ./docs/logo/gunicorn.png 2f1ea5be10f85687cf3aa18c2c8630d4
 ./docs/logo/gunicorn.svg a3a7ea42b3244422f7a893e7e79300ee
@@ -138,6 +136,13 @@
 ./gunicorn/arbiter.py 21989aa239bcb2e08b82937d694372fc
 ./gunicorn/config.py 497e9a051d2b578fb4da7f4f0e1b80ad
 ./gunicorn/debug.py 380b0787c429aa7b9e4982f0f40c5a5a
+./gunicorn.egg-info/dependency_links.txt 68b329da9893e34099c7d8ad5cb9c940
+./gunicorn.egg-info/entry_points.txt 99220ac82ecf0327be9a9408bb4e7264
+./gunicorn.egg-info/not-zip-safe 68b329da9893e34099c7d8ad5cb9c940
+./gunicorn.egg-info/PKG-INFO 2cc0989287a8ec45c837c23386a7e5fc
+./gunicorn.egg-info/requires.txt 432b975e80c2fd6a8a90fa9656cf3f59
+./gunicorn.egg-info/SOURCES.txt 802689c49aa6bb426dba36c9fbcd904f
+./gunicorn.egg-info/top_level.txt b4e582fbec7d7ee5253b0afcf4063449
 ./gunicorn/errors.py ed93944e0b91e1546220686e9ce983bb
 ./gunicorn/glogging.py 015ea63387d08f09e4ef6cbaadf171d3
 ./gunicorn/http/body.py 175b02e961bc2f81adaaa07a6f95c6eb
@@ -166,16 +171,13 @@
 ./gunicorn/workers/sync.py 659cb0f8197a0916c9ec5a2b9ce49a3e
 ./gunicorn/workers/workertmp.py 4d961797f72bc61868b2e218fbf9857f
 ./LICENSE f75f3fb94cdeab1d607e2adaa6077752
-./MAINTAINERS dfbfe4c49e8a0e2835b5a6e0305d1719
-./Makefile f655c000182827cff72803ac4e6be357
 ./MANIFEST.in ea4e22f5a74bd4b6039ba6840f27a47c
 ./NOTICE 4ff3dba58ace0076580106c9f300ae68
-./.pylintrc ec0d83fb315bf216c6e2fff9434bcc78
+./PKG-INFO 2cc0989287a8ec45c837c23386a7e5fc
 ./README.rst 99bc9aa2bc6875dc46d65beb8f0fb1ae
 ./requirements_dev.txt b553389a8cf923276becc7faed4b4899
 ./requirements_test.txt a1677998f8d772c35e48601cfb885a43
-./scripts/update_thanks.py bd9c215fe3200edf433f2a68a1167440
-./setup.cfg 837af3a24e0c3f201c4a81226bb019bf
+./setup.cfg 2d3f98eaab1812a5edd280bb18f243d3
 ./setup.py a748b86c25e165c86175ce6d2d1b6dfa
 ./tests/config/__init__.py d41d8cd98f00b204e9800998ecf8427e
 ./tests/config/test_cfg_alt.py 284d27ff498c3badae9f164550c0fed7
@@ -315,5 +317,3 @@
 ./tests/workers/test_geventlet.py 5cbb5945a1a816d26af38e012a250bae
 ./tests/workers/test_ggevent.py 7bd10538d8df95c35c0da1ea20b44b63
 ./THANKS 4d2ec48c381175c4f003309016691eae
-./tox.ini d4ce66c531dded8c8403fdad1cfbc858
-./.travis.yml ec6cb8c8410da9f824195880f9306ecb

8<-

So some egg and pkg info has been added and some CI has
been removed. Let's look into the setup.cfg as that might be
the most interesting files that has changed.

8<-

diff -u --color
gunicorn-20.1.0.ac6254576d53c2ede3456561af3f0549/setup.cfg

Re: [ptxdist] [PATCH 1/2] python3-gunicorn: new package

2022-05-13 Thread Michael Olbrich
On Mon, May 09, 2022 at 02:05:47PM +0200, Bruno Thomsen wrote:
> Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.
> 
> Requirement for python3-falcon package.
> 
> Signed-off-by: Bruno Thomsen 
> ---
>  rules/python3-gunicorn.in   | 11 +++
>  rules/python3-gunicorn.make | 57 +
>  2 files changed, 68 insertions(+)
>  create mode 100644 rules/python3-gunicorn.in
>  create mode 100644 rules/python3-gunicorn.make
> 
> diff --git a/rules/python3-gunicorn.in b/rules/python3-gunicorn.in
> new file mode 100644
> index 0..d010ea900
> --- /dev/null
> +++ b/rules/python3-gunicorn.in
> @@ -0,0 +1,11 @@
> +## SECTION=python3
> +
> +config PYTHON3_GUNICORN
> + bool
> + select PYTHON3
> + prompt "gunicorn"
> + help
> +   Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.
> +   It's a pre-fork worker model. The Gunicorn server is broadly
> +   compatible with various web frameworks, simply implemented,
> +   light on server resources, and fairly speedy.
> diff --git a/rules/python3-gunicorn.make b/rules/python3-gunicorn.make
> new file mode 100644
> index 0..a37aa8f04
> --- /dev/null
> +++ b/rules/python3-gunicorn.make
> @@ -0,0 +1,57 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2022 by Bruno Thomsen 
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_GUNICORN) += python3-gunicorn
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_GUNICORN_VERSION := 20.1.0
> +PYTHON3_GUNICORN_MD5 := ac6254576d53c2ede3456561af3f0549

ptxdist: error: Wrong md5sum for 'python3-gunicorn' 
(.../src/gunicorn-20.1.0.tar.gz)

What's going on here?

Michael

> +PYTHON3_GUNICORN := gunicorn-$(PYTHON3_GUNICORN_VERSION)
> +PYTHON3_GUNICORN_SUFFIX  := tar.gz
> +PYTHON3_GUNICORN_URL := $(call ptx/mirror-pypi, gunicorn, 
> $(PYTHON3_GUNICORN).$(PYTHON3_GUNICORN_SUFFIX))
> +PYTHON3_GUNICORN_SOURCE  := 
> $(SRCDIR)/$(PYTHON3_GUNICORN).$(PYTHON3_GUNICORN_SUFFIX)
> +PYTHON3_GUNICORN_DIR := $(BUILDDIR)/$(PYTHON3_GUNICORN)
> +PYTHON3_GUNICORN_LICENSE := MIT
> +PYTHON3_GUNICORN_LICENSE_FILES   := \
> + file://LICENSE;md5=f75f3fb94cdeab1d607e2adaa6077752
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +PYTHON3_GUNICORN_CONF_TOOL   := python3
> +PYTHON3_GUNICORN_MAKE_OPT:= install_scripts
> +
> +# 
> 
> +# Target-Install
> +# 
> 
> +
> +$(STATEDIR)/python3-gunicorn.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, python3-gunicorn)
> + @$(call install_fixup, python3-gunicorn,PRIORITY,optional)
> + @$(call install_fixup, python3-gunicorn,SECTION,base)
> + @$(call install_fixup, python3-gunicorn,AUTHOR,"Bruno Thomsen 
> ")
> + @$(call install_fixup, python3-gunicorn,DESCRIPTION,missing)
> +
> + @$(call install_glob, python3-gunicorn, 0, 0, -, \
> + $(PYTHON3_SITEPACKAGES),, *.py)
> +
> + @$(call install_copy, python3-gunicorn, 0, 0, 0775, -, 
> /usr/bin/gunicorn)
> +
> + @$(call install_finish, python3-gunicorn)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> 
> base-commit: 0b3d1b74a16d1c8d47e1bb5ac2f34f3def01aeac
> -- 
> 2.35.1
> 
> 
> 

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |



[ptxdist] [PATCH 1/2] python3-gunicorn: new package

2022-05-09 Thread Bruno Thomsen
Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.

Requirement for python3-falcon package.

Signed-off-by: Bruno Thomsen 
---
 rules/python3-gunicorn.in   | 11 +++
 rules/python3-gunicorn.make | 57 +
 2 files changed, 68 insertions(+)
 create mode 100644 rules/python3-gunicorn.in
 create mode 100644 rules/python3-gunicorn.make

diff --git a/rules/python3-gunicorn.in b/rules/python3-gunicorn.in
new file mode 100644
index 0..d010ea900
--- /dev/null
+++ b/rules/python3-gunicorn.in
@@ -0,0 +1,11 @@
+## SECTION=python3
+
+config PYTHON3_GUNICORN
+   bool
+   select PYTHON3
+   prompt "gunicorn"
+   help
+ Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.
+ It's a pre-fork worker model. The Gunicorn server is broadly
+ compatible with various web frameworks, simply implemented,
+ light on server resources, and fairly speedy.
diff --git a/rules/python3-gunicorn.make b/rules/python3-gunicorn.make
new file mode 100644
index 0..a37aa8f04
--- /dev/null
+++ b/rules/python3-gunicorn.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2022 by Bruno Thomsen 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_GUNICORN) += python3-gunicorn
+
+#
+# Paths and names
+#
+PYTHON3_GUNICORN_VERSION   := 20.1.0
+PYTHON3_GUNICORN_MD5   := ac6254576d53c2ede3456561af3f0549
+PYTHON3_GUNICORN   := gunicorn-$(PYTHON3_GUNICORN_VERSION)
+PYTHON3_GUNICORN_SUFFIX:= tar.gz
+PYTHON3_GUNICORN_URL   := $(call ptx/mirror-pypi, gunicorn, 
$(PYTHON3_GUNICORN).$(PYTHON3_GUNICORN_SUFFIX))
+PYTHON3_GUNICORN_SOURCE:= 
$(SRCDIR)/$(PYTHON3_GUNICORN).$(PYTHON3_GUNICORN_SUFFIX)
+PYTHON3_GUNICORN_DIR   := $(BUILDDIR)/$(PYTHON3_GUNICORN)
+PYTHON3_GUNICORN_LICENSE   := MIT
+PYTHON3_GUNICORN_LICENSE_FILES := \
+   file://LICENSE;md5=f75f3fb94cdeab1d607e2adaa6077752
+
+# 
+# Prepare
+# 
+
+PYTHON3_GUNICORN_CONF_TOOL := python3
+PYTHON3_GUNICORN_MAKE_OPT  := install_scripts
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/python3-gunicorn.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, python3-gunicorn)
+   @$(call install_fixup, python3-gunicorn,PRIORITY,optional)
+   @$(call install_fixup, python3-gunicorn,SECTION,base)
+   @$(call install_fixup, python3-gunicorn,AUTHOR,"Bruno Thomsen 
")
+   @$(call install_fixup, python3-gunicorn,DESCRIPTION,missing)
+
+   @$(call install_glob, python3-gunicorn, 0, 0, -, \
+   $(PYTHON3_SITEPACKAGES),, *.py)
+
+   @$(call install_copy, python3-gunicorn, 0, 0, 0775, -, 
/usr/bin/gunicorn)
+
+   @$(call install_finish, python3-gunicorn)
+
+   @$(call touch)
+
+# vim: syntax=make

base-commit: 0b3d1b74a16d1c8d47e1bb5ac2f34f3def01aeac
-- 
2.35.1