You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Create a new python virtual env, activate it, and install the tools for the build.
57
+
python -m venv venv
58
+
source venv/bin/activate
59
+
60
+
pip install --upgrade build
61
+
pip install hatch-requirements-txt
62
+
63
+
python -m build
64
+
pip install --upgrade twine
65
+
66
+
```
67
+
68
+
This will create a `dist` directory with a tar.gz source distribution and whl built distribution.
69
+
70
+
You can test if the package works without uploading it to PyPI by installing it with the whl. Use ` --force-reinstall` if you made a new version of the package. We use `pydantic_core` in the deps, which doesn't seem to work on some versions of macos due to Rust bindings.
Create an .env file with `COPILOT_TOKEN`, and run the package with:
76
+
```bash
77
+
python -m seclab_taskflow_agent -p assistant 'how do modems work'
78
+
```
79
+
80
+
To upload it to TestPyPI (you'll need [an account on testpypi and an API token](https://packaging.python.org/en/latest/tutorials/packaging-projects/#uploading-the-distribution-archives)). Note if you then try to download the package from TestPyPI and run it, it won't work, because TestPyPi does not have the dependencies that are required for seclab-taskflow-agent. New packages on TestPyPI are regularly cleared. Test it instead using the wheel, or by using PyPI.
To upload it on PyPI (you'll need [an account on PyPI and an API token](https://packaging.python.org/en/latest/tutorials/packaging-projects/#uploading-the-distribution-archives)). Note you need to update pyproject.toml to a new (higher) version.
86
+
```bash
87
+
python -m twine upload dist/*
88
+
```
89
+
90
+
Create a fresh venv, and download the package:
91
+
```bash
92
+
python -m venv .venv
93
+
source .venv/bin/activate
94
+
pip install seclab-taskflow-agent
95
+
```
96
+
97
+
Create an .env file with `COPILOT_TOKEN`, and run the package with:
98
+
```bash
99
+
python -m seclab_taskflow_agent -p assistant 'how do modems work'
0 commit comments