LSSTDESC / bayesian-pipelines-pixels

Bayesian cosmological inference directly from pixels.
MIT License
5 stars 2 forks source link

start package #16

Closed ismael-mendoza closed 2 years ago

ismael-mendoza commented 2 years ago

Here I just setup the python package using a pyproject.toml file. I decided to use this type of file since it is more modern and suggested over the older setup.py + requirements.txt.

For installing the package + dependencies (locally or pypi), I decided to use flit which seems very lightweight and simple to use, although I'm open to suggestions.

Specifically

flit install -s --deps all

will install all dependencies (specified in pyproject.toml, see dependencies and project.optional-dependencies) and the package locally (in editable mode). I added how to install the package in the README also.

Any suggestions or does this look ok @EiffL @mdschneider ? After this PR I will start adding the galaxy drawing code we discussed (the code will live in the bpp folder)

ismael-mendoza commented 2 years ago

Hi @EiffL and @mdschneider - I'm merging this now to start adding the other code. Please feel free to still let me know if you have suggestions and I'm happy to open a separate PR to address them.