forked from Advanced_Python/advanced-python-homework-2023
fix readme and pyproject
This commit is contained in:
parent
a03f5c41d9
commit
1fbb754bde
14
README.md
14
README.md
@ -1,4 +1,7 @@
|
|||||||
# advanced-python-homework-2023
|
# advanced-python-homework-2023
|
||||||
|
## Student:
|
||||||
|
[Ilia Tambovtsev](https://t.me/hyperpopa)
|
||||||
|
|
||||||
## Materials
|
## Materials
|
||||||
- [Homework](https://sciprogcentre.github.io/green-courses/advanced_python.html)
|
- [Homework](https://sciprogcentre.github.io/green-courses/advanced_python.html)
|
||||||
|
|
||||||
@ -12,10 +15,17 @@ pip install -r requirements.txt
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
|
#### Build
|
||||||
|
```
|
||||||
|
cd docs
|
||||||
|
make.bat
|
||||||
|
```
|
||||||
|
|
||||||
#### From scratch
|
#### From scratch
|
||||||
1. run sphinx initialization: `sphinx-quickstart docs`
|
1. run sphinx initialization: `sphinx-quickstart docs`
|
||||||
2. add project packages: `sphinx-apidoc -o docs/source .`
|
2. add project packages: `sphinx-apidoc -o docs/source .`
|
||||||
3. edit `conf.py`
|
3. edit `conf.py`
|
||||||
|
|
||||||
```py
|
```py
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
@ -29,6 +39,4 @@ extensions = [
|
|||||||
]
|
]
|
||||||
```
|
```
|
||||||
4. add `modules` after `Contents:` in `index.rst`
|
4. add `modules` after `Contents:` in `index.rst`
|
||||||
#### Build
|
5. run `make.bat`
|
||||||
1. build docs `sphinx-build -M html docs/source/ docs/build/`
|
|
||||||
1. docs are now in `docs/build/html`
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "spam"
|
name = "spam"
|
||||||
version = "2020.0.0"
|
version = "2023.0.0"
|
||||||
description = "Lovely Spam! Wonderful Spam!"
|
description = "Lovely Spam! Wonderful Spam!"
|
||||||
readme = "README.rst"
|
readme = "README.md"
|
||||||
requires-python = ">=3.7"
|
requires-python = ">=3.7"
|
||||||
license = {file = "LICENSE.txt"}
|
license = {file = "LICENSE.txt"}
|
||||||
keywords = ["SCADA", "mipt"]
|
keywords = ["SCADA", "mipt"]
|
||||||
@ -26,6 +26,4 @@ test = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
homepage = "https://example.com"
|
repository = "https://git.sciprog.center/tambovtsev.io/advanced-python-homework-2023"
|
||||||
documentation = "https://readthedocs.org"
|
|
||||||
repository = "https://github.com"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user