Skip to main content

Utilities for validating karel.js/ReKarel test cases

Project description

Libkarel

Utilerías en Python para validar casos de prueba de Karel.

🚀 Cómo contribuir

Si deseas modificar libkarel, sigue estos pasos para trabajar con tu propia versión del código.

1️⃣ Hacer un fork del repositorio

Ve al repositorio oficial en GitHub: 🔗 https://github.com/omegaup/libkarel

Haz clic en el botón "Fork" en la esquina superior derecha para crear tu propia copia del repositorio en tu cuenta.

2️⃣ Clonar el fork en tu máquina

Una vez que tengas el fork, clónalo en tu computadora con:

git clone https://github.com/TU-USUARIO/libkarel.git

⚠️ No olvides reemplazar TU-USUARIO con tu nombre de usuario de GitHub.

Luego, entra en la carpeta del proyecto:

cd libkarel

3️⃣ Configurar el repositorio remoto

Para mantener tu fork actualizado con el repositorio original, agrégalo como remoto upstream:

git remote add upstream https://github.com/omegaup/libkarel.git

Cada vez que quieras sincronizar cambios del repositorio oficial, usa:

git fetch upstream
git merge upstream/master

🛠 Prerrequisitos

Antes de instalar libkarel, asegúrate de contar con las siguientes herramientas en tu sistema:

Dependencias necesarias

  1. Python 3.6 o superior

    • Verifica tu versión con:

      python3 --version
      
    • Si necesitas instalar Python, sigue las instrucciones oficiales en python.org.

  2. pip (gestor de paquetes de Python)

    • Si pip no está instalado, puedes instalarlo con:

      sudo apt install python3-pip
      
  3. pytest (para ejecutar pruebas)

    • Instala pytest con:

      pip install pytest
      
  4. Git (para gestionar el código fuente)

    • Si git no está instalado, agrégalo con:

      sudo apt install git
      

🔧 Instalación

Para instalar libkarel en modo desarrollo, usa:

pip install -e .

✅ Pruebas

Para ejecutar las pruebas:

cd tests
python3 -m pytest .

Hay algunas pruebas que se saltaron desde la configuración. Para poder ejecutarlas debes utilizar el siguiente comando:

cd tests
python3 kareltest_test.py test_case_1

🚀 Últimos cambios

  • Compatibilidad con ReKarel (versión 1.1)
  • Nueva funcionalidad: memoriastack
  • Nueva funcionalidad: llamadaMaxima

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libkarel-1.1.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libkarel-1.1.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file libkarel-1.1.2.tar.gz.

File metadata

  • Download URL: libkarel-1.1.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for libkarel-1.1.2.tar.gz
Algorithm Hash digest
SHA256 415341c2dc6e563bfc2e9af2f651eeb2075c0cc88af5774ef4dfd2e189ad32ad
MD5 51f16d37d27546ca3f59a06945173f25
BLAKE2b-256 f0e6afd6cdf8f1fe3a0d6bb02fe9cd1b051a6a1697e39449f36ee86ab8a76276

See more details on using hashes here.

File details

Details for the file libkarel-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: libkarel-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for libkarel-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a06316a7c8f9a5e75ced3ada894f6656a6cb1a37d8b60c1e796c4da8da8c16cf
MD5 e6ab14d1c1e2d2500a07f0ad444965d4
BLAKE2b-256 0ac8270270c849326cf2a8c459f398a41f505e25b979d7c9412188604632a338

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page