Content-Length: 315138 | pFad | https://github.com/stacklok/codegate/pull/701

21 Harmonize readme and dev guide (fixes https://github.com/stacklok/codegate/issues/700) by wright-io · Pull Request #701 · stacklok/codegate · GitHub
Skip to content

Harmonize readme and dev guide (fixes https://github.com/stacklok/codegate/issues/700) #701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 23, 2025

Conversation

wright-io
Copy link
Contributor

No description provided.

Comment on lines 41 to 48
3. Set up virtual environment

```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```

4. Install project dependencies:
Copy link
Contributor

@lukehinds lukehinds Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR Doug, looks good. FYI.. don't need to create a venv with poetry, it creates its own when you run poetry install.

image

You can then do:

poetry run pytest tests/integration/integration_tests.py or poetry run codegate serve --log-level DEBUG --log-format TEXT etc.

There is also a plugin poetry self add poetry-plugin-shell, with this you can run codegate direct

image

Copy link
Contributor Author

@wright-io wright-io Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukehinds Makes sense! Would you prefer we advise just using poetry run in the docs for simplicity (as opposed to bringing in the shell plugin option to those docs)? For example:

Then run import_packages to ensure integration test data is created:

poetry run python scripts/import_packages.py

Then the integration tests can be executed by running:

poetry run python tests/integration/integration_tests.py

- Removed information from README that repeated or conflicted with the Development Guide (docs/development.md).
- Moved development guidance that was only in the README into the Development Guide
- Added a note to clarify context needed for running integration tests.
@wright-io wright-io force-pushed the harmonize-readme-and-dev-guide-700 branch from 1f5a8d3 to 9ea6f2f Compare January 22, 2025 16:09
@wright-io
Copy link
Contributor Author

@lukehinds Would appreciate another review on this, if you don't mind.

@lukehinds
Copy link
Contributor

Yeah, don't worry about mentioning the shell plugin.

@lukehinds lukehinds merged commit a72d86d into stacklok:main Jan 23, 2025
4 checks passed
@wright-io wright-io deleted the harmonize-readme-and-dev-guide-700 branch January 24, 2025 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjust README to remove redundancy and differences with Development Guide
2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/stacklok/codegate/pull/701

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy