Datasets:
Download tests/make_fixture_data.py from pushkar87dg/pypi-api-drift: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/datasets/pushkar87dg/pypi-api-drift/resolve/main/tests/make_fixture_data.py
- Command line
-
hf download hf://datasets/pushkar87dg/pypi-api-drift/tests/make_fixture_data.py
-
curl -L -o make_fixture_data.py https://huggingface.co/datasets/pushkar87dg/pypi-api-drift/resolve/main/tests/make_fixture_data.py
469 Bytes
| """Regenerate tests/fixtures/data (the tiny demo-lib dataset the action workflow test downloads).""" | |
| import os, sys | |
| sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | |
| from conftest import DEMO_V1, DEMO_V2 | |
| from helpers import build_dataset | |
| if __name__ == "__main__": | |
| out = os.path.join(os.path.dirname(os.path.abspath(__file__)), "fixtures", "data") | |
| build_dataset(out, {"demo-lib": [("1.0.0", DEMO_V1), ("2.0.0", DEMO_V2)]}) | |
| print("wrote", out) | |