Skip to content

Commit

Permalink
Fix: logbook was not installed automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
hongquan committed Jul 15, 2020
1 parent bde32b2 commit 375b82a
Show file tree
Hide file tree
Showing 6 changed files with 1,610 additions and 1,453 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,19 @@
name: Run test

on:
push

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: 3.7
- uses: Gr1N/setup-poetry@v2
with:
poetry-version: 1.0.9
- run: poetry install --no-root
- run: poetry run pytest
6 changes: 3 additions & 3 deletions README.rst
Expand Up @@ -24,7 +24,7 @@ to
Motivation
----------

This library was born when I join a project with a team of non-Linux, non-Python developers. Because the project doesn't have proper documentation, the other team often share API usage example to me in form of cURL command, generated from their daily-used Postman. Those cURL commands are usually ugly, like this:
This library was born when I joined a project with a team of non-Linux, non-Python developers. Because the project didn't have proper documentation, the other team often shared API usage example to me in form of cURL command, generated from their daily-used Postman. Those cURL commands are usually ugly, like this:


.. code-block:: sh
Expand All @@ -38,13 +38,13 @@ This library was born when I join a project with a team of non-Linux, non-Python
"createdAt": "2019-12-13 10:00:00"
}'
I am more comfortable with HTTPie (shorter syntax, has highlighting and is a Python application), so I often convert it to HTTPie:
I am more comfortable with HTTPie (shorter syntax, has highlighting and is a Python application), so I often converted it to HTTPie:

.. code-block:: sh
http -F app-staging.dev/api userId=abc-xyz planAmount:=50000 isPromotion:=false createdAt='2019-12-13 10:00:00'
The Postman tool can generate HTTPie, but with even uglier command:
Though Postman can generate HTTPie, it does result in even uglier command:

.. code-block:: sh
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "curlipie"
version = "0.7.2"
version = "0.7.3"
description = "Library to convert cURL command line to HTTPie"
authors = ["Nguyễn Hồng Quân <ng.hong.quan@gmail.com>"]
maintainers = [
Expand Down Expand Up @@ -29,14 +29,14 @@ python-rapidjson = { version = "^0.9.1", markers = "python_version ~= '3.6'" }
single-version = "^1.1"
werkzeug = "^1.0.1"
http-constants = "^0.4.0"
logbook = "^1.5.3"

[tool.poetry.dev-dependencies]
pytest = "^5.2"
devtools = "^0.5.1"
pytest-flake8 = "^1.0.4"
fastapi = "^0.47.1"
uvicorn = "^0.11.2"
logbook = "^1.5.3"

[build-system]
requires = ["poetry>=0.12"]
Expand Down
37 changes: 19 additions & 18 deletions requirements.txt
Expand Up @@ -2,7 +2,7 @@
curlipie
atomicwrites==1.3.0; sys_platform == "win32"
attrs==19.3.0
click==7.0
click==7.1.1
colorama==0.4.3; sys_platform == "win32"
dataclasses==0.6; python_version < "3.7"
devtools==0.5.1
Expand All @@ -11,35 +11,36 @@ fastapi==0.47.1
first==2.0.2
flake8==3.7.9
h11==0.9.0
hh==2.0.0
httptools==0.0.13; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "pypy"
idna==2.8
importlib-metadata==1.5.0
http-constants==0.4.0
httptools==0.1.1; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy"
idna==2.9
importlib-metadata==1.6.0
logbook==1.5.3
mccabe==0.6.1
more-itertools==8.1.0
multidict==4.7.4
more-itertools==8.2.0
multidict==4.7.5
mypy-extensions==0.4.3
orjson==2.2.0; python_version >= "3.7"
packaging==20.0
orjson==2.6.3; python_version >= "3.7"
packaging==20.3
pluggy==0.13.1
py==1.8.1
pycodestyle==2.5.0
pydantic==1.3
pydantic==1.4
pyflakes==2.1.1
pyparsing==2.4.6
pytest==5.3.4
pyparsing==2.4.7
pytest==5.4.1
pytest-flake8==1.0.4
python-rapidjson==0.9.1; python_version ~= "3.6"
single-version==1.1
six==1.14.0
starlette==0.12.9
typed-argument-parser==1.4
typing-extensions==3.7.4.1
typed-argument-parser==1.4.1
typing-extensions==3.7.4.2
typing-inspect==0.5.0
uvicorn==0.11.2
uvloop==0.14.0; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "pypy"
wcwidth==0.1.8
uvicorn==0.11.3
uvloop==0.14.0; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy"
wcwidth==0.1.9
websockets==8.0.2
werkzeug==1.0.1
yarl==1.4.2
zipp==2.0.1
zipp==3.1.0

1 comment on commit 375b82a

@vercel
Copy link

@vercel vercel bot commented on 375b82a Jul 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.