Skip to content

Commit

Permalink
Migrate metadata from setup.cfg to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Oct 18, 2023
1 parent 87af26b commit 8140363
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 93 deletions.
83 changes: 83 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,86 @@
[project]
name = "pyemir"
dynamic = ["version"]
readme = "README.rst"
requires-python = ">=3.8"
license = {text = "GPL-3.0-or-later"}
authors = [
{name = "Sergio Pascual", email = "[email protected]"},
{name = "Nicolás Cardiel", email = "[email protected]"},
]
classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Astronomy",
]

dependencies = [
"numpy >= 1.20",
"astropy",
"scipy >= 1.8",
"matplotlib",
"lmfit",
"numina>=0.32",
"six",
"photutils>=1.4",
"sep>=0.5",
"scikit-image>=0.18",
"scikit-learn>=0.19",
"reproject",
"importlib_resources", # required with python < 3.9
]

[project.optional-dependencies]
test = [
"pytest>=6",
"pytest-remotedata",
]
docs = [
"sphinx>=7",
"sphinx_rtd_theme"
]
tool = [
"PyQt5",
]

[project.urls]
Homepage = "https://github.com/guaix-ucm/pyemir"
Repository = "https://github.com/guaix-ucm/pyemirgit"
Documentation = "https://pyemir.readthedocs.io/en/stable/"

[project.entry-points."numina.pipeline.1"]
EMIR = "emirdrp.loader:load_drp"

[project.scripts]
pyemir-apply_rectification_only = "emirdrp.tools.apply_rectification_only:main"
pyemir-apply_rectwv_coeff = "emirdrp.processing.wavecal.apply_rectwv_coeff:main"
pyemir-continuum_flatfield = "emirdrp.tools.continuum_flatfield:main"
pyemir-convert_refined_multislit_param = "emirdrp.tools.convert_refined_multislit_bound_param:main"
pyemir-display_slitlet_arrangement = "emirdrp.tools.display_slitlet_arrangement:main"
pyemir-fit_boundaries = "emirdrp.tools.fit_boundaries:main"
pyemir-generate_yaml_for_abba = "emirdrp.tools.generate_yaml_for_abba:main"
pyemir-generate_yaml_for_dithered_image = "emirdrp.tools.generate_yaml_for_dithered_image:main"
pyemir-median_slitlets_rectified = "emirdrp.processing.wavecal.median_slitlets_rectified:main"
pyemir-merge_bounddict_files = "emirdrp.tools.merge_bounddict_files:main"
pyemir-merge2images = "emirdrp.tools.merge2images:main"
pyemir-rectwv_coeff_add_longslit_model = "emirdrp.processing.wavecal.rectwv_coeff_add_longslit_model:main"
pyemir-rect_wpoly_for_mos = "emirdrp.tools.rect_wpoly_for_mos:main"
pyemir-rectwv_coeff_from_arc_image = "emirdrp.processing.wavecal.rectwv_coeff_from_arc_image:main"
pyemir-rectwv_coeff_from_mos_library = "emirdrp.processing.wavecal.rectwv_coeff_from_mos_library:main"
pyemir-rectwv_coeff_to_ds9 = "emirdrp.processing.wavecal.rectwv_coeff_to_ds9:main"
pyemir-select_unrectified_slitlets = "emirdrp.tools.select_unrectified_slitlets:main"
pyemir-slitlet_boundaries_from_continuum = "emirdrp.tools.slitlet_boundaries_from_continuum:main"
pyemir-overplot_boundary_model = "emirdrp.processing.wavecal.overplot_boundary_model:main"
pyemir-overplot_bounddict = "emirdrp.tools.overplot_bounddict:main"

[build-system]
requires = ["setuptools >= 45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
Expand Down
93 changes: 0 additions & 93 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,95 +1,2 @@
[metadata]
name = pyemir
author = Sergio Pascual
author_email = [email protected]
url = https://github.com/guaix-ucm/pyemir
license = GPLv3
license_files =
LICENSE.txt
description = EMIR Data Processing Pipeline
classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Development Status :: 3 - Alpha
Environment :: Console
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License (GPL)
Operating System :: OS Independent
Topic :: Scientific/Engineering :: Astronomy
long_description = file:README.rst
long_description_content_type = text/x-rst

[options]
packages = find:
package_dir =
= src
install_requires =
setuptools>=39.2
numpy >= 1.20
astropy
scipy >= 1.8
matplotlib
lmfit
numina>=0.32
six
photutils>=1.4
sep>=0.5
scikit-image>=0.18
scikit-learn>=0.19
reproject
importlib_resources

[options.packages.find]
where = src

[options.package_data]
emirdrp.simulation = *.dat
emirdrp.instrument.configs =
bars_nominal_positions_test.txt
component-*.json
instrument-*.json
lines_argon_neon_xenon_empirical.dat
lines_argon_neon_xenon_empirical_LR.dat
Oliva_etal_2013.dat
setup-*.json
emirdrp = drp.yaml

[options.extras_require]
test =
pytest>=6
pytest-remotedata
docs =
sphinx==5.3
tool =
PyQt5

[options.entry_points]
numina.pipeline.1 =
EMIR = emirdrp.loader:load_drp
console_scripts =
pyemir-apply_rectification_only = emirdrp.tools.apply_rectification_only:main
pyemir-apply_rectwv_coeff = emirdrp.processing.wavecal.apply_rectwv_coeff:main
pyemir-continuum_flatfield = emirdrp.tools.continuum_flatfield:main
pyemir-convert_refined_multislit_param = emirdrp.tools.convert_refined_multislit_bound_param:main
pyemir-display_slitlet_arrangement = emirdrp.tools.display_slitlet_arrangement:main
pyemir-fit_boundaries = emirdrp.tools.fit_boundaries:main
pyemir-generate_yaml_for_abba = emirdrp.tools.generate_yaml_for_abba:main
pyemir-generate_yaml_for_dithered_image = emirdrp.tools.generate_yaml_for_dithered_image:main
pyemir-median_slitlets_rectified = emirdrp.processing.wavecal.median_slitlets_rectified:main
pyemir-merge_bounddict_files = emirdrp.tools.merge_bounddict_files:main
pyemir-merge2images = emirdrp.tools.merge2images:main
pyemir-rectwv_coeff_add_longslit_model = emirdrp.processing.wavecal.rectwv_coeff_add_longslit_model:main
pyemir-rect_wpoly_for_mos = emirdrp.tools.rect_wpoly_for_mos:main
pyemir-rectwv_coeff_from_arc_image = emirdrp.processing.wavecal.rectwv_coeff_from_arc_image:main
pyemir-rectwv_coeff_from_mos_library = emirdrp.processing.wavecal.rectwv_coeff_from_mos_library:main
pyemir-rectwv_coeff_to_ds9 = emirdrp.processing.wavecal.rectwv_coeff_to_ds9:main
pyemir-select_unrectified_slitlets = emirdrp.tools.select_unrectified_slitlets:main
pyemir-slitlet_boundaries_from_continuum = emirdrp.tools.slitlet_boundaries_from_continuum:main
pyemir-overplot_boundary_model = emirdrp.processing.wavecal.overplot_boundary_model:main
pyemir-overplot_bounddict = emirdrp.tools.overplot_bounddict:main

[bdist_wheel]
universal = 1

0 comments on commit 8140363

Please sign in to comment.