Skip to content

Commit ca081e7

Browse files
author
David Sternlicht
committed
Merge tag '0.23.1'
0.23.1
2 parents ab4f06e + ee449de commit ca081e7

39 files changed

+914
-503
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ jobs:
1616
with:
1717
python-version: ${{ matrix.python_version }}
1818
- name: Install requirements
19-
run: pip install -e . -r tests/requirements.txt -r unittests/requirements.txt pylint
20-
- name: Check with pylint
21-
run: pylint scottypy tests unittests
19+
run: pip install -e . -r unittests/requirements.txt pylint mypy
20+
- name: Format
21+
if: matrix.python_version == '3.8'
22+
run: pip install black isort && make format
23+
- name: Lint
24+
run: make lint
2225
- name: Unittest
23-
run: pytest unittests
26+
run: make test

.github/workflows/pythonpublish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: '3.x'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
- name: Build and publish
26+
env:
27+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
run: |
30+
python setup.py sdist bdist_wheel
31+
twine upload dist/*

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[MESSAGES CONTROL]
2-
disable=R,broad-except,protected-access,unused-argument,redefined-builtin,missing-docstring,invalid-name,ungrouped-imports,wrong-import-order
2+
disable=R,broad-except,protected-access,unused-argument,redefined-builtin,missing-docstring,invalid-name,ungrouped-imports,wrong-import-order,bad-continuation
33

44
[FORMAT]
55
max-line-length=150

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
default: check
2+
3+
4+
format:
5+
isort -c -rc scottypy unittests
6+
black --check scottypy unittests
7+
8+
do_format:
9+
isort -rc scottypy unittests
10+
black scottypy unittests
11+
12+
test:
13+
pytest unittests/
14+
15+
lint:
16+
MYPYPATH=stubs mypy scottypy --strict
17+
pylint --rcfile .pylintrc -j $(shell nproc) scottypy unittests
18+
19+
check: format lint test

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ git push origin : --tags
2121

2222
## ChangeLog
2323

24+
### 0.23.1
25+
26+
* Provide more information on exceptions
27+
* Add type hinting
28+
* Fix bug with downloading windows paths on linux
29+
2430
### 0.22.1
2531

2632
* Fix bug with prefetch and then beam up without explicitly setting version

scottypy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .scotty import Scotty
2-
from .file import File
31
from .beam import Beam
42
from .exc import NotOverwriting
3+
from .file import File
4+
from .scotty import Scotty

scottypy/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.22.1"
1+
__version__ = "0.23.1"

0 commit comments

Comments
 (0)