forked from barrettfdavis/online_actogram
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (132 loc) · 4.9 KB
/
pyproject.toml
File metadata and controls
147 lines (132 loc) · 4.9 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# SPDX-License-Identifier: MIT
[build-system]
# never uppercap requirements unless we have evidence it won't work https://iscinumpy.dev/post/bound-version-constraints/
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project] # beware if using setuptools: setup.py still gets executed, and even if pyproject.toml fields take precedence, if there is any code error in setup.py, building will fail!
name = "webactogram" # renamed from online-actogram according to PEP 423 https://peps.python.org/pep-0423/#pick-meaningful-names
version = "0.4.2" # see PEP 440 https://peps.python.org/pep-0440/#pre-releases and https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
description = "Actogram from browsers history, may help to screen sleep-wake patterns & disorders!"
authors = [
{name = "Barrett F. Davis", email = "barrettfdavis@gmail.com"},
{name = "Stephen Karl Larroque", email = "LRQ3000@gmail.com"},
]
maintainers = [
{name = "Stephen Karl Larroque", email = "LRQ3000@gmail.com"},
]
requires-python = ">=3.7"
license = {text = "MIT License"} # { file = "LICENSE" }
keywords = ["actogram", "sleep", "pattern", "activity", "graph", "browser", "internet", "online", "actigraphy"]
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Healthcare Industry',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: Log Analysis',
'Topic :: Internet :: WWW/HTTP :: Browsers',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
]
dependencies = [
"matplotlib>=3.3.4",
"numpy>=1.21.0",
"pandas>=1.3.4",
"scipy>=1.6.1",
"browser-history>=0.4.0",
]
[project.urls]
Homepage = "https://github.com/Circadiaware/webactogram"
Documentation = "https://github.com/Circadiaware/webactogram/blob/master/README.md"
"Source" = "https://github.com/Circadiaware/webactogram"
Tracker = "https://github.com/Circadiaware/webactogram/issues"
Download = "https://github.com/Circadiaware/webactogram/releases"
Changelog = "https://allmychanges.com/p/python/webactogram/"
[project.optional-dependencies]
test = [ # minimum dependencies to run tests
"pytest",
"pytest-cov",
]
testmeta = [ # dependencies to test meta-data and build locally
"build",
"twine",
"validate-pyproject",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.scripts]
webactogram = "webactogram.webactogram:main"
#[tool.setuptools]
#package-dir = {"" = "src"}
[tool.setuptools.packages.find]
# IMPORTANT: systematically delete `src/<project.name>.egg-info` folder before rebuilding, otherwise the list of included files will not get updated (it's in `SOURCES.txt` file in this folder)
where = ["src"]
include = ["webactogram*"]
#namespaces = true # already the default
[tool.setuptools.package-data]
# Check the <mypkg>.egg-info/SOURCES.txt file generated after a `build` or `pip install` to check if the following files are correctly included in the sdist.
# Check also the list of files included by default: https://packaging.python.org/en/latest/guides/using-manifest-in/
"*" = [
"LICENSE*",
"README*",
]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"-ra",
"--strict-markers",
]
xfail_strict = true
testpaths = "tests" # default path to look for tests if nothing is specified in commandline
filterwarnings = [
"once::Warning",
]
required_plugins = "pytest-cov"
[tool.coverage.run]
branch = true
relative_files = true
include = [
"*/webactogram/*.py",
]
[tool.coverage.paths]
source = ["src"]
[tool.coverage.report] # Beware: you need to delete .coveragerc if you have one, otherwise .coveragerc will take precedence!
show_missing = true
include = [
"*/webactogram/*.py",
]
omit = [
"*/python?.?/*",
"*/site-packages/nose/*",
"*/opt/python/pypy*",
"*/tests/*",
]
exclude_lines = [
# a more strict default pragma
"\\# pragma: no cover\\b",
# allow defensive code
"^\\s*raise AssertionError\\b",
"^\\s*raise NotImplementedError\\b",
"^\\s*return NotImplemented\\b",
"^\\s*raise$",
# typing-related code
"^if (False|TYPE_CHECKING):",
": \\.\\.\\.(\\s*#.*)?$",
"^ +\\.\\.\\.$",
"-> ['\"]?NoReturn['\"]?:",
]