asterias 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- asterias-0.0.1/.gitignore +21 -0
- asterias-0.0.1/.pre-commit-config.yaml +28 -0
- asterias-0.0.1/.python-version +1 -0
- asterias-0.0.1/LICENSE +21 -0
- asterias-0.0.1/PKG-INFO +10 -0
- asterias-0.0.1/README.md +0 -0
- asterias-0.0.1/docs/Makefile +20 -0
- asterias-0.0.1/docs/_static/starfish.png +0 -0
- asterias-0.0.1/docs/conf.py +79 -0
- asterias-0.0.1/docs/index.rst +16 -0
- asterias-0.0.1/docs/make.bat +35 -0
- asterias-0.0.1/pyproject.toml +43 -0
- asterias-0.0.1/src/asterias/__init__.py +2 -0
- asterias-0.0.1/src/asterias/py.typed +0 -0
- asterias-0.0.1/tox.ini +21 -0
- asterias-0.0.1/uv.lock +1572 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Python-generated files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[oc]
|
|
4
|
+
build/
|
|
5
|
+
dist/
|
|
6
|
+
wheels/
|
|
7
|
+
*.egg-info
|
|
8
|
+
|
|
9
|
+
# Virtual environments/testing
|
|
10
|
+
.venv
|
|
11
|
+
.tox
|
|
12
|
+
coverage.xml
|
|
13
|
+
.coverage
|
|
14
|
+
.pytest_cache
|
|
15
|
+
.ruff_cache
|
|
16
|
+
|
|
17
|
+
# Docs
|
|
18
|
+
docs/_build/
|
|
19
|
+
|
|
20
|
+
*.DS_Store
|
|
21
|
+
*slurm*
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
ci:
|
|
2
|
+
autoupdate_schedule: monthly
|
|
3
|
+
|
|
4
|
+
repos:
|
|
5
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
6
|
+
rev: "v0.9.9"
|
|
7
|
+
hooks:
|
|
8
|
+
- id: ruff
|
|
9
|
+
args: [--fix, --exit-non-zero-on-fix]
|
|
10
|
+
|
|
11
|
+
- repo: https://github.com/psf/black
|
|
12
|
+
rev: 25.1.0
|
|
13
|
+
hooks:
|
|
14
|
+
- id: black
|
|
15
|
+
language_version: python3.13
|
|
16
|
+
|
|
17
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
18
|
+
rev: "v5.0.0"
|
|
19
|
+
hooks:
|
|
20
|
+
- id: trailing-whitespace
|
|
21
|
+
- id: end-of-file-fixer
|
|
22
|
+
exclude_types: [json, binary]
|
|
23
|
+
|
|
24
|
+
- repo: https://github.com/codespell-project/codespell
|
|
25
|
+
rev: v2.4.1
|
|
26
|
+
hooks:
|
|
27
|
+
- id: codespell
|
|
28
|
+
args: ["--skip=scratch.ipynb,**/*.ipynb"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
asterias-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ben Cassese
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
asterias-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: asterias
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Project-URL: Source, https://github.com/ben-cassese/asterias
|
|
6
|
+
Author-email: Ben-Cassese <b.c.cassese@columbia.edu>
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Python: >=3.13
|
|
9
|
+
Requires-Dist: exotic-ld>=3.2.0
|
|
10
|
+
Requires-Dist: jax>=0.5.3
|
asterias-0.0.1/README.md
ADDED
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line, and also
|
|
5
|
+
# from the environment for the first two.
|
|
6
|
+
SPHINXOPTS ?=
|
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
|
8
|
+
SOURCEDIR = .
|
|
9
|
+
BUILDDIR = _build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
Binary file
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Configuration file for the Sphinx documentation builder.
|
|
2
|
+
|
|
3
|
+
# For the full list of built-in configuration values, see the documentation:
|
|
4
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
5
|
+
|
|
6
|
+
# -- Project information -----------------------------------------------------
|
|
7
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
8
|
+
|
|
9
|
+
import os
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
sys.path.insert(0, os.path.abspath("."))
|
|
13
|
+
sys.path.insert(0, os.path.abspath("../src"))
|
|
14
|
+
|
|
15
|
+
project = "asterias"
|
|
16
|
+
# copyright = '2025, Ben Cassese, Soichiro Hattori'
|
|
17
|
+
author = "Ben Cassese, Soichiro Hattori"
|
|
18
|
+
release = "0.0.1"
|
|
19
|
+
|
|
20
|
+
# -- General configuration ---------------------------------------------------
|
|
21
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
22
|
+
|
|
23
|
+
extensions = [
|
|
24
|
+
# "sphinx_rtd_theme",
|
|
25
|
+
"sphinx.ext.napoleon",
|
|
26
|
+
"sphinx.ext.autodoc",
|
|
27
|
+
"sphinx_autodoc_typehints",
|
|
28
|
+
"sphinx.ext.doctest",
|
|
29
|
+
"sphinx.ext.todo",
|
|
30
|
+
"sphinx.ext.mathjax",
|
|
31
|
+
"sphinx.ext.viewcode",
|
|
32
|
+
"nbsphinx",
|
|
33
|
+
"sphinx_automodapi.automodapi",
|
|
34
|
+
"myst_parser",
|
|
35
|
+
"sphinxcontrib.video",
|
|
36
|
+
# "sphinx.ext.pngmath",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
templates_path = ["_templates"]
|
|
40
|
+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "visualizations"]
|
|
41
|
+
source_suffix = [".rst", ".md"]
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# -- Options for HTML output -------------------------------------------------
|
|
45
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
46
|
+
|
|
47
|
+
html_theme = "sphinx_book_theme"
|
|
48
|
+
html_copy_source = True
|
|
49
|
+
html_show_sourcelink = True
|
|
50
|
+
html_sourcelink_suffix = ""
|
|
51
|
+
html_title = "asterias"
|
|
52
|
+
html_favicon = "_static/starfish.png"
|
|
53
|
+
html_static_path = ["_static"]
|
|
54
|
+
|
|
55
|
+
html_theme_options = {
|
|
56
|
+
"path_to_docs": "docs",
|
|
57
|
+
"repository_url": "https://github.com/ben-cassese/asterias",
|
|
58
|
+
"repository_branch": "main",
|
|
59
|
+
"use_repository_button": True,
|
|
60
|
+
"use_download_button": False,
|
|
61
|
+
"show_prev_next": False,
|
|
62
|
+
"logo": {
|
|
63
|
+
"text": "",
|
|
64
|
+
"image_light": "_static/starfish.png",
|
|
65
|
+
"image_dark": "_static/starfish.png",
|
|
66
|
+
},
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
html_context = {"default_mode": "dark"}
|
|
70
|
+
|
|
71
|
+
html_sidebars = {
|
|
72
|
+
"**": ["navbar-logo.html", "search-field.html", "sbt-sidebar-nav.html"]
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
autodoc_typehints = "description"
|
|
76
|
+
python_use_unqualified_type_names = True
|
|
77
|
+
autodoc_typehints_format = "fully-qualified"
|
|
78
|
+
napoleon_use_param = True
|
|
79
|
+
napoleon_use_rtype = True
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.. asterias documentation master file, created by
|
|
2
|
+
sphinx-quickstart on Thu Apr 3 00:40:04 2025.
|
|
3
|
+
You can adapt this file completely to your liking, but it should at least
|
|
4
|
+
contain the root `toctree` directive.
|
|
5
|
+
|
|
6
|
+
asterias documentation
|
|
7
|
+
======================
|
|
8
|
+
|
|
9
|
+
Add your content using ``reStructuredText`` syntax. See the
|
|
10
|
+
`reStructuredText <https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html>`_
|
|
11
|
+
documentation for details.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
.. toctree::
|
|
15
|
+
:maxdepth: 2
|
|
16
|
+
:caption: Contents:
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=sphinx-build
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=.
|
|
11
|
+
set BUILDDIR=_build
|
|
12
|
+
|
|
13
|
+
%SPHINXBUILD% >NUL 2>NUL
|
|
14
|
+
if errorlevel 9009 (
|
|
15
|
+
echo.
|
|
16
|
+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
|
17
|
+
echo.installed, then set the SPHINXBUILD environment variable to point
|
|
18
|
+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
|
19
|
+
echo.may add the Sphinx directory to PATH.
|
|
20
|
+
echo.
|
|
21
|
+
echo.If you don't have Sphinx installed, grab it from
|
|
22
|
+
echo.https://www.sphinx-doc.org/
|
|
23
|
+
exit /b 1
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if "%1" == "" goto help
|
|
27
|
+
|
|
28
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
29
|
+
goto end
|
|
30
|
+
|
|
31
|
+
:help
|
|
32
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
33
|
+
|
|
34
|
+
:end
|
|
35
|
+
popd
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "asterias"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "Ben-Cassese", email = "b.c.cassese@columbia.edu" }
|
|
8
|
+
|
|
9
|
+
]
|
|
10
|
+
requires-python = ">=3.13"
|
|
11
|
+
dependencies = [
|
|
12
|
+
"exotic-ld>=3.2.0",
|
|
13
|
+
"jax>=0.5.3",
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
[project.urls]
|
|
17
|
+
# "Homepage" = ""
|
|
18
|
+
"Source" = "https://github.com/ben-cassese/asterias"
|
|
19
|
+
|
|
20
|
+
[build-system]
|
|
21
|
+
requires = ["hatchling"]
|
|
22
|
+
build-backend = "hatchling.build"
|
|
23
|
+
|
|
24
|
+
[dependency-groups]
|
|
25
|
+
dev = [
|
|
26
|
+
"black[jupyter]>=25.1.0",
|
|
27
|
+
"codespell>=2.4.1",
|
|
28
|
+
"myst-parser>=4.0.1",
|
|
29
|
+
"nbsphinx>=0.9.6",
|
|
30
|
+
"pre-commit>=4.2.0",
|
|
31
|
+
"pytest>=8.3.5",
|
|
32
|
+
"pytest-cov>=6.1.0",
|
|
33
|
+
"pytest-xdist>=3.6.1",
|
|
34
|
+
"ruff>=0.11.2",
|
|
35
|
+
"sphinx>=8.2.3",
|
|
36
|
+
"sphinx-autodoc-typehints>=3.1.0",
|
|
37
|
+
"sphinx-automodapi>=0.18.0",
|
|
38
|
+
"sphinx-book-theme>=1.1.4",
|
|
39
|
+
"sphinxcontrib-video>=0.4.1",
|
|
40
|
+
"tox>=4.25.0",
|
|
41
|
+
"tox-gh-actions>=3.3.0",
|
|
42
|
+
"tox-uv>=1.25.0",
|
|
43
|
+
]
|
|
File without changes
|
asterias-0.0.1/tox.ini
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[tox]
|
|
2
|
+
envlist = py39,py310,py311,py312,py313
|
|
3
|
+
skipsdist = true
|
|
4
|
+
|
|
5
|
+
[testenv]
|
|
6
|
+
allowlist_externals = uv
|
|
7
|
+
commands =
|
|
8
|
+
uv sync --python {envpython} --group dev
|
|
9
|
+
uv pip freeze
|
|
10
|
+
uv run python -m pytest tests --cov --cov-config=pyproject.toml --cov-report=xml
|
|
11
|
+
|
|
12
|
+
[gh-actions]
|
|
13
|
+
python =
|
|
14
|
+
3.9: py39
|
|
15
|
+
3.10: py310
|
|
16
|
+
3.11: py311
|
|
17
|
+
3.12: py312
|
|
18
|
+
3.13: py313
|
|
19
|
+
|
|
20
|
+
[coverage:run]
|
|
21
|
+
branch = True
|