Commit 3b445740 authored by Fang Yuedong's avatar Fang Yuedong
Browse files

add setup.py

parent ddf8503d
Loading
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
*.fits
*.cat
*.log
*.list
build/*
*.egg
*.egg-info/*
*.png
*.pyc
*.so
 No newline at end of file
*.out
*pnodes
*-checkpoint.ipynb
 No newline at end of file
+8.44 KiB

File added.

No diff preview for this file type.

+141 KiB

File added.

No diff preview for this file type.

requirements.txt

0 → 100644
+13 −0
Original line number Diff line number Diff line
numpy==1.26.4
astropy==6.0.1
scipy==1.11.4
GalSim==2.5.2
PyYAML==6.0.1
sep==1.2.1
healpy==1.16.6
h5py==3.11.0
Cython==3.0.6
numba==0.59.1
psutil==5.9.8
toml==0.10.2
lmfit==1.2.2
 No newline at end of file

setup.py

0 → 100644
+18 −0
Original line number Diff line number Diff line
from setuptools import setup, find_packages

with open("requirements.txt", "r") as f:
    requirements = [
        req.strip()
        for req in f.readlines()
        if not req.startswith("#") and req.__contains__("==")
    ]

setup(name='csst_source_injection',
      version='1.0.0',
      packages=find_packages(),
      package_data={
        'injection_pipeline.Catalog.data': ["*.fits"],
      },
      python_requires=">=3.11",
      install_requires=requirements,
)
 No newline at end of file