-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from baking-bad/aux/january-refresh
- Loading branch information
Showing
19 changed files
with
1,278 additions
and
1,066 deletions.
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 |
---|---|---|
|
@@ -2,20 +2,25 @@ name: Release | |
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
- '*.*.*' | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Set up Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
python-version: "3.8.x" | ||
- uses: snok/[email protected] | ||
version: '1.3.2' | ||
|
||
- name: Install project | ||
run: make install | ||
|
@@ -24,17 +29,29 @@ jobs: | |
- name: Run tests | ||
run: make test | ||
|
||
- name: Set up enviroment | ||
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/} | ||
|
||
- name: Publish package on PyPi | ||
run: | | ||
poetry config http-basic.pypi __token__ ${{secrets.PYPI_TOKEN}} | ||
poetry build | ||
poetry publish | ||
- name: Parse changelog | ||
id: changelog | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
version: ${{ github.ref_name }} | ||
|
||
- name: Publish GitHub release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
tag_name: ${{ github.ref_name }} | ||
release_name: ${{ steps.changelog.outputs.version }} | ||
body: | | ||
## ${{ steps.changelog.outputs.version }} - ${{ steps.changelog.outputs.date }} | ||
${{ steps.changelog.outputs.changes }} | ||
draft: true | ||
prerelease: ${{ steps.changelog.outputs.status == 'prereleased' }} |
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,25 +1,55 @@ | ||
# Changelog | ||
|
||
## 0.1.2 - 2022-05-24 | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning]. | ||
|
||
## [0.2.0] - 2023-04-07 | ||
|
||
### Added | ||
|
||
- Python 3.11 support. | ||
- macOS and arm64 support. | ||
|
||
### Fixed | ||
|
||
- Fixed client streaming methods. | ||
|
||
### Other | ||
|
||
- `websockets` library updated to 10.4. | ||
|
||
## [0.1.2] - 2022-05-24 | ||
|
||
### Improved | ||
|
||
* Now `max_size` argument can be None to disable message size limit. | ||
- Now `max_size` argument can be None to disable message size limit. | ||
|
||
### Fixed | ||
|
||
* Fixed crash with `Cannot connect while not disconnected`. | ||
- Fixed crash with "Cannot connect while not disconnected". | ||
|
||
### Other | ||
|
||
* `websockets` library updated to `10.3` | ||
- `websockets` library updated to 10.3. | ||
|
||
## 0.1.1 - 2022-01-06 | ||
## [0.1.1] - 2022-01-06 | ||
|
||
### Fixed | ||
|
||
* Fixed exceptions raised on server error | ||
- Fixed exceptions raised on server error. | ||
|
||
## [0.1.0] - 2021-11-22 | ||
|
||
Initial release. | ||
|
||
## 0.1.0 - 2021-11-22 | ||
<!-- Links --> | ||
[keep a changelog]: https://keepachangelog.com/en/1.0.0/ | ||
[semantic versioning]: https://semver.org/spec/v2.0.0.html | ||
|
||
Initial release. | ||
<!-- Versions --> | ||
[Unreleased]: https://github.com/dipdup-io/dipdup/compare/0.2.0...HEAD | ||
[0.2.0]: https://github.com/dipdup-io/dipdup/compare/0.1.2...0.2.0 | ||
[0.1.2]: https://github.com/dipdup-io/dipdup/compare/0.1.1...0.1.2 | ||
[0.1.1]: https://github.com/dipdup-io/dipdup/compare/0.1.0...0.1.1 | ||
[0.1.0]: https://github.com/dipdup-io/dipdup/releases/tag/0.1.0 |
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,50 +1,57 @@ | ||
.ONESHELL: | ||
.PHONY: docs | ||
.DEFAULT_GOAL: all | ||
|
||
.PHONY: $(MAKECMDGOALS) | ||
## | ||
## 🚧 pysignalr developer tools | ||
## | ||
## DEV=1 Install dev dependencies | ||
DEV=1 | ||
TAG=latest | ||
|
||
all: install lint test cover | ||
lint: isort black flake mypy | ||
## | ||
|
||
help: ## Show this help (default) | ||
@grep -F -h "##" $(MAKEFILE_LIST) | grep -F -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | ||
|
||
all: ## Run a whole CI pipeline: formatters, linters and tests | ||
make install lint test docs | ||
|
||
install: ## Install project dependencies | ||
poetry install \ | ||
`if [ "${DEV}" = "0" ]; then echo "--without dev"; fi` | ||
|
||
install: | ||
poetry install `if [ "${DEV}" = "0" ]; then echo "--no-dev"; fi` | ||
lint: ## Lint with all tools | ||
make isort black ruff mypy | ||
|
||
isort: | ||
poetry run isort src tests | ||
test: ## Run test suite | ||
poetry run pytest --cov-report=term-missing --cov=pysignalr --cov-report=xml -s -v tests | ||
|
||
black: | ||
poetry run black src tests | ||
## | ||
|
||
flake: | ||
poetry run flakehell lint src tests | ||
isort: ## Format with isort | ||
poetry run isort src tests example.py | ||
|
||
mypy: | ||
# poetry run mypy src tests --strict --implicit-reexport | ||
poetry run mypy src tests | ||
black: ## Format with black | ||
poetry run black src tests example.py | ||
|
||
test: | ||
poetry run pytest --cov-report=term-missing --cov=pysignalr --cov-report=xml -v tests | ||
ruff: ## Lint with ruff | ||
poetry run ruff check src tests example.py | ||
|
||
cover: | ||
poetry run diff-cover coverage.xml | ||
mypy: ## Lint with mypy | ||
poetry run mypy --strict src tests example.py | ||
|
||
build: | ||
cover: ## Print coverage for the current branch | ||
poetry run diff-cover --compare-branch `git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'` coverage.xml | ||
|
||
build: ## Build Python wheel package | ||
poetry build | ||
|
||
release-patch: | ||
bumpversion patch | ||
git push --tags | ||
git push | ||
## | ||
|
||
clean: ## Remove all files from .gitignore except for `.venv` | ||
git clean -xdf --exclude=".venv" | ||
rm -r ~/.cache/flakeheaven | ||
|
||
release-minor: | ||
bumpversion minor | ||
git push --tags | ||
git push | ||
update: ## Update dependencies, export requirements.txt | ||
rm requirements.* poetry.lock | ||
make install | ||
poetry export --without-hashes -o requirements.txt | ||
|
||
release-major: | ||
bumpversion major | ||
git push --tags | ||
git push |
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
Oops, something went wrong.