Skip to content

New installation process and metadata output #227

Merged
LalithShiyam merged 2 commits intoENHANCE-PET:mainfrom
Keyn34:main-upstream
Jan 19, 2026
Merged

New installation process and metadata output #227
LalithShiyam merged 2 commits intoENHANCE-PET:mainfrom
Keyn34:main-upstream

Conversation

@Keyn34
Copy link
Collaborator

@Keyn34 Keyn34 commented Jan 19, 2026

This commit updates how the package is installed. pyproject.toml is now used, and setup.py uses the .toml file for compatibility. Additionally, a metadata file is now written for each MOOSE run to facilitate easier debugging and further processing.

setup.py

  • removed legacy setup.py installation routine and migrated to a modern pyproject.toml-based build system.

pyproject.toml

  • introduced pyproject.toml to configure package metadata and installation (PEP 517/518 compliant).
  • elevated version to 3.1.3 (was 3.1.2) and later to 3.1.5 to account for intermediate updates.

constants.py

  • removed obsolete VERSION string; version information now fully handled via MOOSE_VERSION in system.py.

system.py

  • adjusted imports
  • all previous references to VERSION from constants.py are now replaced with MOOSE_VERSION.
  • MOOSE_VERSION is now retrieved dynamically from installed package metadata at runtime.
  • added get_accelerator_information() as the single source of truth for accelerator detection (CUDA, MPS, CPU) including GPU details when available. This can then be used by get_system_information() and check_device() for further processing and acts as single source of truth for both.
  • added get_system_information() and write_information_json() to prepare a dictionary with basic metadata that can be modified and written with write_information_json() to a desired path.
  • removed redundant comments

moosez.py

  • all previous references to VERSION from constants.py are now replaced with MOOSE_VERSION
  • moose_subject() collects now metadata for the subject being processed and writes it in the main moose directory to provide more information on the system and models and their output
  • removed redundant comments

setup.py
- removed legacy setup.py installation routine and migrated to a modern pyproject.toml-based build system.

pyproject.toml
- introduced pyproject.toml to configure package metadata and installation (PEP 517/518 compliant).
- elevated version to 3.1.3 (was 3.1.2).

constants.py
- removed obsolete VERSION string; version information now fully handled via MOOSE_VERSION in system.py.

system.py
- adjusted imports
- all previous references to VERSION from constants.py are now replaced with MOOSE_VERSION.
- MOOSE_VERSION is now retrieved dynamically from installed package metadata at runtime.
- added get_accelerator_information() as the single source of truth for accelerator detection (CUDA, MPS, CPU) including GPU details when available. This can then be used by get_system_information() and check_device() for further processing and acts as single source of truth for both.
- added get_system_information() and write_information_json() to prepare a dictionary with basic metadata that can be modified and written with write_information_json() to a desired path.
- removed redundant comments

moosez.py
- all previous references to VERSION from constants.py are now replaced with MOOSE_VERSION
- moose_subject() collects now metadata for the subject being processed and writes it in the main moose directory to provide more information on the system and models and their output
- removed redundant comments
…OSE version 3.1.4

setup.py
- removed legacy setup.py installation routine and migrated to a modern pyproject.toml-based build system.

pyproject.toml
- introduced pyproject.toml to configure package metadata and installation (PEP 517/518 compliant).
- elevated version to 3.1.3 (was 3.1.2).

constants.py
- removed obsolete VERSION string; version information now fully handled via MOOSE_VERSION in system.py.

system.py
- adjusted imports
- all previous references to VERSION from constants.py are now replaced with MOOSE_VERSION.
- MOOSE_VERSION is now retrieved dynamically from installed package metadata at runtime.
- added get_accelerator_information() as the single source of truth for accelerator detection (CUDA, MPS, CPU) including GPU details when available. This can then be used by get_system_information() and check_device() for further processing and acts as single source of truth for both.
- added get_system_information() and write_information_json() to prepare a dictionary with basic metadata that can be modified and written with write_information_json() to a desired path.
- removed redundant comments

moosez.py
- all previous references to VERSION from constants.py are now replaced with MOOSE_VERSION
- moose_subject() collects now metadata for the subject being processed and writes it in the main moose directory to provide more information on the system and models and their output
- removed redundant comments
@vercel
Copy link

vercel bot commented Jan 19, 2026

@Keyn34 is attempting to deploy a commit to the lalithshiyam's projects Team on Vercel.

A member of the Team first needs to authorize it.

@LalithShiyam LalithShiyam merged commit 4ba624a into ENHANCE-PET:main Jan 19, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants