-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore python upgrade #75
Open
b1r3k
wants to merge
11
commits into
master
Choose a base branch
from
chore-python-upgrade
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b3dc655
chore: update pyenv python version to 3.11
b1r3k 229bd3f
fixes: dependencies broken on python 3.11
b1r3k 40d47a6
fixes: flake errors detected on newer version of flake8
b1r3k df91803
fixes: test cases after upgrading lxml 4.x
b1r3k 30067b1
chore: upgrade syntax to python 3.11 using pyupgrade
b1r3k 9494804
chore: replace nose2 with pytest
b1r3k 5ebd0e7
fixes: SetuptoolsDeprecationWarning: Invalid dash-separated options
b1r3k fae9543
fixes: UserWarning: Unknown distribution option: 'tests_require'
b1r3k 64177d4
fixes: error in ks-email-parser setup command: 'extras_require' must …
b1r3k 49040e9
Revert "fixes: UserWarning: Unknown distribution option: 'tests_requi…
b1r3k fc2f778
chore: bump version to 1.0.0
b1r3k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.6.8 | ||
3.11.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
language: python | ||
python: | ||
- "3.6.5" | ||
- "3.11.10" | ||
# command to install dependencies | ||
install: "pip install -r requirements-dev.txt" | ||
install: "make dev" | ||
# command to run tests | ||
script: | ||
- flake8 email_parser tests | ||
- nosetests --with-coverage --cover-inclusive --cover-erase --cover-package=email_parser --cover-min-percentage=70 | ||
- make test | ||
- make coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,13 @@ | |
PYTHON=venv/bin/python3 | ||
PIP=venv/bin/pip | ||
EI=venv/bin/easy_install | ||
NOSE=venv/bin/nosetests | ||
TEST_RUNNER=venv/bin/pytest | ||
FLAKE=venv/bin/flake8 | ||
[email protected]:KeepSafe/emails.git | ||
EMAILS_PATH=emails | ||
GUI_BIN=ks-email-parser | ||
FLAGS=--with-coverage --cover-inclusive --cover-erase --cover-package=email_parser --cover-min-percentage=70 | ||
TEST_RUNNER_FLAGS=-s --durations=3 --durations-min=0.005 | ||
COVERAGE=venv/bin/coverage | ||
PYPICLOUD_HOST=pypicloud.getkeepsafe.local | ||
TWINE=./venv/bin/twine | ||
|
||
|
@@ -39,17 +40,16 @@ flake: | |
$(FLAKE) email_parser tests | ||
|
||
test: flake | ||
$(NOSE) -s $(FLAGS) | ||
$(COVERAGE) run -m pytest $(TEST_RUNNER_FLAGS) | ||
|
||
vtest: | ||
$(NOSE) -s -v $(FLAGS) | ||
$(COVERAGE) run -m pytest -v $(TEST_RUNNER_FLAGS) | ||
|
||
testloop: | ||
while sleep 1; do $(NOSE) -s $(FLAGS); done | ||
while sleep 1; do $(TEST_RUNNER) -s --lf $(TEST_RUNNER_FLAGS); done | ||
|
||
cov cover coverage: | ||
$(NOSE) -s --with-cover --cover-html --cover-html-dir ./coverage $(FLAGS) | ||
echo "open file://`pwd`/coverage/index.html" | ||
$(COVERAGE) report -m | ||
|
||
clean: | ||
rm -rf `find . -name __pycache__` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
[metadata] | ||
description-file = README.md | ||
description_file = README.md | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
max_line_length = 120 | ||
ignore = F403, F405, F401 | ||
|
||
[pep8] | ||
max-line-length = 120 | ||
max_line_length = 120 | ||
|
||
[coverage:run] | ||
branch = True | ||
|
||
[coverage:report] | ||
fail_under = 85 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: f-string