Skip to content

Commit

Permalink
Get pixi run docs working
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaeron committed Oct 16, 2024
1 parent e0cdee0 commit d8df23e
Show file tree
Hide file tree
Showing 24 changed files with 865 additions and 159 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2024 Mathieu Daëron

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
112 changes: 56 additions & 56 deletions code_examples/virtual_data/output.txt

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified docs/D47_plot_Session_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/D47_plot_Session_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/D47_plot_Session_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/D47_plot_Session_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/D47_plot_Session_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/D47_plot_Session_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/D47_plot_Session_07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/D47_plot_Session_08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/D47_plot_Session_09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/D47_plot_Session_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
830 changes: 757 additions & 73 deletions docs/index.html

Large diffs are not rendered by default.

Binary file modified docs/residuals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/time_distribution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions license.md

This file was deleted.

36 changes: 24 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "D47crunch"
authors = [{name = "Mathieu Daëron", email = "[email protected]"}]
readme = "readme.md"
dynamic = ["version", "description"]
license = {text = "BSD-3-Clause"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]
requires-python = ">=3.8"
readme = "readme.md"
license = {file = "LICENSE"}
classifiers = ["License :: OSI Approved :: MIT License"]
requires-python = ">= 3.8"
dependencies = [
"numpy >=1.21",
"scipy >=1.7.0",
Expand All @@ -23,6 +15,26 @@ dependencies = [
"rich",
]

[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["osx-arm64"]

[tool.pixi.pypi-dependencies]
D47crunch = { path = ".", editable = true }

[tool.pixi.system-requirements]
macos = "12.7.5"

[tool.pixi.dependencies]
pdoc = ">=14.4.0,<15"

[tool.pixi.tasks]
docs = {cmd = 'python build_doc.py'}

[project.urls]
Home = "https://github.com/mdaeron/D47crunch"
Documentation = "https://mdaeron.github.io/D47crunch"
Expand Down
10 changes: 5 additions & 5 deletions D47crunch/__init__.py → src/D47crunch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
The **tutorial** section takes you through a series of simple steps to import/process data and print out the results.
The **how-to** section provides instructions applicable to various specific tasks.
.. include:: ../docs/tutorial.md
.. include:: ../docs/howto.md
.. include:: ../docs/cli.md
.. include:: ../../docpages/tutorial.md
.. include:: ../../docpages/howto.md
.. include:: ../../docpages/cli.md
# 4. API Documentation
'''
Expand Down Expand Up @@ -472,13 +472,13 @@ def virtual_data(
anchors and unknowns for a bunch of sessions:
```py
.. include:: ../code_examples/virtual_data/example.py
.. include:: ../../code_examples/virtual_data/example.py
```
This should output something like:
```
.. include:: ../code_examples/virtual_data/output.txt
.. include:: ../../code_examples/virtual_data/output.txt
```
'''

Expand Down

0 comments on commit d8df23e

Please sign in to comment.