How could this be packaged according to modern Python standards? Generate the necessary…
- User
How could this be packaged according to modern Python standards? Generate the necessary files, and amend code as needed.
Assistant
I'll help create a modern Python package structure for photometry-sans-frustration (psf). Here's how we can modernize it:
- First, let's create the proper package structure:
codephotometry-sans-frustration/ ├── LICENSE ├── MANIFEST.in ├── README.md ├── pyproject.toml ├── setup.cfg ├── src/ │ └── psf/ │ ├── __init__.py │ ├── core.py │ ├── catalog.py │ ├── utils.py │ ├── visualization.py │ └── cli.py ├── tests/ │ ├── __init__.py │ └── test_psf.py └── examples/ └── SN2015bn/ ├── 2015bn_coords.txt └── 2015bn_seq.txt- Here's the content for each configuration file:
pyproject.toml:[Redacted[build-system] requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"] build-backend = "setuptools.build_meta" [project] name = "photometry-sans-frustration" description = "Interactive python wrapper for point-spread fitting (PSF) photometry" authors = [{name = "[Redacted Person]"}] readme = "README.md" requires-python = ">=3.8" keywords = ["astronomy", "photometry", "psf"] license = {text = "MIT"} classifiers = [ "Programming Language [Redacted IPAddress] Python [Redacted IPAddress] 3", "License [Redacted IPAddress] OSI Approved [Redacted IPAddress] MIT License", "Operating System [Redacted IPAddress] OS Independent", "Topic [Redacted IPAddress] Scientific/Engineering [Redacted IPAddress] Astronomy", ] dependencies = [ "numpy", "astropy", "photutils", "matplotlib", "requests", "astroquery", "astroalign", "scikit-image", "pyzogy", ] dynamic = ["version"] [project.optional-dependencies] dev = [ "pytest", "[Redacted Person]", "isort", "[Redacted Person]", ] [project.scripts] psf = "psf.cli:main" [tool.setuptools] package-dir = {"" = "src"} [tool.setuptools_scm]
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.