Skip to content

Commit

Permalink
Merge pull request #37 from aleph-alpha-intelligence-layer/improve_in…
Browse files Browse the repository at this point in the history
…stall_instructions

Instruction for requirements.txt or pyproject.toml
  • Loading branch information
pitneitemeier authored Oct 31, 2023
2 parents 293ff1d + 84f1a3a commit 2913efc
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,30 @@ To install this as a dependency in your project, you need a [Github access token
Set your access token:

```bash
GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>
export GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>
```
We recommend setting up a dedicated virtual environment. You can do so by using [conda](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands) or [venv](https://docs.python.org/3/library/venv.html) or [poetry](https://python-poetry.org/).

We recommend setting up a dedicated virtual environment. You can do so by using [conda](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands) or [venv](https://docs.python.org/3/library/venv.html).
You can add it to the poetry dependencies by adding the following in the pyproject.toml
```toml
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
intelligence-layer = { git = "https://github.com/aleph-alpha-intelligence-layer/intelligence-layer.git", branch = "main", extras = ["${GITHUB_TOKEN}"] }
```

Remember to run
```bash
poetry lock
```
to update dependencies.

Alternatively you can also add it to a `requirements.txt`

```txt
git+https://${GITHUB_TOKEN}@github.com/aleph-alpha-intelligence-layer/intelligence-layer.git
```

Let's install the package:
Finally you can also install the package manually using pip

```bash
pip install git+https://$GITHUB_TOKEN@github.com/aleph-alpha-intelligence-layer/intelligence-layer.git
Expand Down

0 comments on commit 2913efc

Please sign in to comment.