diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb3e575..04007a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,8 +33,8 @@ shfmt: - mkdir -p ${PIP_CACHE_DIR} - python -m venv .venv - source .venv/bin/activate - - pip install -r requirements.txt - - pip install -e . + - pip install --upgrade pip + - pip install -e .[dev] cache: - paths: - .cache/pip @@ -49,10 +49,7 @@ build_sdist: extends: .base stage: build script: - - echo "to be implemented" - # TODO - # - python -m build - # - twine check dist/* + - hatch build artifacts: expire_in: 1 week paths: @@ -65,6 +62,6 @@ publish_to_pypi: needs: - build_sdist script: - - python -m twine upload dist/* --non-interactive -u $PYPI_USERNAME -p $PYPI_PASSWORD + - hatch publish -u __token__ -a $PYPI_TOKEN rules: - if: $CI_COMMIT_TAG diff --git a/pyproject.toml b/pyproject.toml index 5dd07f3..2a0d8ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,16 +9,17 @@ readme = "README.md" license = "" dependencies = [ - "cogment[generate]>=2.0.0,<3.0.0", - "grpcio>=1.44", - "PyYAML~=6.0.1", + "cogment[generate]>=2.10.1,<3.0.0", + "grpcio>=1.48", + "grpcio-tools>=1.48", + "PyYAML>=5.0", "starlette>=0.21.0", "uvicorn>=0.17.6", "Gymnasium[classic_control]~=0.29", "PettingZoo~=1.23.1", "numpy", "opencv-python>=4.8", - "fastapi>=0.105", + "fastapi>=0.103", "pillow>=9.0", ] @@ -41,21 +42,20 @@ all = [ "pytest-asyncio", "coltra>=0.2.1", "torch", - "Grid2Op==1.9.6", - "lightsim2grid", - "numba==0.56.4", "matplotlib", "wandb>=0.13.9", + "hatch>=1.9.1", + "ruff>=0.1.7", + "jupyter>=1.0.0", + "jupyterlab>=3.5.3", ] dev = [ - "pytest >=7.1.3", + "pytest>=7.1.3", "pytest-asyncio", "ruff>=0.1.7", - "jupyter>=1.0.0", - "jupyterlab>=3.5.3", + "hatch>=1.7.0" ] coltra = ["coltra>=0.2.1", "torch", "wandb>=0.13.9"] -grid2op = ["Grid2Op==1.9.6", "lightsim2grid", "numba==0.56.4"] [project.urls] Homepage = "https://cogment.ai/lab"