Skip to content

Commit 7e75da8

Browse files
authored
Merge pull request #625 from ReactiveX/fix-library-version
Fix library version
2 parents d836284 + a295afa commit 7e75da8

File tree

8 files changed

+25
-19
lines changed

8 files changed

+25
-19
lines changed

.github/workflows/python-publish.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ jobs:
2020
with:
2121
python-version: '3.9'
2222

23-
- name: Install dependencies and set version
23+
- name: Install dependencies
24+
run: pip install poetry dunamai
25+
26+
- name: Set version
2427
run: |
25-
pip install poetry dunamai
26-
poetry version $(dunamai from any --no-metadata --style pep440)
28+
RX_VERSION=$(dunamai from any --no-metadata --style pep440)
29+
poetry version $RX_VERSION
30+
poetry run echo "__version__ = \"$RX_VERSION\"" > reactivex/_version.py
2731
2832
- name: Build package
2933
run: poetry build

README.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ install:
3939
About ReactiveX
4040
---------------
4141

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

4848
.. code:: python
4949
@@ -67,7 +67,7 @@ Read the `documentation
6767
the principles of ReactiveX and get the complete reference of the available
6868
operators.
6969

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

7373
There is also a list of third party documentation available `here

docs/index.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
The Reactive Extensions for Python (RxPY)
7-
==========================================
6+
ReactiveX for Python (RxPY)
7+
===========================
88

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

1213
.. toctree::
1314
:maxdepth: 2

docs/installation.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
Installation
44
============
55

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

89
.. code:: console
910

docs/license.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MIT License
22
===============
33

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

66
Permission is hereby granted, free of charge, to any person obtaining a copy of
77
this software and associated documentation files (the "Software"), to deal in

docs/migration.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ current Python standards:
2020

2121
.. code:: python
2222
23-
import reactivex
23+
import reactivex as rx
2424
from reactivex import operators as ops
2525
26-
reactivex.of("Alpha", "Beta", "Gamma", "Delta", "Epsilon").pipe(
26+
rx.of("Alpha", "Beta", "Gamma", "Delta", "Epsilon").pipe(
2727
ops.map(lambda s: len(s)),
2828
ops.filter(lambda i: i >= 5)
2929
).subscribe(lambda value: print("Received {0}".format(value)))

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ReactiveX"
3-
version = "0.0.0"
3+
version = "0.0.0" # NOTE: will be updated by publish script
44
description = "ReactiveX (Rx) for Python"
55
readme = "README.rst"
66
authors = ["Dag Brattli <[email protected]>"]

reactivex/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "$(dunamai from any)"
1+
__version__ = "0.0.0" # NOTE: version will be written by publish script

0 commit comments

Comments
 (0)