Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .copier-answers.yml.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Managed by Copier. Do not edit by hand.
# Run `copier update` from the project root to pull upstream changes.
{{ _copier_answers|to_nice_yaml }}
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,23 @@ except SomeError:
pip install hyperion-proxy-rotator
```

## Or vendor it with Copier

To copy the code straight into a project instead of depending on the published
package, use [Copier](https://copier.readthedocs.io/):

```
copier copy gh:hyperion-ai-agency/hyperion-proxy-rotator path/to/project
```

That drops `src/proxy_rotator/` and `tests/` into the project and records a
`.copier-answers.yml`. The vendored code still needs `requests`. Pull later
upstream fixes into the vendored copy from the project root:

```
copier update
```

## Development

```
Expand Down
33 changes: 33 additions & 0 deletions copier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Vendor this library into a project instead of installing it from PyPI:
#
# copier copy gh:hyperion-ai-agency/hyperion-proxy-rotator path/to/project
#
# It drops src/proxy_rotator/ and tests/ into the target and records a
# .copier-answers.yml. Pull upstream fixes later from inside the project:
#
# copier update

_exclude:
- "copier.yml"
- "pyproject.toml"
- "README.md"
- "LICENSE"
- "CHANGELOG.md"
- "uv.lock"
- ".gitignore"
- ".pre-commit-config.yaml"
- ".github"
- ".github/**"
- ".venv"
- "dist"
- ".pytest_cache"
- ".pytest_cache/**"
- ".ruff_cache"
- ".ruff_cache/**"
- "**/__pycache__"
- "**/*.pyc"

_message_after_copy: |
Vendored proxy_rotator (src/proxy_rotator) and its tests.
It requires `requests` in the target project.
Pull upstream fixes later with: copier update
Loading