Skip to content

Commit

Permalink
πŸ—“ Mar 19, 2024 8:46:01β€―PM
Browse files Browse the repository at this point in the history
✨ moving to python 3.12
βž• deps added/updated
πŸ’š build steps added/updated
πŸ”₯ deprecate cli_edit_state due to outdated deps
  • Loading branch information
securisec committed Mar 20, 2024
1 parent 0eee6bc commit cef96d3
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests_multi_os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version:
- "3.10"
- "3.12"

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Install test requirements
run: |
pip install sphinx recommonmark pytest==7.4.0 pytest-cov pyperclip
pip install sphinx recommonmark pytest==8.1.1 pytest-cov pyperclip
- name: Test with pytest
run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@


test:
pytest -v --disable-pytest-warnings --cov-report=xml --cov=chepy --cov-config=.coveragerc tests/
python -m pytest -v --disable-pytest-warnings --cov-report=xml --cov=chepy --cov-config=.coveragerc tests/

test-all: test
pytest -v --disable-pytest-warnings tests_plugins/
python -m pytest -v --disable-pytest-warnings tests_plugins/

# git log --format=%B 4.0.0..5.0.0 | sed '/^\s*$/d' | sort | uniq
2 changes: 1 addition & 1 deletion chepy/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "6.7.0" # pragma: no cover
__version__ = "7.0.0" # pragma: no cover
__author__ = "@securisec" # pragma: no cover
2 changes: 1 addition & 1 deletion chepy/chepy_plugins
Submodule chepy_plugins updated 1 files
+2 βˆ’2 requirements.txt
2 changes: 1 addition & 1 deletion chepy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ def load_from_url(
json: dict = None,
headers: dict = {},
cookies: dict = {},
):
): # pragma: no cover
"""Load binary content from a url
Most common http methods are supported; but some methods may not provide a response body.
Expand Down
17 changes: 8 additions & 9 deletions chepy/modules/internal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import regex as re
import pprint

import editor
from docstring_parser import parse as _parse_doc
from prompt_toolkit.completion import Completer, Completion
from prompt_toolkit import print_formatted_text
Expand Down Expand Up @@ -80,15 +79,15 @@ def get_doc(method: str):
print(red(pprint.pformat("Could not find docs...")))


def cli_edit_state(fire: object, args: list):
"""Edit the current state
# def cli_edit_state(fire: object, args: list):
# """Edit the current state

Args:
args (object): Cli args
"""
current_index = fire._current_index
hold = editor.edit(contents=str(fire.states[current_index])).decode()
args[current_index] = hold
# Args:
# args (object): Cli args
# """
# current_index = fire._current_index
# hold = editor.edit(contents=str(fire.states[current_index])).decode()
# args[current_index] = hold


def cli_highlight(fire: object, highlight: str):
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ pydash
pyjwt==1.7.1
pyOpenSSL==23.2.0
pyperclip
python-editor
PyYAML
regex
typing_extensions
pretty-errors==1.2.25
lz4==4.3.2
passlib==1.7.4
msgpack==1.0.4
parsel==1.8.1
parsel==1.8.1
setuptools
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ def read_requirements():
classifiers=[
"Programming Language :: Python :: 3.10",
],
python_requires="==3.10.*",
python_requires=">=3.10",
entry_points={"console_scripts": ["chepy = chepy.__main__:main"]},
)

0 comments on commit cef96d3

Please sign in to comment.