1[build-system] # Build backend
2requires = ["setuptools >= 61.0"]
3build-backend = "setuptools.build_meta"
4
5
6[project] # Generic package metadata
7name = "pyyc"
8description = "Test package"
9authors = [
10 { name="Yannick Copin", email="y.copin@ipnl.in2p3.fr" },
11]
12
13# Static or Dynamic metadata?
14# version = "0.0.1"
15dynamic = ["version"] # see [tool.setuptools.dynamic] section below
16
17# README (file and format)
18readme = {file="README.rst", content-type="text/x-rst"}
19
20# License (file)
21license = {file="LICENSE"}
22
23# Python version requirement
24requires-python = ">=3.8"
25
26# Main dependency management (see optional dependencies below)
27# Only *external* libraries (standard lib. is always included)
28dependencies = [
29 "importlib_resources; python_version < '3.10'", # not needed from 3.10
30]
31
32classifiers = [ # See https://pypi.org/classifiers/
33 # How mature is this project?
34 "Development Status :: 1 - Planning",
35 # Indicate who your project is intended for
36 "Intended Audience :: Education",
37 # License (should match "license" above)
38 "License :: OSI Approved :: BSD License",
39 # Specify the Python versions you support (see below)
40 "Programming Language :: Python :: 3",
41 "Operating System :: OS Independent",
42 # Keywords
43 "Topic :: Education",
44]
45
46[tool.setuptools.dynamic] # Dynamic definitions
47version = {attr="pyyc.__version__"} # set version from package
48
49[tool.setuptools.packages] # Package discovery
50find = {} # Scan the project directory with the default parameters
51
52[tool.setuptools.package-data] # Package data
53pyyc = ["*.cfg"]
54
55
56[project.optional-dependencies]
57docs = ["nbsphinx", "ipython", "pytest"]
58tests = ["pytest", "coverage"]
59
60
61[project.scripts]
62# Entry points and automatic script creation
63# script 'pyyc' corresponds to function 'main()' in file '__main__.py'
64pyyc = "pyyc.__main__:main"
65# 'pyyc_addition' corresponds to function 'main_addition()' in '__main__.py'
66pyyc_addition = "pyyc.__main__:main_addition"
67
68
69[project.urls]
70Repository = "https://gitlab.in2p3.fr/ycopin/pyyc"
71Documentation = "https://ycopin.pages.in2p3.fr/pyyc/"
72
73
74# External tool configuration
75[tool.pytest.ini_options] # pytest
76minversion = "7.0"
77addopts = "-v"