SIMPLE-AstroDB / SIMPLE-db

Curated collection of data for low mass stars, brown dwarfs, and directly imaged exoplanets.
https://simple-bd-archive.org/
BSD 3-Clause "New" or "Revised" License
11 stars 22 forks source link

Generate database action broken #567

Open kelle opened 2 days ago

kelle commented 2 days ago

The Generate database action is breaking because __init.py__ is calling the version.py module created by setuptools which is not supposed to be in the repo. Not sure if the call to version in init.py should be removed.

Broken action: https://github.com/SIMPLE-AstroDB/SIMPLE-db/actions/runs/11921063937


Traceback (most recent call last):
  File "/home/runner/work/SIMPLE-db/SIMPLE-db/simple/utils/generate_database.py", line 9, in <module>
    from simple.schema import REFERENCE_TABLES
  File "/home/runner/work/SIMPLE-db/SIMPLE-db/./simple/__init__.py", line 1, in <module>
    from .version import version as __version__
ModuleNotFoundError: No module named 'simple.version'
dr-rodriguez commented 15 hours ago

The simple package just needs to be pip installed, since we specify in the new pyproject.toml that doing so creates version.py