Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
# Python User Language Support
Python User Language Support for [Cloudstate](https://github.com/cloudstateio/cloudstate).
Python User Language Support for [Cloudstate](https://github.com/cloudstateio/cloudstate).

## Installation via source

```
> git clone https://github.com/cloudstateio/python-support.git
Cloning into 'python-support'...

> cd python-support
> python3 -m venv ./venv
> source ./venv/bin/activate
> python --version
Python 3.7.3
> pip --version
> pip install wheel
> pip install .
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cloned a repo and after this step, I could not start ./tck.sh but after pip install . I where.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sleipnir wdyt?


### generate installer
```
./venv/bin/python3 setup.py bdist_wheel
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sleipnir
I get this executing bdist_wheel. I read I need ti pip install wheel?

(venv) ➜  python-support git:(master) ✗ ./venv/bin/python3 setup.py bdist_wheel
package name: cloudstate, version: 0.5.0
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_wheel'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, after

pip install wheel

the next command installed the module.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah! That was missing to mention, but we need it if we want to publish

```

### local install
```
./venv/bin/python3 -m pip install dist/cloudstate-0.5.0-py3-none-any.whl
```
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
attrs==19.3.0
google-api==0.1.12
googleapis-common-protos >= 1.51.0
grpcio==1.28.1
grpcio-tools==1.28.1
protobuf==3.11.3
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
[metadata]
url = https://cloudstate.io/
author = Cloudstate
#author_email = sleipnir@bsd.com.br
license = Apache
license_file = LICENSE
classifiers =
Intended Audience :: Developers
License :: OSI Approved :: Apache Version 2
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.6
project_urls =
Documentation = https://cloudstate.io/docs/user/lang/index.html
Source = https://github.com/cloudstateio/python-support
Expand Down