diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 518b8c3..eff0b74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,9 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} cache: pip @@ -43,9 +43,9 @@ jobs: extra_name: ', check formatting' steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 if: "!endsWith(matrix.python, '-dev')" with: python-version: ${{ matrix.python }} @@ -73,9 +73,9 @@ jobs: python: ['3.7', '3.8', '3.9', '3.10'] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} cache: pip diff --git a/.readthedocs.yml b/.readthedocs.yml index da6abdf..f282a39 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,10 +1,17 @@ +version: 2 + # https://docs.readthedocs.io/en/latest/yaml-config.html formats: - htmlzip - epub -requirements_file: ci/rtd-requirements.txt +build: + os: ubuntu-22.04 + tools: + python: "3" python: - version: 3 - pip_install: True + install: + - requirements: ci/rtd-requirements.txt + - method: pip + path: . diff --git a/ci.sh b/ci.sh index 2c55784..dce66c2 100755 --- a/ci.sh +++ b/ci.sh @@ -4,7 +4,7 @@ set -ex YAPF_VERSION=0.20.1 -pip install -U pip setuptools wheel +python -m pip install -U pip setuptools wheel python setup.py sdist --formats=zip pip install dist/*.zip diff --git a/docs/source/history.rst b/docs/source/history.rst index 6d0dd95..ab6c0a6 100644 --- a/docs/source/history.rst +++ b/docs/source/history.rst @@ -5,6 +5,17 @@ Release history .. towncrier release notes start +Outcome 1.3.0 (2023-10-17) +-------------------------- + +Features +~~~~~~~~ + +- Added type hints to the package. :py:class:`Value` and :py:class`Outcome` are now generic. + A type alias was also added (:py:data:`Maybe`) for the union of :py:class:`Value` + and :py:class:`Error`. (`#36 `__) + + Outcome 1.2.0 (2022-06-14) -------------------------- diff --git a/newsfragments/36.feature.rst b/newsfragments/36.feature.rst deleted file mode 100644 index 935bbd9..0000000 --- a/newsfragments/36.feature.rst +++ /dev/null @@ -1,3 +0,0 @@ -Added type hints to the package. :py:class:`Value` and :py:class`Outcome` are now generic. -A type alias was also added (:py:data:`Maybe`) for the union of :py:class:`Value` -and :py:class:`Error`. diff --git a/src/outcome/_version.py b/src/outcome/_version.py index cd409a0..5ccf4e1 100644 --- a/src/outcome/_version.py +++ b/src/outcome/_version.py @@ -4,4 +4,4 @@ if TYPE_CHECKING: from typing_extensions import Final -__version__: 'Final[str]' = "1.2.0+dev" +__version__: 'Final[str]' = "1.3.0+dev"