No project description provided
Project description
Reasoner CLI
Local development
To run locally:
uv run python -m src.reasoner.cli upload --path=/path/to/docs
Building for pip
uv pip sync pyproject.toml
uv run python -m build
uv run pip install --editable .
# this will install into a temporary location e.g. /Users/username/.pyenv/versions/3.12.7/bin/reasoner
Publishing to pypi
python3 -m build
# publish onto pypi
python3 -m twine upload dist/*
# publish onto testpypi
python3 -m twine upload --repository testpypi dist/*
# to install via testpypi
python3 -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.python.org/simple reasonercli
Building standalone executable
uv pip sync pyproject.toml
uv run pyinstaller --clean --onefile --name reasoner entry.py
cd dist
./reasoner
Testing with older versions of python
pipenv --python 3.8 shell
python3 -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.python.org/simple reasonercli
reasonercli auth
Automated Testing
Unit Tests
To run the unit tests locally, run the following command
pytest
You can also run the unit tests in docker container, which emulates what happens when you push a branch
./scripts/build_test_image.sh
./scripts/run_test_suite.sh
Smoke Tests
Smoke tests take a long time to run, so it's recommended to run them when you make major changes and when you are cutting a new version of the SDK.
To add your version new version to the smoke test rotation, built a wheel following the the instructions above and add it to tests/integration/sdk_versions.
Then run the following commands to create a smoketest docker container and run the smoke tests. Warning: smoke tests can take longer than 10 minutes to run!
You will need to point to a specific environment determined by the environment variables you set when running the scripts
./scripts/build_smoketest_image.sh
REASONER_API_KEY=<your-api-key> REASONER_BASE_URL=<api-environment-url> ./scripts/run_smoke_test_suite.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reasonercli-0.9.0.tar.gz.
File metadata
- Download URL: reasonercli-0.9.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d4f625c8944017162a896628ca42183062397cc03c2c06590fe87cfcd124820
|
|
| MD5 |
d59317d8de1619f780b4c70b8b756c3d
|
|
| BLAKE2b-256 |
22d5a8b9e38002b688ff2f1b563e81fd83928e618f3fc2fcf76c77fd46d9b611
|
File details
Details for the file reasonercli-0.9.0-py3-none-any.whl.
File metadata
- Download URL: reasonercli-0.9.0-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e212e2b5d7854c4393c4940941f723aba55c5b4af4b1e6e14643644521b86003
|
|
| MD5 |
44291658a46cf44eb5368660ec7e7311
|
|
| BLAKE2b-256 |
cd00e4c12b608281f70943e9cd29f80a4f5a1d52e4182116c780a429e79f89df
|