-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (82 loc) · 3.15 KB
/
pyproject.toml
File metadata and controls
94 lines (82 loc) · 3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# see also
# https://packaging.python.org/en/latest/guides/modernize-setup-py-project/
# https://xebia.com/blog/an-updated-guide-to-setuptools-and-pyproject-toml/
# https://alpopkes.com/posts/python/packaging_tools/
# https://dev.to/adamghill/python-package-manager-comparison-1g98
#
[build-system]
requires = [
"setuptools >=79",
# "setuptools-scm", # if we want to use git versions for versioning
# "wheel", # setuptools doesn't need wheel anymore, see https://pypi.org/project/wheel/
]
build-backend = "setuptools.build_meta"
[project]
name = "cma"
description = "CMA-ES, Covariance Matrix Adaptation Evolution Strategy for non-linear numerical optimization in Python"
authors = [
{name = "Nikolaus Hansen"},
{name = "Youhei Akimoto"},
{name = "Petr Baudis"}
]
dependencies = [
"numpy",
]
dynamic = ["version", # see tool.setuptools.dynamic below
# "readme",
]
readme = "README.rst"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
keywords = [
"optimization",
"CMA-ES",
"cmaes",
]
maintainers = [
{name = "Nikolaus Hansen", email = "authors_firstname.lastname@inria.fr"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: IPython",
"Framework :: Jupyter",
"Intended Audience :: Education",
"Intended Audience :: Other Audience",
"Intended Audience :: Science/Research",
# "License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Mathematics",
]
[tool.setuptools]
# packages = ["cma", "cma.utilities"] # fails when they are in an src/ folder
include-package-data = false # true is default, false doesn't change anything
# [tool.setuptools.packages.find] # for where=. works only in a clean folder
# without any directives: finds src folder implying a standard (nonflat) layout
# # where = ["src"] # this doesn't work, it always takes the root too?
# include = ["cma*"] # cma/* ?
# exclude = ["notebooks*"] # , "cma_*" ?
# namespaces = false
[project.optional-dependencies]
plotting = ["matplotlib"]
constrained-solution-tracking = ["moarchiving"]
statistical-tests = ["scipy"]
[project.urls]
Homepage = "https://github.com/CMA-ES/pycma"
# Documentation = "" # API / notebooks / practical hints
Repository = "https://github.com/CMA-ES/pycma.git"
"Bug Tracker" = "https://github.com/CMA-ES/pycma/issues"
[tool.setuptools.dynamic]
version = {attr = "cma.__version__"} # any module attribute compatible with ast.literal_eval
# readme = {file = ["README.txt"]}
# In the dynamic table, the attr directive [3] will read an attribute from the given module [4], while file will read the contents of all given files and concatenate them in a single string.
[tool.ruff.lint]
ignore = ['F401', 'F403', 'E401', 'E402', 'F405', 'E701', 'E702', 'E722', 'E741',]
# select = ["NPY201"]
[tool.ruff.lint.per-file-ignores]
"fitness_models.py" = ['E731']
"python3for2.py" = ['F811', 'F821']