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