galactic 0.4.0.0.post1.dev132__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.
- galactic-0.4.0.0.post1.dev132/.gitignore +8 -0
- galactic-0.4.0.0.post1.dev132/LICENSE +29 -0
- galactic-0.4.0.0.post1.dev132/PKG-INFO +174 -0
- galactic-0.4.0.0.post1.dev132/README.rst +141 -0
- galactic-0.4.0.0.post1.dev132/docs/_templates/autosummary/module.rst +12 -0
- galactic-0.4.0.0.post1.dev132/docs/_templates/components/prev-next.html +27 -0
- galactic-0.4.0.0.post1.dev132/docs/api/apps/cli/main/index.rst +8 -0
- galactic-0.4.0.0.post1.dev132/docs/api/apps/cli/main/modules/galactic.apps.cli.main.rst +13 -0
- galactic-0.4.0.0.post1.dev132/docs/conf.py +142 -0
- galactic-0.4.0.0.post1.dev132/docs/icon-dark.svg +203 -0
- galactic-0.4.0.0.post1.dev132/docs/icon.svg +220 -0
- galactic-0.4.0.0.post1.dev132/docs/index.rst +75 -0
- galactic-0.4.0.0.post1.dev132/docs/install/index.rst +1 -0
- galactic-0.4.0.0.post1.dev132/docs/release-notes.md +4 -0
- galactic-0.4.0.0.post1.dev132/docs/release-notes.txt +0 -0
- galactic-0.4.0.0.post1.dev132/docs/thegalactic.ico +0 -0
- galactic-0.4.0.0.post1.dev132/docs/thegalactic.svg +125 -0
- galactic-0.4.0.0.post1.dev132/docs/usage.rst +6 -0
- galactic-0.4.0.0.post1.dev132/hatch/.git +1 -0
- galactic-0.4.0.0.post1.dev132/hatch/.gitignore +4 -0
- galactic-0.4.0.0.post1.dev132/hatch/README.md +12 -0
- galactic-0.4.0.0.post1.dev132/hatch/build.py +92 -0
- galactic-0.4.0.0.post1.dev132/hatch/icon.svg +240 -0
- galactic-0.4.0.0.post1.dev132/package.store/.git +1 -0
- galactic-0.4.0.0.post1.dev132/package.store/.gitignore +4 -0
- galactic-0.4.0.0.post1.dev132/package.store/README.md +14 -0
- galactic-0.4.0.0.post1.dev132/package.store/hatch_build.py +151 -0
- galactic-0.4.0.0.post1.dev132/package.store/icon.svg +247 -0
- galactic-0.4.0.0.post1.dev132/package.store/pyproject.toml +30 -0
- galactic-0.4.0.0.post1.dev132/pyproject.toml +419 -0
- galactic-0.4.0.0.post1.dev132/src/galactic/apps/cli/main/__init__.py +27 -0
- galactic-0.4.0.0.post1.dev132/src/galactic/apps/cli/main/__init__.pyi +22 -0
- galactic-0.4.0.0.post1.dev132/src/galactic/apps/cli/main/_app.py +335 -0
- galactic-0.4.0.0.post1.dev132/src/galactic/apps/cli/main/_pip_config.py +516 -0
- galactic-0.4.0.0.post1.dev132/src/galactic/apps/cli/main/py.typed +0 -0
- galactic-0.4.0.0.post1.dev132/store.md +1 -0
- galactic-0.4.0.0.post1.dev132/tests/dummy/src/galactic/apps/cli/dummy/__init__.py +23 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018-2026, The Galactic Organization
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
* Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: galactic
|
|
3
|
+
Version: 0.4.0.0.post1.dev132
|
|
4
|
+
Summary: GALACTIC main application
|
|
5
|
+
Project-URL: Homepage, https://www.thegalactic.org/
|
|
6
|
+
Project-URL: Documentation, https://www.thegalactic.org/docs/apps/cli/main/
|
|
7
|
+
Project-URL: Repository, https://gitlab.univ-lr.fr/galactic/public/src/apps/cli/galactic-app-cli-main
|
|
8
|
+
Project-URL: Issues, https://gitlab.univ-lr.fr/galactic/public/src/apps/cli/galactic-app-cli-main/-/issues
|
|
9
|
+
Project-URL: Icon, https://www.thegalactic.org/docs/apps/cli/main/latest/_static/icon.svg
|
|
10
|
+
Project-URL: Icon-dark, https://www.thegalactic.org/docs/apps/cli/main/latest/_static/icon-dark.svg
|
|
11
|
+
Project-URL: Index-public, https://www.thegalactic.org/pypi/public/simple/
|
|
12
|
+
Author-email: The Galactic Organization <contact@thegalactic.org>
|
|
13
|
+
Maintainer-email: The Galactic Organization <contact@thegalactic.org>
|
|
14
|
+
License-Expression: BSD-3-Clause
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Keywords: application,formal concept analysis
|
|
17
|
+
Classifier: Development Status :: 4 - Beta
|
|
18
|
+
Classifier: Environment :: Console
|
|
19
|
+
Classifier: Intended Audience :: Developers
|
|
20
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
21
|
+
Classifier: Natural Language :: English
|
|
22
|
+
Classifier: Operating System :: OS Independent
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Requires-Python: <3.15,>=3.11
|
|
28
|
+
Requires-Dist: click~=8.3
|
|
29
|
+
Requires-Dist: galactic-helper-core>=0.4.0.0.post1.dev
|
|
30
|
+
Requires-Dist: platformdirs~=4.9
|
|
31
|
+
Requires-Dist: rich-click~=1.9
|
|
32
|
+
Description-Content-Type: text/x-rst
|
|
33
|
+
|
|
34
|
+
Instructions
|
|
35
|
+
============
|
|
36
|
+
|
|
37
|
+
|hatch|
|
|
38
|
+
|pre-commit|
|
|
39
|
+
|ruff|
|
|
40
|
+
|black|
|
|
41
|
+
|doc8|
|
|
42
|
+
|mypy|
|
|
43
|
+
|pylint|
|
|
44
|
+
|slotscheck|
|
|
45
|
+
|
|
46
|
+
.. |hatch| image:: https://img.shields.io/badge/%F0%9F%A5%9A-hatch-4051b5.svg
|
|
47
|
+
:target: https://pypi.org/project/hatch/
|
|
48
|
+
.. |pre-commit| image:: https://img.shields.io/badge/-pre--commit-brightgreen?logo=pre-commit&labelColor=gray
|
|
49
|
+
:target: https://pypi.org/project/pre-commit/
|
|
50
|
+
.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
|
|
51
|
+
:target: https://pypi.org/project/ruff/
|
|
52
|
+
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
53
|
+
:target: https://pypi.org/project/black/
|
|
54
|
+
.. |doc8| image:: https://img.shields.io/badge/static--checked-doc8-green
|
|
55
|
+
:target: https://pypi.org/project/doc8/
|
|
56
|
+
.. |mypy| image:: https://img.shields.io/badge/static--checked-mypy-blue
|
|
57
|
+
:target: https://pypi.org/project/mypy/
|
|
58
|
+
.. |pylint| image:: https://img.shields.io/badge/dynamic--checked-pylint-orange
|
|
59
|
+
:target: https://pypi.org/project/pylint/
|
|
60
|
+
.. |slotscheck| image:: https://img.shields.io/badge/dynamic--checked-slotscheck-orange
|
|
61
|
+
:target: https://pypi.org/project/slotscheck/
|
|
62
|
+
|
|
63
|
+
Prerequisite
|
|
64
|
+
------------
|
|
65
|
+
|
|
66
|
+
*galactic* requires `python 3.11`_,
|
|
67
|
+
a programming language that comes pre-installed on linux and Mac OS X,
|
|
68
|
+
and which is easily installed `on Windows`_;
|
|
69
|
+
|
|
70
|
+
Installation
|
|
71
|
+
------------
|
|
72
|
+
|
|
73
|
+
Install *galactic* in a virtual (``conda`` or ``venv``)
|
|
74
|
+
environment using the bash commands:
|
|
75
|
+
|
|
76
|
+
.. code-block:: shell-session
|
|
77
|
+
|
|
78
|
+
(galactic) $ pip install galactic
|
|
79
|
+
|
|
80
|
+
Don't forget to add the ``--pre`` flag if you want the latest unstable build.
|
|
81
|
+
|
|
82
|
+
After installation, you can configure authenticated access to the
|
|
83
|
+
**GALACTIC** package index with:
|
|
84
|
+
|
|
85
|
+
.. code-block:: shell-session
|
|
86
|
+
|
|
87
|
+
(galactic) $ galactic config
|
|
88
|
+
|
|
89
|
+
This command prompts for your GALACTIC password and stores it in your
|
|
90
|
+
``pip.conf`` or ``pip.ini`` file.
|
|
91
|
+
|
|
92
|
+
Contributing
|
|
93
|
+
------------
|
|
94
|
+
|
|
95
|
+
Build
|
|
96
|
+
~~~~~
|
|
97
|
+
|
|
98
|
+
Building *galactic* requires
|
|
99
|
+
|
|
100
|
+
* `hatch`_, which is a tool for dependency management and packaging in Python;
|
|
101
|
+
|
|
102
|
+
Build *galactic* using the bash command
|
|
103
|
+
|
|
104
|
+
.. code-block:: shell-session
|
|
105
|
+
|
|
106
|
+
$ hatch build
|
|
107
|
+
|
|
108
|
+
Testing
|
|
109
|
+
~~~~~~~
|
|
110
|
+
|
|
111
|
+
Test *galactic* using the bash command:
|
|
112
|
+
|
|
113
|
+
.. code-block:: shell-session
|
|
114
|
+
|
|
115
|
+
$ hatch test
|
|
116
|
+
|
|
117
|
+
for running the tests.
|
|
118
|
+
|
|
119
|
+
.. code-block:: shell-session
|
|
120
|
+
|
|
121
|
+
$ hatch test --cover
|
|
122
|
+
|
|
123
|
+
for running the tests with the coverage.
|
|
124
|
+
|
|
125
|
+
.. code-block:: shell-session
|
|
126
|
+
|
|
127
|
+
$ hatch test --doctest-modules src
|
|
128
|
+
|
|
129
|
+
for running the `doctest`.
|
|
130
|
+
|
|
131
|
+
Linting
|
|
132
|
+
~~~~~~~
|
|
133
|
+
|
|
134
|
+
Lint *galactic* using the bash commands:
|
|
135
|
+
|
|
136
|
+
.. code-block:: shell-session
|
|
137
|
+
|
|
138
|
+
$ hatch fmt --check
|
|
139
|
+
|
|
140
|
+
for running static linting.
|
|
141
|
+
|
|
142
|
+
.. code-block:: shell-session
|
|
143
|
+
|
|
144
|
+
$ hatch fmt
|
|
145
|
+
|
|
146
|
+
for automatic fixing of static linting issues.
|
|
147
|
+
|
|
148
|
+
.. code-block:: shell-session
|
|
149
|
+
|
|
150
|
+
$ hatch run lint:check
|
|
151
|
+
|
|
152
|
+
for running dynamic linting.
|
|
153
|
+
|
|
154
|
+
Documentation
|
|
155
|
+
~~~~~~~~~~~~~
|
|
156
|
+
|
|
157
|
+
Build the documentation using the bash commands:
|
|
158
|
+
|
|
159
|
+
.. code-block:: shell-session
|
|
160
|
+
|
|
161
|
+
$ hatch run docs:build
|
|
162
|
+
|
|
163
|
+
Getting Help
|
|
164
|
+
~~~~~~~~~~~~
|
|
165
|
+
|
|
166
|
+
.. important::
|
|
167
|
+
|
|
168
|
+
If you have any difficulties with *galactic*, please feel welcome to
|
|
169
|
+
`file an issue`_ on GitLab so that we can help.
|
|
170
|
+
|
|
171
|
+
.. _file an issue: https://gitlab.univ-lr.fr/galactic/public/src/apps/cli/galactic-app-cli-main/-/issues
|
|
172
|
+
.. _python 3.11: http://www.python.org
|
|
173
|
+
.. _on Windows: https://www.python.org/downloads/windows
|
|
174
|
+
.. _hatch: https://hatch.pypa.io/
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
Instructions
|
|
2
|
+
============
|
|
3
|
+
|
|
4
|
+
|hatch|
|
|
5
|
+
|pre-commit|
|
|
6
|
+
|ruff|
|
|
7
|
+
|black|
|
|
8
|
+
|doc8|
|
|
9
|
+
|mypy|
|
|
10
|
+
|pylint|
|
|
11
|
+
|slotscheck|
|
|
12
|
+
|
|
13
|
+
.. |hatch| image:: https://img.shields.io/badge/%F0%9F%A5%9A-hatch-4051b5.svg
|
|
14
|
+
:target: https://pypi.org/project/hatch/
|
|
15
|
+
.. |pre-commit| image:: https://img.shields.io/badge/-pre--commit-brightgreen?logo=pre-commit&labelColor=gray
|
|
16
|
+
:target: https://pypi.org/project/pre-commit/
|
|
17
|
+
.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
|
|
18
|
+
:target: https://pypi.org/project/ruff/
|
|
19
|
+
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
20
|
+
:target: https://pypi.org/project/black/
|
|
21
|
+
.. |doc8| image:: https://img.shields.io/badge/static--checked-doc8-green
|
|
22
|
+
:target: https://pypi.org/project/doc8/
|
|
23
|
+
.. |mypy| image:: https://img.shields.io/badge/static--checked-mypy-blue
|
|
24
|
+
:target: https://pypi.org/project/mypy/
|
|
25
|
+
.. |pylint| image:: https://img.shields.io/badge/dynamic--checked-pylint-orange
|
|
26
|
+
:target: https://pypi.org/project/pylint/
|
|
27
|
+
.. |slotscheck| image:: https://img.shields.io/badge/dynamic--checked-slotscheck-orange
|
|
28
|
+
:target: https://pypi.org/project/slotscheck/
|
|
29
|
+
|
|
30
|
+
Prerequisite
|
|
31
|
+
------------
|
|
32
|
+
|
|
33
|
+
*galactic* requires `python 3.11`_,
|
|
34
|
+
a programming language that comes pre-installed on linux and Mac OS X,
|
|
35
|
+
and which is easily installed `on Windows`_;
|
|
36
|
+
|
|
37
|
+
Installation
|
|
38
|
+
------------
|
|
39
|
+
|
|
40
|
+
Install *galactic* in a virtual (``conda`` or ``venv``)
|
|
41
|
+
environment using the bash commands:
|
|
42
|
+
|
|
43
|
+
.. code-block:: shell-session
|
|
44
|
+
|
|
45
|
+
(galactic) $ pip install galactic
|
|
46
|
+
|
|
47
|
+
Don't forget to add the ``--pre`` flag if you want the latest unstable build.
|
|
48
|
+
|
|
49
|
+
After installation, you can configure authenticated access to the
|
|
50
|
+
**GALACTIC** package index with:
|
|
51
|
+
|
|
52
|
+
.. code-block:: shell-session
|
|
53
|
+
|
|
54
|
+
(galactic) $ galactic config
|
|
55
|
+
|
|
56
|
+
This command prompts for your GALACTIC password and stores it in your
|
|
57
|
+
``pip.conf`` or ``pip.ini`` file.
|
|
58
|
+
|
|
59
|
+
Contributing
|
|
60
|
+
------------
|
|
61
|
+
|
|
62
|
+
Build
|
|
63
|
+
~~~~~
|
|
64
|
+
|
|
65
|
+
Building *galactic* requires
|
|
66
|
+
|
|
67
|
+
* `hatch`_, which is a tool for dependency management and packaging in Python;
|
|
68
|
+
|
|
69
|
+
Build *galactic* using the bash command
|
|
70
|
+
|
|
71
|
+
.. code-block:: shell-session
|
|
72
|
+
|
|
73
|
+
$ hatch build
|
|
74
|
+
|
|
75
|
+
Testing
|
|
76
|
+
~~~~~~~
|
|
77
|
+
|
|
78
|
+
Test *galactic* using the bash command:
|
|
79
|
+
|
|
80
|
+
.. code-block:: shell-session
|
|
81
|
+
|
|
82
|
+
$ hatch test
|
|
83
|
+
|
|
84
|
+
for running the tests.
|
|
85
|
+
|
|
86
|
+
.. code-block:: shell-session
|
|
87
|
+
|
|
88
|
+
$ hatch test --cover
|
|
89
|
+
|
|
90
|
+
for running the tests with the coverage.
|
|
91
|
+
|
|
92
|
+
.. code-block:: shell-session
|
|
93
|
+
|
|
94
|
+
$ hatch test --doctest-modules src
|
|
95
|
+
|
|
96
|
+
for running the `doctest`.
|
|
97
|
+
|
|
98
|
+
Linting
|
|
99
|
+
~~~~~~~
|
|
100
|
+
|
|
101
|
+
Lint *galactic* using the bash commands:
|
|
102
|
+
|
|
103
|
+
.. code-block:: shell-session
|
|
104
|
+
|
|
105
|
+
$ hatch fmt --check
|
|
106
|
+
|
|
107
|
+
for running static linting.
|
|
108
|
+
|
|
109
|
+
.. code-block:: shell-session
|
|
110
|
+
|
|
111
|
+
$ hatch fmt
|
|
112
|
+
|
|
113
|
+
for automatic fixing of static linting issues.
|
|
114
|
+
|
|
115
|
+
.. code-block:: shell-session
|
|
116
|
+
|
|
117
|
+
$ hatch run lint:check
|
|
118
|
+
|
|
119
|
+
for running dynamic linting.
|
|
120
|
+
|
|
121
|
+
Documentation
|
|
122
|
+
~~~~~~~~~~~~~
|
|
123
|
+
|
|
124
|
+
Build the documentation using the bash commands:
|
|
125
|
+
|
|
126
|
+
.. code-block:: shell-session
|
|
127
|
+
|
|
128
|
+
$ hatch run docs:build
|
|
129
|
+
|
|
130
|
+
Getting Help
|
|
131
|
+
~~~~~~~~~~~~
|
|
132
|
+
|
|
133
|
+
.. important::
|
|
134
|
+
|
|
135
|
+
If you have any difficulties with *galactic*, please feel welcome to
|
|
136
|
+
`file an issue`_ on GitLab so that we can help.
|
|
137
|
+
|
|
138
|
+
.. _file an issue: https://gitlab.univ-lr.fr/galactic/public/src/apps/cli/galactic-app-cli-main/-/issues
|
|
139
|
+
.. _python 3.11: http://www.python.org
|
|
140
|
+
.. _on Windows: https://www.python.org/downloads/windows
|
|
141
|
+
.. _hatch: https://hatch.pypa.io/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{# Displays links to the previous and next page in the TOCtree order. #}
|
|
2
|
+
<div class="prev-next-area">
|
|
3
|
+
{%- if prev %}
|
|
4
|
+
<a class="left-prev"
|
|
5
|
+
href="{{ prev.link|e }}"
|
|
6
|
+
title="{{ _('previous page') }}">
|
|
7
|
+
<i class="fa-solid fa-angle-left"></i>
|
|
8
|
+
<div class="prev-next-info">
|
|
9
|
+
<p class="prev-next-subtitle">{{ _("previous") }}</p>
|
|
10
|
+
{% set temp_title = prev_title or prev.title %}
|
|
11
|
+
<p class="prev-next-title">{{ '…' ~ temp_title[-30:] if temp_title|length > 30 else temp_title }}</p>
|
|
12
|
+
</div>
|
|
13
|
+
</a>
|
|
14
|
+
{%- endif %}
|
|
15
|
+
{%- if next %}
|
|
16
|
+
<a class="right-next"
|
|
17
|
+
href="{{ next.link|e }}"
|
|
18
|
+
title="{{ _('next page') }}">
|
|
19
|
+
<div class="prev-next-info">
|
|
20
|
+
<p class="prev-next-subtitle">{{ _("next") }}</p>
|
|
21
|
+
{% set temp_title = next_title or next.title %}
|
|
22
|
+
<p class="prev-next-title">{{ '…' ~ temp_title[-30:] if temp_title|length > 30 else temp_title }}</p>
|
|
23
|
+
</div>
|
|
24
|
+
<i class="fa-solid fa-angle-right"></i>
|
|
25
|
+
</a>
|
|
26
|
+
{%- endif %}
|
|
27
|
+
</div>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.. raw:: html
|
|
2
|
+
|
|
3
|
+
<style>
|
|
4
|
+
/* Hide only the first H1 on this page */
|
|
5
|
+
h1:first-of-type {display: none !important;}
|
|
6
|
+
</style>
|
|
7
|
+
|
|
8
|
+
galactic.apps.cli.main
|
|
9
|
+
======================
|
|
10
|
+
|
|
11
|
+
:mod:`galactic.apps.cli.main` module
|
|
12
|
+
|
|
13
|
+
.. automodule:: galactic.apps.cli.main
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"""The configuration module for sphinx."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import os
|
|
5
|
+
|
|
6
|
+
# Get metadata
|
|
7
|
+
metadata = json.load(os.popen("hatch project metadata"))
|
|
8
|
+
project = metadata["name"]
|
|
9
|
+
author = ",".join(author["name"] for author in metadata["authors"])
|
|
10
|
+
version = metadata["version"]
|
|
11
|
+
project_copyright = f"2018-%Y, {author}"
|
|
12
|
+
|
|
13
|
+
# -- General configuration ------------------------------------------------
|
|
14
|
+
|
|
15
|
+
extensions = [
|
|
16
|
+
"myst_parser",
|
|
17
|
+
"sphinx.ext.autodoc",
|
|
18
|
+
"sphinx.ext.autosummary",
|
|
19
|
+
"sphinx.ext.todo",
|
|
20
|
+
"sphinx.ext.coverage",
|
|
21
|
+
"sphinx.ext.mathjax",
|
|
22
|
+
"sphinx.ext.intersphinx",
|
|
23
|
+
"sphinx.ext.napoleon",
|
|
24
|
+
"sphinx_book_theme",
|
|
25
|
+
"nbsphinx",
|
|
26
|
+
"sphinxcontrib.plantuml",
|
|
27
|
+
"sphinx_autodoc_typehints",
|
|
28
|
+
"sphinx_codeautolink",
|
|
29
|
+
"sphinx_copybutton",
|
|
30
|
+
"sphinx_click",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
|
|
34
|
+
copybutton_prompt_is_regexp = True
|
|
35
|
+
copybutton_line_continuation_character = "\\"
|
|
36
|
+
|
|
37
|
+
add_module_names = False
|
|
38
|
+
|
|
39
|
+
# nbsphinx settings
|
|
40
|
+
nbsphinx_allow_errors = True
|
|
41
|
+
|
|
42
|
+
# Napoleon settings
|
|
43
|
+
napoleon_google_docstring = True
|
|
44
|
+
napoleon_numpy_docstring = True
|
|
45
|
+
napoleon_include_init_with_doc = True
|
|
46
|
+
napoleon_include_private_with_doc = False
|
|
47
|
+
napoleon_include_special_with_doc = True
|
|
48
|
+
napoleon_use_admonition_for_examples = True
|
|
49
|
+
napoleon_use_admonition_for_notes = True
|
|
50
|
+
napoleon_use_admonition_for_references = True
|
|
51
|
+
napoleon_use_ivar = False
|
|
52
|
+
napoleon_use_param = True
|
|
53
|
+
napoleon_use_rtype = True
|
|
54
|
+
|
|
55
|
+
# intersphinx setting
|
|
56
|
+
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
|
|
57
|
+
|
|
58
|
+
# autodoc and autosummary settings
|
|
59
|
+
autosummary_generate = True
|
|
60
|
+
autodoc_member_order = "bysource"
|
|
61
|
+
autodoc_default_options = {
|
|
62
|
+
"member-order": "bysource",
|
|
63
|
+
"members": True,
|
|
64
|
+
"show-inheritance": True,
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
typehints_defaults = "comma"
|
|
68
|
+
|
|
69
|
+
# Add any paths that contain templates here, relative to this directory.
|
|
70
|
+
templates_path = ["_templates"]
|
|
71
|
+
|
|
72
|
+
# The suffix(es) of source filenames.
|
|
73
|
+
source_suffix = {".rst": "restructuredtext", ".md": "markdown"}
|
|
74
|
+
|
|
75
|
+
# The master toctree document.
|
|
76
|
+
master_doc = "index"
|
|
77
|
+
|
|
78
|
+
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
79
|
+
# for a list of supported languages.
|
|
80
|
+
#
|
|
81
|
+
# This is also used if you do content translation via gettext catalogs.
|
|
82
|
+
# Usually you set "language" from the command line for these cases.
|
|
83
|
+
language = "en"
|
|
84
|
+
|
|
85
|
+
# List of patterns, relative to source directory, that match files and
|
|
86
|
+
# directories to ignore when looking for source files.
|
|
87
|
+
# This patterns also effect to html_static_path and html_extra_path
|
|
88
|
+
exclude_patterns = ["_build", "**.ipynb_checkpoints"]
|
|
89
|
+
|
|
90
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
|
91
|
+
pygments_style = "sphinx"
|
|
92
|
+
|
|
93
|
+
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
|
94
|
+
todo_include_todos = True
|
|
95
|
+
|
|
96
|
+
# -- Options for HTML output ----------------------------------------------
|
|
97
|
+
|
|
98
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
99
|
+
# a list of builtin themes.
|
|
100
|
+
#
|
|
101
|
+
html_theme = "sphinx_book_theme"
|
|
102
|
+
|
|
103
|
+
# Theme options are theme-specific and customize the look and feel of a theme
|
|
104
|
+
# further. For a list of options available for each theme, see the
|
|
105
|
+
# documentation.
|
|
106
|
+
html_theme_options = {
|
|
107
|
+
"max_navbar_depth": 1,
|
|
108
|
+
"logo": {
|
|
109
|
+
"image_dark": "icon-dark.svg",
|
|
110
|
+
"text": project[len("galactic-") :],
|
|
111
|
+
},
|
|
112
|
+
"use_download_button": False,
|
|
113
|
+
"use_fullscreen_button": False,
|
|
114
|
+
"switcher": {
|
|
115
|
+
"version_match": "latest",
|
|
116
|
+
"json_url": "/docs/apps/cli/main/versions.json",
|
|
117
|
+
},
|
|
118
|
+
"icon_links": [
|
|
119
|
+
{
|
|
120
|
+
"name": "GitLab",
|
|
121
|
+
"url": "https://gitlab.univ-lr.fr/galactic/public/src/apps/cli/galactic-app-cli-main/",
|
|
122
|
+
"icon": "fa-brands fa-gitlab",
|
|
123
|
+
"type": "fontawesome",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
# Custom sidebar templates, must be a dictionary that maps document names
|
|
129
|
+
# to template names.
|
|
130
|
+
html_sidebars = {
|
|
131
|
+
"**": [
|
|
132
|
+
"navbar-logo.html",
|
|
133
|
+
"version-switcher.html",
|
|
134
|
+
"icon-links.html",
|
|
135
|
+
"search-button-field.html",
|
|
136
|
+
"sbt-sidebar-nav.html",
|
|
137
|
+
],
|
|
138
|
+
}
|
|
139
|
+
html_show_sourcelink = False
|
|
140
|
+
html_favicon = "thegalactic.ico"
|
|
141
|
+
html_logo = "icon.svg"
|
|
142
|
+
html_title = ""
|