Skip to contentSkip to conversation

package/python-aiohttp-security: new package

PATCH New james.hilliard1 at gmail.com 3 participants 8 messages Dec 6, 2018 – Dec 7, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-aiohttp-security: new package

From: James Hilliard <[email protected]>

security for aiohttp.web.

---
 DEVELOPERS                                                 |  1 +
 package/Config.in                                          |  1 +
 package/python-aiohttp-security/Config.in                  |  8 ++++++++
 .../python-aiohttp-security/python-aiohttp-security.hash   |  5 +++++
 package/python-aiohttp-security/python-aiohttp-security.mk | 14 ++++++++++++++
 5 files changed, 29 insertions(+)
 create mode 100644 package/python-aiohttp-security/Config.in
 create mode 100644 package/python-aiohttp-security/python-aiohttp-security.hash
 create mode 100644 package/python-aiohttp-security/python-aiohttp-security.mk
DEVELOPERS +1 -0
index c289b3f..b9bb05b 100644
@@ -992,6 +992,7 @@ F:	configs/pine64_sopine_defconfig
 N:	James Hilliard <[email protected]>
 F:	package/python-aiodns/
 F:	package/python-aiohttp/
+F:	package/python-aiohttp-security/
 F:	package/python-async-timeout/
 F:	package/python-cchardet/
 F:	package/python-multidict/
package/Config.in +1 -0
index f6252f2..f3c8b56 100644
@@ -799,6 +799,7 @@ menu "External python modules"
 	source "package/python-aiocoap/Config.in"
 	source "package/python-aiodns/Config.in"
 	source "package/python-aiohttp/Config.in"
+	source "package/python-aiohttp-security/Config.in"
 	source "package/python-alsaaudio/Config.in"
 	source "package/python-argh/Config.in"
 	source "package/python-arrow/Config.in"
package/python-aiohttp-security/Config.in new file +8 -0
new file mode 100644
index 0000000..6695ce3
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_AIOHTTP_SECURITY
+	bool "python-aiohttp-security"
+	depends on BR2_PACKAGE_PYTHON3
+	select BR2_PACKAGE_PYTHON_AIOHTTP # runtime
+	help
+	  security for aiohttp.web.
+
+	  https://github.com/aio-libs/aiohttp_security/
package/python-aiohttp-security/python-aiohttp-security.hash new file +5 -0
new file mode 100644
index 0000000..1d2604c
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/aiohttp-security/json
+md5	1624f982d7a779e6ed396ef2ed20acc7  aiohttp-security-0.4.0.tar.gz
+sha256	40d4bb150454e392c2dfa3620f6eab28e140e94cf0c2d3b4bf43aef653ec9405  aiohttp-security-0.4.0.tar.gz
+# Locally computed sha256 checksums
+sha256	a1cc8ff7210897d55d2552fa0792340f8e59720e0160b6918699d40f9a782b1c  LICENSE
package/python-aiohttp-security/python-aiohttp-security.mk new file +14 -0
new file mode 100644
index 0000000..9ab3b16
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-aiohttp-security
+#
+################################################################################
+
+PYTHON_AIOHTTP_SECURITY_VERSION = 0.4.0
+PYTHON_AIOHTTP_SECURITY_SOURCE = aiohttp-security-$(PYTHON_AIOHTTP_SECURITY_VERSION).tar.gz
+PYTHON_AIOHTTP_SECURITY_SITE = https://files.pythonhosted.org/packages/36/01/d85be376b7c1773b3cb7849cd56dc7d38165664df7de2d3e20af507ef5bb
+PYTHON_AIOHTTP_SECURITY_SETUP_TYPE = setuptools
+PYTHON_AIOHTTP_SECURITY_LICENSE = Apache-2.0
+PYTHON_AIOHTTP_SECURITY_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 package/python-aiohttp-security: new package

Quoted 47 lines · On Fri, Dec 7, 2018 at 12:33 AM <[email protected]> wrote:

From: James Hilliard <[email protected]>

security for aiohttp.web.

---
 DEVELOPERS                                                 |  1 +
 package/Config.in                                          |  1 +
 package/python-aiohttp-security/Config.in                  |  8 ++++++++
 .../python-aiohttp-security/python-aiohttp-security.hash   |  5 +++++
 package/python-aiohttp-security/python-aiohttp-security.mk | 14 ++++++++++++++
 5 files changed, 29 insertions(+)
 create mode 100644 package/python-aiohttp-security/Config.in
 create mode 100644 package/python-aiohttp-security/python-aiohttp-security.hash
 create mode 100644 package/python-aiohttp-security/python-aiohttp-security.mk
DEVELOPERS +1 -0
index c289b3f..b9bb05b 100644
@@ -992,6 +992,7 @@ F:  configs/pine64_sopine_defconfig
 N:     James Hilliard <[email protected]>
 F:     package/python-aiodns/
 F:     package/python-aiohttp/
+F:     package/python-aiohttp-security/
 F:     package/python-async-timeout/
 F:     package/python-cchardet/
 F:     package/python-multidict/
package/Config.in +1 -0
index f6252f2..f3c8b56 100644
@@ -799,6 +799,7 @@ menu "External python modules"
        source "package/python-aiocoap/Config.in"
        source "package/python-aiodns/Config.in"
        source "package/python-aiohttp/Config.in"
+       source "package/python-aiohttp-security/Config.in"
        source "package/python-alsaaudio/Config.in"
        source "package/python-argh/Config.in"
        source "package/python-arrow/Config.in"
package/python-aiohttp-security/Config.in new file +0 -0
new file mode 100644
index 0000000..6695ce3

package/python-aiohttp-security/Config.in line 6

Quoted 6 lines
package/python-aiohttp-security/Config.in new file +6 -0
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_AIOHTTP_SECURITY
+       bool "python-aiohttp-security"
+       depends on BR2_PACKAGE_PYTHON3
+       select BR2_PACKAGE_PYTHON_AIOHTTP # runtime
+       help
+         security for aiohttp.web.

s/security/Security

Please resend the whole patches as series, i.e.

git format patch -v2 -7 -o outgoing

add my Reviewed-by: Yegor Yefremov <[email protected]> and changes history as described in [1].

[1] http://nightly.buildroot.org/manual.html#submitting-patches

Regards,
Yegor

Quoted 36 lines
package/python-aiohttp-security/Config.in new file +2 -0
+
+         https://github.com/aio-libs/aiohttp_security/
package/python-aiohttp-security/python-aiohttp-security.hash new file +5 -0
new file mode 100644
index 0000000..1d2604c
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/aiohttp-security/json
+md5    1624f982d7a779e6ed396ef2ed20acc7  aiohttp-security-0.4.0.tar.gz
+sha256 40d4bb150454e392c2dfa3620f6eab28e140e94cf0c2d3b4bf43aef653ec9405  aiohttp-security-0.4.0.tar.gz
+# Locally computed sha256 checksums
+sha256 a1cc8ff7210897d55d2552fa0792340f8e59720e0160b6918699d40f9a782b1c  LICENSE
package/python-aiohttp-security/python-aiohttp-security.mk new file +14 -1
new file mode 100644
index 0000000..9ab3b16
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-aiohttp-security
+#
+################################################################################
+
+PYTHON_AIOHTTP_SECURITY_VERSION = 0.4.0
+PYTHON_AIOHTTP_SECURITY_SOURCE = aiohttp-security-$(PYTHON_AIOHTTP_SECURITY_VERSION).tar.gz
+PYTHON_AIOHTTP_SECURITY_SITE = https://files.pythonhosted.org/packages/36/01/d85be376b7c1773b3cb7849cd56dc7d38165664df7de2d3e20af507ef5bb
+PYTHON_AIOHTTP_SECURITY_SETUP_TYPE = setuptools
+PYTHON_AIOHTTP_SECURITY_LICENSE = Apache-2.0
+PYTHON_AIOHTTP_SECURITY_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
--

2.7.4

#2 lore raw

PATCH 1/1 package/python-aiohttp-security: new package

These are all independent patches which shouldn't depend on each other, I have them all in separate branches.

Quoted 106 lines · Yegor Yefremov
Quoted 47 lines · On Fri, Dec 7, 2018 at 12:33 AM <[email protected]> wrote:

From: James Hilliard <[email protected]>

security for aiohttp.web.

---
 DEVELOPERS                                                 |  1 +
 package/Config.in                                          |  1 +
 package/python-aiohttp-security/Config.in                  |  8 ++++++++
 .../python-aiohttp-security/python-aiohttp-security.hash   |  5 +++++
 package/python-aiohttp-security/python-aiohttp-security.mk | 14 ++++++++++++++
 5 files changed, 29 insertions(+)
 create mode 100644 package/python-aiohttp-security/Config.in
 create mode 100644 package/python-aiohttp-security/python-aiohttp-security.hash
 create mode 100644 package/python-aiohttp-security/python-aiohttp-security.mk
DEVELOPERS +1 -0
index c289b3f..b9bb05b 100644
@@ -992,6 +992,7 @@ F:  configs/pine64_sopine_defconfig
 N:     James Hilliard <[email protected]>
 F:     package/python-aiodns/
 F:     package/python-aiohttp/
+F:     package/python-aiohttp-security/
 F:     package/python-async-timeout/
 F:     package/python-cchardet/
 F:     package/python-multidict/
package/Config.in +1 -0
index f6252f2..f3c8b56 100644
@@ -799,6 +799,7 @@ menu "External python modules"
        source "package/python-aiocoap/Config.in"
        source "package/python-aiodns/Config.in"
        source "package/python-aiohttp/Config.in"
+       source "package/python-aiohttp-security/Config.in"
        source "package/python-alsaaudio/Config.in"
        source "package/python-argh/Config.in"
        source "package/python-arrow/Config.in"
package/python-aiohttp-security/Config.in new file +0 -0
new file mode 100644
index 0000000..6695ce3

package/python-aiohttp-security/Config.in line 6

Quoted 6 lines
package/python-aiohttp-security/Config.in new file +6 -0
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_AIOHTTP_SECURITY
+       bool "python-aiohttp-security"
+       depends on BR2_PACKAGE_PYTHON3
+       select BR2_PACKAGE_PYTHON_AIOHTTP # runtime
+       help
+         security for aiohttp.web.

s/security/Security

Please resend the whole patches as series, i.e.

git format patch -v2 -7 -o outgoing

add my Reviewed-by: Yegor Yefremov <[email protected]> and changes history as described in [1].

[1] http://nightly.buildroot.org/manual.html#submitting-patches

Regards,
Yegor

Quoted 36 lines
package/python-aiohttp-security/Config.in new file +2 -0
+
+         https://github.com/aio-libs/aiohttp_security/
package/python-aiohttp-security/python-aiohttp-security.hash new file +5 -0
new file mode 100644
index 0000000..1d2604c
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/aiohttp-security/json
+md5    1624f982d7a779e6ed396ef2ed20acc7  aiohttp-security-0.4.0.tar.gz
+sha256 40d4bb150454e392c2dfa3620f6eab28e140e94cf0c2d3b4bf43aef653ec9405  aiohttp-security-0.4.0.tar.gz
+# Locally computed sha256 checksums
+sha256 a1cc8ff7210897d55d2552fa0792340f8e59720e0160b6918699d40f9a782b1c  LICENSE
package/python-aiohttp-security/python-aiohttp-security.mk new file +14 -1
new file mode 100644
index 0000000..9ab3b16
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-aiohttp-security
+#
+################################################################################
+
+PYTHON_AIOHTTP_SECURITY_VERSION = 0.4.0
+PYTHON_AIOHTTP_SECURITY_SOURCE = aiohttp-security-$(PYTHON_AIOHTTP_SECURITY_VERSION).tar.gz
+PYTHON_AIOHTTP_SECURITY_SITE = https://files.pythonhosted.org/packages/36/01/d85be376b7c1773b3cb7849cd56dc7d38165664df7de2d3e20af507ef5bb
+PYTHON_AIOHTTP_SECURITY_SETUP_TYPE = setuptools
+PYTHON_AIOHTTP_SECURITY_LICENSE = Apache-2.0
+PYTHON_AIOHTTP_SECURITY_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
--

2.7.4

#3 lore raw

PATCH 1/1 package/python-aiohttp-security: new package

Hello James,

Quoted 2 lines · James Hilliard

These are all independent patches which shouldn't depend on each other, I have them all in separate branches.

One issue is that since they touch packages with very close names, all of those patches will conflict on the DEVELOPERS file and package/Config.in files. I.e, if I apply your patch on package/python-aiohttp-session and then apply your patch on package/python-aiohttp-security, the latter will fail.

Those conflicts are trivial, so we can resolve them when applying. But it's nicer when there are no conflicts at all, and in this case, posting as a series of patches, as suggested by Yegor, makes a lot of sense.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

PATCH 1/1 package/python-aiohttp-security: new package

Ok, will try and do that in the future. I was keeping them in separate branches so that they are easier to amend.

Quoted 25 lines · Thomas Petazzoni

Hello James,

Quoted 2 lines · James Hilliard

These are all independent patches which shouldn't depend on each other, I have them all in separate branches.

One issue is that since they touch packages with very close names, all of those patches will conflict on the DEVELOPERS file and package/Config.in files. I.e, if I apply your patch on package/python-aiohttp-session and then apply your patch on package/python-aiohttp-security, the latter will fail.

Those conflicts are trivial, so we can resolve them when applying. But it's nicer when there are no conflicts at all, and in this case, posting as a series of patches, as suggested by Yegor, makes a lot of sense.

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#5 lore raw

PATCH 1/1 package/python-aiohttp-security: new package

Hello James,

Quoted 3 lines · James Hilliard

Ok, will try and do that in the future. I was keeping them in separate branches so that they are easier to amend.

With this series applied you'll have more than 10 Python packages you're responsible for. I wonder whether it make sense to add

package/python*

for your DEVELOPERS record. Especially if you're going to add more Python packages in the future.

Yegor

Quoted 27 lines
Quoted 25 lines · Thomas Petazzoni

Hello James,

Quoted 2 lines · James Hilliard

These are all independent patches which shouldn't depend on each other, I have them all in separate branches.

One issue is that since they touch packages with very close names, all of those patches will conflict on the DEVELOPERS file and package/Config.in files. I.e, if I apply your patch on package/python-aiohttp-session and then apply your patch on package/python-aiohttp-security, the latter will fail.

Those conflicts are trivial, so we can resolve them when applying. But it's nicer when there are no conflicts at all, and in this case, posting as a series of patches, as suggested by Yegor, makes a lot of sense.

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#6 lore raw

PATCH 1/1 package/python-aiohttp-security: new package

In reply to James Hilliard

Hello James,

Quoted 2 lines · James Hilliard

Ok, will try and do that in the future. I was keeping them in separate branches so that they are easier to amend.

You can keep them in the same branch, and still amend them very easily. The magic thing is "interactive rebase".

Let's explain quickly how it works:

$ git checkout -b foo # create a new branch to work
add package foo1
$ git commit -as -m "foo1: new package"
add package foo2
$ git commit -as -m "foo2: new package"
add package foo3
$ git commit -as -m "foo3: new package"

No, you want to do some changes. You can do them right there in your code base. Let's say you fixed one thing in package foo1 and one thing in package foo2. Then you do:

$ git add package/foo1/
$ git commit -m "merge this with foo1"
$ git add package/foo2/
$ git commit -m "merge this with foo2"

And now, the magic:

$ git rebase -i HEAD~5

It opens up a text editor. You move the line "merge this with foo1" right after the "foo1: new package" line, and change the "pick" word by "fixup". You do the same with "merge this with foo2", and exit the text editor. And voila.

Additional tips:

- With proper commit titles, you can actually have git rebase -i automatically do the fixups.

- You can also directly edit commits by changing the "pick" by an "edit".

I encourage you to read about "interactive rebase" in general. It's going to change your life of patch preparation :-)

Another unrelated tip: please don't top post. Always write your replies *below* the text you're replying to. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#7 lore raw

PATCH 1/1 package/python-aiohttp-security: new package

Quoted 41 lines · Thomas Petazzoni

Hello James,

Quoted 2 lines · James Hilliard

Ok, will try and do that in the future. I was keeping them in separate branches so that they are easier to amend.

You can keep them in the same branch, and still amend them very easily. The magic thing is "interactive rebase".

Let's explain quickly how it works:

$ git checkout -b foo # create a new branch to work
add package foo1
$ git commit -as -m "foo1: new package"
add package foo2
$ git commit -as -m "foo2: new package"
add package foo3
$ git commit -as -m "foo3: new package"

No, you want to do some changes. You can do them right there in your code base. Let's say you fixed one thing in package foo1 and one thing in package foo2. Then you do:

$ git add package/foo1/
$ git commit -m "merge this with foo1"
$ git add package/foo2/
$ git commit -m "merge this with foo2"

And now, the magic:

$ git rebase -i HEAD~5

It opens up a text editor. You move the line "merge this with foo1" right after the "foo1: new package" line, and change the "pick" word by "fixup". You do the same with "merge this with foo2", and exit the text editor. And voila.

Additional tips:

Quoted 8 lines

- With proper commit titles, you can actually have git rebase -i automatically do the fixups.

- You can also directly edit commits by changing the "pick" by an "edit".

I encourage you to read about "interactive rebase" in general. It's going to change your life of patch preparation :-)

Yeah, I've used it before, I'm just really slow at it since I don't use it day to day for the most part.

Quoted 9 lines

Another unrelated tip: please don't top post. Always write your replies *below* the text you're replying to. Thanks!

Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com