From c3f91dc1e06e61b38a1662e4d4de517093793f88 Mon Sep 17 00:00:00 2001 From: ermakov-ad Date: Fri, 29 Sep 2023 15:09:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?1=5Fhw=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1_hw/LICENSE | 19 +++++++++++++++++++ 1_hw/README.md | 29 +++++++++++++++++++++++++++++ 1_hw/pyproject.toml | 22 ++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 1_hw/LICENSE create mode 100644 1_hw/README.md create mode 100644 1_hw/pyproject.toml diff --git a/1_hw/LICENSE b/1_hw/LICENSE new file mode 100644 index 0000000..a788751 --- /dev/null +++ b/1_hw/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2018 The Python Packaging Authority + +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. \ No newline at end of file diff --git a/1_hw/README.md b/1_hw/README.md new file mode 100644 index 0000000..a5b0990 --- /dev/null +++ b/1_hw/README.md @@ -0,0 +1,29 @@ +# Test package + +# Sequence of commands for creating a virtual environment: +>> mkdir YOUR_PACKAGE_NAME +>> cd YOUR_PACKAGE_NAME +>> touch __init__.py +>> cd .. +>> touch pyproject.toml +>> open pyproject.toml +... +>> touch LICENSE +>> open LICENSE +... +>> touch README.md +>> open README.md +... +>> python3 -m build + +# Creating documentation using sphinx: +>> mkdir docs +>> cd docs +>> sphinx-quickstart +>> ... +>> touch views.py +>> open views.py +>> ... +>> cd source +>> open index.rst +>> ... \ No newline at end of file diff --git a/1_hw/pyproject.toml b/1_hw/pyproject.toml new file mode 100644 index 0000000..97738aa --- /dev/null +++ b/1_hw/pyproject.toml @@ -0,0 +1,22 @@ +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" + +[tool.poetry] +name = "controls_Ermakov" +version = "0.0.1" +description = "Homework project" +authors = ["Ermakov Alexey <[ermakov.ad@phystech.edu]>"] +license = "MIT" + +[tool.poetry.dependencies] +python = "^3.8" + +[tool.poetry.dev-dependencies] +pytest = "^4.6" +Pylint = "^2.0" +MyPy = "^1.2" + +[tool.poetry.extras] +docs = ["sphinx"] +extensions = ["sphinx.ext.autodoc"] \ No newline at end of file