Skip to content

Commit

Permalink
Merge pull request #625 from ReactiveX/fix-library-version
Browse files Browse the repository at this point in the history
Fix library version
  • Loading branch information
dbrattli committed Mar 6, 2022
2 parents d836284 + a295afa commit 7e75da8
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 19 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ jobs:
with:
python-version: '3.9'

- name: Install dependencies and set version
- name: Install dependencies
run: pip install poetry dunamai

- name: Set version
run: |
pip install poetry dunamai
poetry version $(dunamai from any --no-metadata --style pep440)
RX_VERSION=$(dunamai from any --no-metadata --style pep440)
poetry version $RX_VERSION
poetry run echo "__version__ = \"$RX_VERSION\"" > reactivex/_version.py
- name: Build package
run: poetry build
Expand Down
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ install:
About ReactiveX
---------------

ReactiveX for Python (RxPY) is a set of libraries for composing asynchronous and
event-based programs using observable sequences and pipable query operators in Python.
Using Rx, developers represent asynchronous data streams with Observables, query
asynchronous data streams using operators, and parameterize concurrency in data/event
streams using Schedulers.
ReactiveX for Python (RxPY) is a library for composing asynchronous and event-based
programs using observable sequences and pipable query operators in Python. Using Rx,
developers represent asynchronous data streams with Observables, query asynchronous data
streams using operators, and parameterize concurrency in data/event streams using
Schedulers.

.. code:: python
Expand All @@ -67,7 +67,7 @@ Read the `documentation
the principles of ReactiveX and get the complete reference of the available
operators.

If you need to migrate code from RxPY v1.x, read the `migration
If you need to migrate code from RxPY v1.x or v3.x, read the `migration
<https://rxpy.readthedocs.io/en/latest/migration.html>`_ section.

There is also a list of third party documentation available `here
Expand Down
9 changes: 5 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
The Reactive Extensions for Python (RxPY)
==========================================
ReactiveX for Python (RxPY)
===========================

RxPY is a library for composing asynchronous and event-based programs using
observable collections and pipable query operators in Python.
ReactiveX for Python (RxPY) is a library for composing asynchronous and
event-based programs using observable collections and pipable query
operators in Python.

.. toctree::
:maxdepth: 2
Expand Down
3 changes: 2 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
Installation
============

ReactiveX for Python v4.x runs on `Python <http://www.python.org/>`__ 3. To install:
ReactiveX for Python (RxPY) v4.x runs on `Python
<http://www.python.org/>`__ 3. To install:

.. code:: console
Expand Down
2 changes: 1 addition & 1 deletion docs/license.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License
===============

Copyright 2013-2019, Dag Brattli, Microsoft Corp., and Contributors.
Copyright 2013-2022, Dag Brattli, Microsoft Corp., and Contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
4 changes: 2 additions & 2 deletions docs/migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ current Python standards:

.. code:: python
import reactivex
import reactivex as rx
from reactivex import operators as ops
reactivex.of("Alpha", "Beta", "Gamma", "Delta", "Epsilon").pipe(
rx.of("Alpha", "Beta", "Gamma", "Delta", "Epsilon").pipe(
ops.map(lambda s: len(s)),
ops.filter(lambda i: i >= 5)
).subscribe(lambda value: print("Received {0}".format(value)))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ReactiveX"
version = "0.0.0"
version = "0.0.0" # NOTE: will be updated by publish script
description = "ReactiveX (Rx) for Python"
readme = "README.rst"
authors = ["Dag Brattli <dag@brattli.net>"]
Expand Down
2 changes: 1 addition & 1 deletion reactivex/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "$(dunamai from any)"
__version__ = "0.0.0" # NOTE: version will be written by publish script

0 comments on commit 7e75da8

Please sign in to comment.