Skip to content
This repository was archived by the owner on Mar 31, 2022. It is now read-only.

Commit 6a8bc96

Browse files
author
Pavel Sobolev
authored
(#3) Добавление наброска документации:
* Добавлен набросок документации; * Переименованы директории; * Убрана из lib функция read_input (alias остался).
1 parent 0f6bc57 commit 6a8bc96

35 files changed

+602
-202
lines changed

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,12 @@ tmp
77
*__pycache__
88

99
# Архивы для публикации
10-
dist
10+
dist
11+
12+
# Файлы Visual Studio Code
13+
.vscode
14+
15+
# Директории сборки документации
16+
*_build
17+
*_static
18+
*_templates

.rtd-environment.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: scats
2+
3+
dependencies:
4+
- python=3.7
5+
- numpy
6+
- pybind11

Makefile

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,14 @@
4444

4545
## Правило для установки версии с TestPyPI
4646
install-testpypi :
47-
python3 -m pip install setuptools
48-
python3 -m pip install wheel
49-
python3 -m pip install pybind11
50-
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps scats
47+
python3 -m pip install -r requirements
48+
python3 -m pip install pybind11
49+
python3 -m pip install --no-cache-dir --index-url https://test.pypi.org/simple/ --no-deps scats
5150

5251
## Правило для установки версии с PyPI
5352
install-pypi :
54-
python3 -m pip install setuptools
55-
python3 -m pip install wheel
56-
python3 -m pip install scats
53+
python3 -m pip install -r requirements
54+
python3 -m pip install --no-cache-dir scats
5755

5856
## Правило для установки версии для разработчика
5957
develop :
@@ -77,12 +75,12 @@
7775

7876
## Правило для запуска скрипта examples/example.py
7977
example :
80-
cd Примеры && python3 main.py && cd ../
78+
cd examples && python3 main.py && cd ../
8179

8280
## Правило для удаления локальной сборки
8381
clean :
84-
rm -rf build Модуль/scats/scats.egg-info Модуль/scats/*.so \
85-
Модуль/scats/__pycache__ build tmp
82+
rm -rf build src/scats/scats.egg-info src/scats/*.so \
83+
src/scats/__pycache__ build tmp
8684

8785
## Правило для удаления модуля
8886
uninstall :
@@ -225,6 +223,6 @@
225223

226224
# Правило для создания архивов
227225
archive :
228-
find Библиотека/ -path '*/*' -type f -print | zip Архивы/Библиотека.zip -FS -q -@
229-
find Модуль/ -path '*/*' -type f -print | zip Архивы/Модуль.zip -FS -q -@
230-
find Примеры/ -path '*/.*' -prune -o -type f -print | zip Архивы/Примеры.zip -FS -q -@
226+
find lib/ -path '*/*' -type f -print | zip archives/lib.zip -FS -q -@
227+
find src/ -path '*/*' -type f -print | zip archives/src.zip -FS -q -@
228+
find examples/ -path '*/.*' -prune -o -type f -print | zip archives/examples.zip -FS -q -@

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[![](https://img.shields.io/badge/GitHub-Paveloom/C3.1-5DA399.svg)](https://github.com/Paveloom/C3.1) [![](https://img.shields.io/badge/license-Unlicense-5DA399.svg)](https://github.com/Paveloom/C3/blob/master/LICENSE.md) <br>
2-
[![](https://img.shields.io/badge/release-v0.2.2-informational.svg)](https://github.com/Paveloom/C3.1/releases/tag/v0.2.2) [![](https://img.shields.io/badge/platforms-linux,%20macOS-3E6680.svg)](#) [![](https://img.shields.io/badge/requires-python%203.7%2B-critical.svg)](https://www.python.org/downloads/) [![](https://img.shields.io/pypi/format/scats.svg)](https://pypi.org/project/scats/) [![](https://img.shields.io/pypi/status/scats.svg)](#)
2+
[![](https://img.shields.io/badge/release-v0.2.3-informational.svg)](https://github.com/Paveloom/C3.1/releases/tag/v0.2.3) [![](https://img.shields.io/badge/platforms-linux,%20macOS-3E6680.svg)](#) [![](https://img.shields.io/badge/requires-python%203.7%2B-critical.svg)](https://www.python.org/downloads/) [![](https://img.shields.io/pypi/format/scats.svg)](https://pypi.org/project/scats/) [![](https://img.shields.io/pypi/status/scats.svg)](#)
3.45 KB
Binary file not shown.

archives/lib.zip

8.36 KB
Binary file not shown.

archives/src.zip

2.63 KB
Binary file not shown.

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

docs/api/external.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Внешний API
2+
===========
3+
4+
Эта страница описывает класс, позволяющий, как предполагается, полностью
5+
использовать функционал модуля. Экземпляры используемых внутри классов более подробно
6+
описаны в разделе :ref:`internal`.
7+
8+
.. autoclass:: scats.api
9+
:members:

docs/api/internal.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. _internal:
2+
3+
Внутренний API
4+
==============
5+
6+
Этот раздел описывает встроенные в :class:`scats.api` структуры данных,
7+
в каждой из которых описан соответствующий интерфейс взаимодействия.
8+
Вы можете создавать экземпляры этих классов при необходимости, не смотря
9+
на то, что концепт этого модуля подразумевает использование только внешнего API.
10+
Вы также можете напрямую получать и изменять значения аттрибутов этих классов.
11+
12+
.. toctree::
13+
:maxdepth: 1
14+
:caption: Содержимое
15+
16+
internal/input

0 commit comments

Comments
 (0)