From d66f8377fb173a0381407efa1f38ebb66e6b6202 Mon Sep 17 00:00:00 2001 From: Mireille Raad Date: Thu, 28 Jan 2021 21:17:45 -0500 Subject: [PATCH 1/5] add blog post about pip support --- _posts/2021-01-27-pip-support.markdown | 25 +++++++++++++++++++++++++ assets/style.css | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 _posts/2021-01-27-pip-support.markdown diff --git a/_posts/2021-01-27-pip-support.markdown b/_posts/2021-01-27-pip-support.markdown new file mode 100644 index 000000000..2a216cb50 --- /dev/null +++ b/_posts/2021-01-27-pip-support.markdown @@ -0,0 +1,25 @@ +--- +layout: post +title: "pip is working! 🎉 🎉 " +date: 2021-01-27 01:45:00 +0900 +categories: [featured] +--- + +7380 commits and 1940 pull requests later, **pip** and **get-pip.py** are working with RustPython 🎉 🎉. pip can install itself and setuptools! + +This updated is brought to you from [@coolreader18's](https://github.com/coolreader18) terminal by asciinema 🍿. + +## get-pip.py +[![asciicast](https://asciinema.org/a/3pAZSfrFeIbEUzpPyXtvYZCeN.svg)](https://asciinema.org/a/3pAZSfrFeIbEUzpPyXtvYZCeN) + + +## get-pip.py + pip install requests +[![asciicast](https://asciinema.org/a/fuTmP0wMD8HnvwsOkPRPuVHoa.svg)](https://asciinema.org/a/fuTmP0wMD8HnvwsOkPRPuVHoa) + + +## pip installs itself and setup tools +[![asciicast](https://asciinema.org/a/y2rIeqELmzn5LCaWI6MLMvujz.svg)](https://asciinema.org/a/y2rIeqELmzn5LCaWI6MLMvujz) + + +## What you need to do +This update is so fresh, things are not merged into the `master` or `release` branches yet. For now, to test this out, you have to merge `coolreader18/fix-http` `coolreader18/csv-writer` `coolreader18/misc-os` `coolreader18/name-mangling` `update-python-version` `coolreader18/empty-map-cformat`. diff --git a/assets/style.css b/assets/style.css index 94af9e155..aeabe70f5 100644 --- a/assets/style.css +++ b/assets/style.css @@ -234,7 +234,7 @@ ul.list-inline { width: 100%; } -.blog-content p > img { +.blog-content p > img , .blog-content img { max-width: 100%; } From cb2bf9e418eb52c25a334480222d809f691a1bbb Mon Sep 17 00:00:00 2001 From: Mireille Raad Date: Thu, 28 Jan 2021 21:21:13 -0500 Subject: [PATCH 2/5] fix typo --- _posts/2021-01-27-pip-support.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2021-01-27-pip-support.markdown b/_posts/2021-01-27-pip-support.markdown index 2a216cb50..d818dbbc2 100644 --- a/_posts/2021-01-27-pip-support.markdown +++ b/_posts/2021-01-27-pip-support.markdown @@ -7,7 +7,7 @@ categories: [featured] 7380 commits and 1940 pull requests later, **pip** and **get-pip.py** are working with RustPython 🎉 🎉. pip can install itself and setuptools! -This updated is brought to you from [@coolreader18's](https://github.com/coolreader18) terminal by asciinema 🍿. +This update is brought to you from [@coolreader18's](https://github.com/coolreader18) terminal by asciinema 🍿. ## get-pip.py [![asciicast](https://asciinema.org/a/3pAZSfrFeIbEUzpPyXtvYZCeN.svg)](https://asciinema.org/a/3pAZSfrFeIbEUzpPyXtvYZCeN) From a29f1529939c56062b2a1c397aa6a226816656e7 Mon Sep 17 00:00:00 2001 From: Mireille Raad Date: Thu, 28 Jan 2021 22:02:15 -0500 Subject: [PATCH 3/5] Update _posts/2021-01-27-pip-support.markdown Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com> --- _posts/2021-01-27-pip-support.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2021-01-27-pip-support.markdown b/_posts/2021-01-27-pip-support.markdown index d818dbbc2..9501406a0 100644 --- a/_posts/2021-01-27-pip-support.markdown +++ b/_posts/2021-01-27-pip-support.markdown @@ -22,4 +22,4 @@ This update is brought to you from [@coolreader18's](https://github.com/coolread ## What you need to do -This update is so fresh, things are not merged into the `master` or `release` branches yet. For now, to test this out, you have to merge `coolreader18/fix-http` `coolreader18/csv-writer` `coolreader18/misc-os` `coolreader18/name-mangling` `update-python-version` `coolreader18/empty-map-cformat`. +This update is so fresh, things are not merged into the `master` or `release` branches yet. For now, to test this out, you have to checkout the `pip-merg` branch, and make sure to build with the `ssl` feature: From 708a3965efcc171c2b989a67bb254d8969737d1b Mon Sep 17 00:00:00 2001 From: Mireille Raad Date: Thu, 28 Jan 2021 22:38:44 -0500 Subject: [PATCH 4/5] add new instructions --- _posts/2021-01-27-pip-support.markdown | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/_posts/2021-01-27-pip-support.markdown b/_posts/2021-01-27-pip-support.markdown index 9501406a0..50cef7f93 100644 --- a/_posts/2021-01-27-pip-support.markdown +++ b/_posts/2021-01-27-pip-support.markdown @@ -22,4 +22,16 @@ This update is brought to you from [@coolreader18's](https://github.com/coolread ## What you need to do -This update is so fresh, things are not merged into the `master` or `release` branches yet. For now, to test this out, you have to checkout the `pip-merg` branch, and make sure to build with the `ssl` feature: +This update is so fresh, things are not merged into the `master` or `release` branches yet. For now, to test this out, you have to checkout the `pip-merg` branch, and make sure to build with the `ssl` feature: + +```shell + $ cd RustPython + $ git fetch --all + $ git checkout pip-merg + $ cargo install --path . --features ssl + $ curl https://bootstrap.pypa.io/get-pip.py -O + $ rustpython get-pip.py + ...lots of work... + $ rustpython -m pip --version + pip 21.0 from /home/.../.local/lib/rustpython3.9/site-packages/pip (python 3.9) +``` \ No newline at end of file From 3a4018f2d7c4ab913ffdf2582c2e3c109cdcf493 Mon Sep 17 00:00:00 2001 From: Mireille Raad Date: Thu, 28 Jan 2021 22:40:19 -0500 Subject: [PATCH 5/5] switch syntax hihglighting from dark to light, because shell highlighting looks weird --- _includes/head.html | 2 +- assets/github.css | 61 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 assets/github.css diff --git a/_includes/head.html b/_includes/head.html index e328366a0..f2ec9a4ea 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -9,7 +9,7 @@ - + diff --git a/assets/github.css b/assets/github.css new file mode 100644 index 000000000..5c45e6776 --- /dev/null +++ b/assets/github.css @@ -0,0 +1,61 @@ +.highlight .hll { background-color: #ffffcc } +.highlight .c { color: #999988; font-style: italic } /* Comment */ +.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.highlight .k { color: #000000; font-weight: bold } /* Keyword */ +.highlight .o { color: #000000; font-weight: bold } /* Operator */ +.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */ +.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ +.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #aa0000 } /* Generic.Error */ +.highlight .gh { color: #999999 } /* Generic.Heading */ +.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #555555 } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #aaaaaa } /* Generic.Subheading */ +.highlight .gt { color: #aa0000 } /* Generic.Traceback */ +.highlight .kc { color: #000000; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #009999 } /* Literal.Number */ +.highlight .s { color: #d01040 } /* Literal.String */ +.highlight .na { color: #008080 } /* Name.Attribute */ +.highlight .nb { color: #0086B3 } /* Name.Builtin */ +.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ +.highlight .no { color: #008080 } /* Name.Constant */ +.highlight .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #800080 } /* Name.Entity */ +.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #990000; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #555555 } /* Name.Namespace */ +.highlight .nt { color: #000080 } /* Name.Tag */ +.highlight .nv { color: #008080 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mf { color: #009999 } /* Literal.Number.Float */ +.highlight .mh { color: #009999 } /* Literal.Number.Hex */ +.highlight .mi { color: #009999 } /* Literal.Number.Integer */ +.highlight .mo { color: #009999 } /* Literal.Number.Oct */ +.highlight .sb { color: #d01040 } /* Literal.String.Backtick */ +.highlight .sc { color: #d01040 } /* Literal.String.Char */ +.highlight .sd { color: #d01040 } /* Literal.String.Doc */ +.highlight .s2 { color: #d01040 } /* Literal.String.Double */ +.highlight .se { color: #d01040 } /* Literal.String.Escape */ +.highlight .sh { color: #d01040 } /* Literal.String.Heredoc */ +.highlight .si { color: #d01040 } /* Literal.String.Interpol */ +.highlight .sx { color: #d01040 } /* Literal.String.Other */ +.highlight .sr { color: #009926 } /* Literal.String.Regex */ +.highlight .s1 { color: #d01040 } /* Literal.String.Single */ +.highlight .ss { color: #990073 } /* Literal.String.Symbol */ +.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ +.highlight .vc { color: #008080 } /* Name.Variable.Class */ +.highlight .vg { color: #008080 } /* Name.Variable.Global */ +.highlight .vi { color: #008080 } /* Name.Variable.Instance */ +.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */