-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add poetry for package management (#10)
- Loading branch information
1 parent
d087dfd
commit fae8f7e
Showing
4 changed files
with
192 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# tigris-client-python | ||
|
||
Python client for Tigris | ||
|
||
# Development | ||
1. Requires **python 3.7+**, **pip 23.x** | ||
2. Clone the repo and cd into the directory | ||
3. Update submodule - `git submodule --init` | ||
4. Install virtualenv - `pip install virtualenv` | ||
5. Create virtualenv in the project directory - `virtualenv venv` | ||
6. Activate virtualenv - `. venv/bin/activate` | ||
7. Install dependencies - `pip install -r requirements.txt` | ||
8. Compile proto and generate api client helpers - `make generate` | ||
|
||
1. Install `poetry` following the installation instructions [here](https://python-poetry.org/docs/#installation) | ||
2. Requires **python 3.7+**, **pip 23.x** | ||
3. Clone the repo and cd into the directory | ||
4. Update submodule - `git submodule update --init` | ||
5. Create and activate the virtual environment - `poetry shell` | ||
6. Install dependencies - `poetry install` | ||
7. Compile proto and generate api client helpers - `make generate` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[virtualenvs] | ||
in-project = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[tool.poetry] | ||
name = "tigris" | ||
version = "0.1.0" | ||
description = "Python SDK for Tigris <http://www.tigrisdata.com>" | ||
authors = ["Tigris team <support@tigrisdata.com>"] | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
grpcio-tools = "^1.54.0" | ||
protobuf = "^4.22.3" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |