Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fred3m committed Sep 22, 2023
0 parents commit 2f9faa4
Show file tree
Hide file tree
Showing 12 changed files with 841 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
__pycache__/
*.py[cod]
build/
var/
dist/
*.egg-info
*.eggs
*.so
.ipynb_checkpoints/
tmp/
include/
_eupspkg/

.sconsign.dblite
config.log
.sconf_temp
*.o
*.os
*.cfgc
*.pyc
*_wrap.cc
*Lib.py

# Built by sconsUtils
python/lsst/rubintv/analysis/service/version.py
bin/

# Pytest
tests/.tests
pytest_session.txt
.cache/
.pytest_cache
.coverage

# IDEs
.idea
.vscode
1 change: 1 addition & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright 2023 Association of Universities for Research in Astronomy
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
RubinTV Analysis Service
------------------

A set of libraries and scripts for running the backend services for the rubin tv visual framework.

More to come!
4 changes: 4 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# -*- python -*-
from lsst.sconsUtils import scripts
# Python-only package
scripts.BasicSConstruct("rubintv_analysis_service", disableCc=True, noCfgFile=True)
82 changes: 82 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[build-system]
requires = [
"setuptools<65",
"lsst-versions >= 1.3.0",
"wheel",
]
build-backend = "setuptools.build_meta"

[project]
name = "rubintv_analysis_service"
description = "A set of libraries and scripts for running the backend services for the rubin tv visual framework."
version = "0.0.1"
license = {text = "GPLv3+ License"}
readme = "README.md"
authors = [
{name="Rubin Observatory Data Management", email="[email protected]"},
]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Astronomy",
]
keywords = ["lsst", "visualization"]
dependencies = [
"numpy>=1.25.2",
"scipy",
"matplotlib",
"pydantic",
"pyyaml"
]
#dynamic = ["version"]

[project.urls]
"Homepage" = "https://github.com/lsst/rubintv_analysis_service"

[project.optional-dependencies]
test = [
"pytest >= 3.2",
"flake8 >= 3.7.5",
"pytest-flake8 >= 1.0.4",
]

[tool.setuptools.packages.find]
where = ["python"]

[tool.setuptools]
zip-safe = false
license-files = ["LICENSE"]

[tool.setuptools.dynamic]
version = { attr = "lsst_versions.get_lsst_version" }

[tool.black]
line-length = 110
target-version = ["py311"]

[tool.isort]
profile = "black"
line_length = 110

[tool.lsst_versions]
write_to = "python/lsst/rubintv/analysis/service/version.py"

[tool.pytest.ini_options]
addopts = "--flake8"
flake8-ignore = ["W503", "E203"]
# The matplotlib test may not release font files.
open_files_ignore = ["*.ttf"]

[tool.pydocstyle]
convention = "numpy"
# Our coding style does not require docstrings for magic methods (D105)
# Our docstyle documents __init__ at the class level (D107)
# We allow methods to inherit docstrings and this is not compatible with D102.
# Docstring at the very first line is not required
# D200, D205 and D400 all complain if the first sentence of the docstring does
# not fit on one line.
add-ignore = ["D107", "D105", "D102", "D100", "D200", "D205", "D400"]
3 changes: 3 additions & 0 deletions python/lsst/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import pkgutil

__path__ = pkgutil.extend_path(__path__, __name__)
3 changes: 3 additions & 0 deletions python/lsst/rubintv/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import pkgutil

__path__ = pkgutil.extend_path(__path__, __name__)
3 changes: 3 additions & 0 deletions python/lsst/rubintv/analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import pkgutil

__path__ = pkgutil.extend_path(__path__, __name__)
12 changes: 12 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
max-line-length = 110
max-doc-length = 79
ignore = E133, E226, E228, N802, N803, N806, N812, N813, N815, N816, W504
exclude =
bin,
doc,
**/*/__init__.py,
**/*/version.py,
tests/.tests

[tool:pytest]
6 changes: 6 additions & 0 deletions tests/SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- python -*-
from lsst.sconsUtils import scripts
# Run ingestIndexReferenceCatalog singly, because it spawns its own
# multiprocess pool and we want to be careful that that does not interact
# with the pytest pool.
scripts.BasicSConscript.tests(pyList=[], pySingles=[])
10 changes: 10 additions & 0 deletions ups/rubintv_analysis_service.table
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# List EUPS dependencies of this package here.
# - Any package whose API is used directly should be listed explicitly.
# - Common third-party packages can be assumed to be recursively included by
# the "base" package.
setupRequired(lsst_distrib)

# The following is boilerplate for all packages.
# See https://dmtn-001.lsst.io for details on LSST_LIBRARY_PATH.
envPrepend(PYTHONPATH, ${PRODUCT_DIR}/python)
envPrepend(PATH, ${PRODUCT_DIR}/bin)

0 comments on commit 2f9faa4

Please sign in to comment.