Skip to content

Commit

Permalink
pre-release: 9.0.0-alpha0
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Aug 27, 2023
1 parent be057e7 commit 91cc4fd
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:

- name: Install dependencies
run: |
poetry install
poetry install --extras 'aiohttp'
- name: Ensure httpbin server is running
run: |
while true; do response=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:9876/get); if [ "$response" = "200" ]; then echo "HTTP 200 OK received"; break; else echo "Retrying..."; sleep 1; fi; done
- name: Echo installed packages
run: |
pip freeze
poetry show
- name: Test with pytest
run: poetry run pytest -v -rs tests --runslow --cov=./ --cov-report=xml
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:

- name: Install dependencies
run: |
poetry install
poetry install --extras 'aiohttp'
- name: Run mypy check
run: |
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
Release History
==============

### Version 9.0.0-alpha0

Released on Aug 27, 2023

#### Add
- feat: add support for Soroban Preview 10. Please check the examples in the `examples` folder to learn how to use it.

#### Update
- Runtime type checking has now been removed. Please use tools like mypy for type checking. ([#706](https://github.com/StellarCN/py-stellar-base/pull/706))
- Add `__hash__` to the xdr classes. ([#757](https://github.com/StellarCN/py-stellar-base/pull/757))
- Make `aiohttp` and `aiohttp-sse-client` as optional dependencies. ([#765](https://github.com/StellarCN/py-stellar-base/pull/765))
- Add comparison operators to `Price` class. ([#741](https://github.com/StellarCN/py-stellar-base/pull/741))
- Publishing to PyPI with a Trusted Publisher. ([#767](https://github.com/StellarCN/py-stellar-base/pull/767))
- Update dependencies.

#### Breaking changes
- Remove `ValueError`, `TypeError` and `AttributeError` from `stellar_sdk.exceptions`. ([#763](https://github.com/StellarCN/py-stellar-base/pull/763))


### Version 8.2.1

Released on June 22, 2023
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Stellar Python SDK
:alt: PyPI - Implementation
:target: https://pypi.python.org/pypi/stellar-sdk

.. image:: https://img.shields.io/badge/Stellar%20Protocol-19-blue
.. image:: https://img.shields.io/badge/Stellar%20Protocol-20-blue
:alt: Stellar Protocol
:target: https://developers.stellar.org/docs/glossary/scp/

Expand All @@ -55,13 +55,13 @@ Installing

.. code-block:: text
pip install -U stellar-sdk
pip install stellar-sdk==9.0.0.a0
If you need to use asynchronous, please use the following command to install the required dependencies.

.. code-block:: text
pip install -U stellar-sdk[aiohttp]
pip install stellar-sdk[aiohttp]==9.0.0a0
We follow `Semantic Versioning 2.0.0 <https://semver.org/>`_, and I strongly
Expand Down
7 changes: 5 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "stellar-sdk"
version = "9.0.0.dev0"
version = "9.0.0a0"
description = "The Python Stellar SDK library provides APIs to build transactions and connect to Horizon."
authors = [
"overcat <[email protected]>",
Expand All @@ -27,7 +27,7 @@ keywords = [
]
license = "Apache License 2.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
__description__ = "The Python Stellar SDK library provides APIs to build transactions and connect to Horizon."
__url__ = "https://github.com/StellarCN/py-stellar-base"
__issues__ = f"{__url__}/issues"
__version__ = "9.0.0.dev0"
__version__ = "9.0.0a0"
__author__ = "Eno, overcat"
__author_email__ = "[email protected], [email protected]"
__license__ = "Apache License 2.0"
2 changes: 1 addition & 1 deletion stellar_sdk/client/aiohttp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ async def __readline(self) -> bytes:
return b"".join(line)


_AIOHTTP_DEPS_INSTALLED = True
try:
import aiohttp
from aiohttp_sse_client.client import EventSource

aiohttp.streams.StreamReader.readline = __readline # type: ignore[assignment]
_AIOHTTP_DEPS_INSTALLED = True
except ImportError:
_AIOHTTP_DEPS_INSTALLED = False

Expand Down

0 comments on commit 91cc4fd

Please sign in to comment.