1- [build-system ]
2- requires = [" setuptools>=62.1 .0" , " wheel" ]
1+ [build-system ] # Require setuptool version due to https://github.com/pypa/setuptools/issues/2938
2+ requires = [" setuptools>=61.0 .0" , " wheel" ]
33
4- [tool .setuptools ]
5- package-dir = {"" = " src" }
64
7- [tool .setuptools .packages .find ]
8- where = [" src" ]
9-
10-
11- [project ]
12- name = " mypackage"
13- authors = [
5+ [project ] # See https://python-poetry.org/docs/pyproject/ for more keywords
6+ name = " mypackage" # Name of your package
7+ authors = [ # List of authors
148 {name = " Jørgen S. Dokken" , email = " dokken@simula.no" }
159 ]
16- version = " 0.1.0"
17- description = " Minimal package for adding two numbers"
18- readme = " README.md"
19- requires-python = " >=3.8"
20- license = {file = " LICENSE" }
10+ version = " 0.1.0" # Version number
11+ description = " Minimal package for adding two numbers" # Short description of package
12+ readme = " README.md" # Is used for the description field in your package, see: https://python-poetry.org/docs/pyproject/#readme
13+ requires-python = " >=3.8" # Set requirement for minimal python version
14+ license = {file = " LICENSE" } # Path to license file, see: https://spdx.org/licenses/ for options
2115dependencies = [
2216 ' numpy'
2317]
2418
2519
2620[project .optional-dependencies ]
2721test = [
28- " flake8" ,
29- " mypy" ,
30- " pytest" ,
31- " pytest-cov"
22+ " flake8" , # Checks code for consistency, see: https://flake8.pycqa.org/en/latest/user/error-codes.html
23+ " mypy" , # Makes sure that typing of input/output is consistent
24+ " pytest" , # To run test
25+ " pytest-cov" # To create coverage reports
3226]
3327
3428docs = [
35- " sphinx" ,
36- " jupyter-book" ,
37- " jupytext"
29+ " jupyter-book" , # Required to build documentation
30+ " jupytext" , # Required to convert .py to .ipynb files
31+ ]
32+
33+ binder = [
34+ " jupyterlab" # Required to interface with Binder when having a Dockerfile in root
3835]
3936
4037[tool .mypy ]
41- ignore_missing_imports = true
42- exclude = [
43- " docs/" ,
38+ ignore_missing_imports = true # Does not show errors when importing untyped libraries
39+ exclude = [ # We only want mypy to consider files that are not generated in installing or building documentation
40+ " docs/" ,
4441 " build/"
4542]
0 commit comments