This PR aims to migrate the project's dependency management and packaging to Poetry, as outlined in the referenced issue. The main improvements included in this update, besides Poetry, are described below:
Removed unused imports in the project.
Coverage: Ignore the gymnasium environment register.
Deleted all deprecated files: requirements.txt, MANIFEST.in, setup.py, setup.cfg, conda_environment.yml.
Consolidated all previously removed information with Poetry, using both pyproject.toml and poetry.lock.
Pytype is operational again, as compatibility with Python 3.12 has been fixed.
Improved containers that are clearly differentiated between development (devcontainer) and production or tool usage (in the project root).
Added new default extensions for development in VSCode (devcontainer).
Installation section has been updated in Sinergym documentation.
Add new badge for DockerHub official repository
Regarding Sinergym workflows, there have been some changes:
The pytype job has been reintroduced into the automated checks.
Poetry is used for the configuration of all jobs.
The autopep8 job has been improved. It now causes a failure in the PR to prevent changes in the main branch by a bot, and it is also separated from isort. The functionality to push to the main branch remains for safety.
Motivation and Context
[x] I have raised an issue to propose this change (required for new features and bug fixes)
Fixes #435
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
This PR aims to migrate the project's dependency management and packaging to Poetry, as outlined in the referenced issue. The main improvements included in this update, besides Poetry, are described below:
requirements.txt
,MANIFEST.in
,setup.py
,setup.cfg
,conda_environment.yml
.pyproject.toml
andpoetry.lock
.devcontainer
) and production or tool usage (in the project root).devcontainer
).Regarding Sinergym workflows, there have been some changes:
Motivation and Context
Fixes #435
Types of changes
Checklist:
autopep8
second level aggressive.isort
.cd docs && make spelling && make html
pass (required if documentation has been updated.)pytest tests/ -vv
pass. (required).pytype -d import-error sinergym/
pass. (required)Changelog:
See Description and commits.