-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCONTRIBUTING
More file actions
37 lines (22 loc) · 1.22 KB
/
CONTRIBUTING
File metadata and controls
37 lines (22 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Project initialization
This project is currently not open to major PRs. But, will accept minor fixes. Please raise an issue first, before creating a PR.
## Setup
Project uses `poetry`. Was initialized using `poetry new --name modelstar --src modelstar`.
To create the virtualenv inside the project path and for vscode recognize it, use: `poetry config virtualenvs.in-project true`
To install the local developing project into the environment in editable mode use `poetry install` which is an equivalent of `pip install -e .`.
### Using with `pyenv` + `poetry`
- Find out which and where is the Python version that is needed (Py-3.8), using: `pyenv which python`
- Use that path to activate the env of Poetry: `poetry env use <path>`
- Install the dependencies for the project: `poetry install`
- Spawn the virtual environment: `poetry shell`
## Publish the package on PyPI
**Upadte Package Version in:**
- `src/modelstar/version.py`
- `pyproject.toml`
**Build and publish the package:**
```shell
poetry publish --build --username __token__ --password $PYPI_MODELSTAR_KEY --build --skip-existing
```
---
**Quick References**
- [Snowpark API Reference](https://docs.snowflake.com/en/developer-guide/snowpark/reference/python/index.html)