triggercalib 0.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- triggercalib-0.0.0/.coverage +0 -0
- triggercalib-0.0.0/.coverage_rc +3 -0
- triggercalib-0.0.0/.flake8 +3 -0
- triggercalib-0.0.0/.gitignore +10 -0
- triggercalib-0.0.0/.gitlab-ci.yml +113 -0
- triggercalib-0.0.0/COPYING +674 -0
- triggercalib-0.0.0/PKG-INFO +708 -0
- triggercalib-0.0.0/README.md +23 -0
- triggercalib-0.0.0/docs/Makefile +17 -0
- triggercalib-0.0.0/docs/source/background/images/tistos.png +0 -0
- triggercalib-0.0.0/docs/source/background/talks.rst +62 -0
- triggercalib-0.0.0/docs/source/background/tistos.rst +82 -0
- triggercalib-0.0.0/docs/source/class/checks.rst +4 -0
- triggercalib-0.0.0/docs/source/class/configuration.rst +35 -0
- triggercalib-0.0.0/docs/source/class/counts.rst +61 -0
- triggercalib-0.0.0/docs/source/class/index.rst +31 -0
- triggercalib-0.0.0/docs/source/class/writing.rst +19 -0
- triggercalib-0.0.0/docs/source/conf.py +107 -0
- triggercalib-0.0.0/docs/source/index.rst +39 -0
- triggercalib-0.0.0/docs/source/tables/index.rst +4 -0
- triggercalib-0.0.0/docs/source/tool/index.rst +4 -0
- triggercalib-0.0.0/pyproject.toml +26 -0
- triggercalib-0.0.0/requirements-ci.txt +5 -0
- triggercalib-0.0.0/setup.cfg +4 -0
- triggercalib-0.0.0/src/hlteff/__init__.py +15 -0
- triggercalib-0.0.0/src/hlteff/hlteff.py +1070 -0
- triggercalib-0.0.0/src/hlteff/objects.py +112 -0
- triggercalib-0.0.0/src/hlteff/tests/__init__.py +10 -0
- triggercalib-0.0.0/src/hlteff/tests/test_fit_count.py +118 -0
- triggercalib-0.0.0/src/hlteff/tests/test_raw.py +39 -0
- triggercalib-0.0.0/src/hlteff/tests/test_sideband.py +53 -0
- triggercalib-0.0.0/src/hlteff/tests/test_sweights.py +119 -0
- triggercalib-0.0.0/src/hlteff/tests/utils.py +104 -0
- triggercalib-0.0.0/src/triggercalib.egg-info/PKG-INFO +708 -0
- triggercalib-0.0.0/src/triggercalib.egg-info/SOURCES.txt +35 -0
- triggercalib-0.0.0/src/triggercalib.egg-info/dependency_links.txt +1 -0
- triggercalib-0.0.0/src/triggercalib.egg-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
###############################################################################
|
|
2
|
+
# (c) Copyright 2024 CERN for the benefit of the LHCb Collaboration #
|
|
3
|
+
# #
|
|
4
|
+
# This software is distributed under the terms of the GNU General Public #
|
|
5
|
+
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". #
|
|
6
|
+
# #
|
|
7
|
+
# In applying this licence, CERN does not waive the privileges and immunities #
|
|
8
|
+
# granted to it by virtue of its status as an Intergovernmental Organization #
|
|
9
|
+
# or submit itself to any jurisdiction. #
|
|
10
|
+
###############################################################################
|
|
11
|
+
|
|
12
|
+
image: gitlab-registry.cern.ch/ci-tools/ci-worker:cc7
|
|
13
|
+
|
|
14
|
+
stages:
|
|
15
|
+
- check
|
|
16
|
+
- test
|
|
17
|
+
- docs
|
|
18
|
+
- build
|
|
19
|
+
- deploy
|
|
20
|
+
|
|
21
|
+
before_script:
|
|
22
|
+
- source /cvmfs/lhcb.cern.ch/lib/LbEnv
|
|
23
|
+
- lb-conda-dev virtual-env default/2024-06-08 .venv
|
|
24
|
+
- .venv/run pip install -r requirements-ci.txt
|
|
25
|
+
|
|
26
|
+
formatting:
|
|
27
|
+
tags:
|
|
28
|
+
- cvmfs
|
|
29
|
+
stage: check
|
|
30
|
+
script:
|
|
31
|
+
- .venv/run black src --check
|
|
32
|
+
allow_failure: true
|
|
33
|
+
|
|
34
|
+
linting:
|
|
35
|
+
stage: check
|
|
36
|
+
tags:
|
|
37
|
+
- cvmfs
|
|
38
|
+
script:
|
|
39
|
+
- .venv/run flake8 --select=F,E71,E9,E2,E1,W1,W6,W2
|
|
40
|
+
allow_failure: true
|
|
41
|
+
|
|
42
|
+
testing:
|
|
43
|
+
stage: test
|
|
44
|
+
tags:
|
|
45
|
+
- cvmfs
|
|
46
|
+
script:
|
|
47
|
+
- .venv/run pytest -v --pyargs src --junitxml=report.xml
|
|
48
|
+
coverage: /TOTAL.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
|
|
49
|
+
artifacts:
|
|
50
|
+
when: always
|
|
51
|
+
reports:
|
|
52
|
+
junit: report.xml
|
|
53
|
+
|
|
54
|
+
# Test that docs build correctly
|
|
55
|
+
build-docs:
|
|
56
|
+
stage: docs
|
|
57
|
+
image: python:latest
|
|
58
|
+
# Functions that should be executed before the build script is run
|
|
59
|
+
before_script:
|
|
60
|
+
- pip install sphinx sphinx-autobuild sphinx_rtd_theme
|
|
61
|
+
script:
|
|
62
|
+
- make html -C docs
|
|
63
|
+
artifacts:
|
|
64
|
+
paths:
|
|
65
|
+
# The folder that contains the files to be exposed at the Page URL
|
|
66
|
+
- docs/build/html
|
|
67
|
+
|
|
68
|
+
# Building based on LHCb/Moore docs pipeline
|
|
69
|
+
pages:
|
|
70
|
+
stage: docs
|
|
71
|
+
image: python:latest
|
|
72
|
+
# Functions that should be executed before the build script is run
|
|
73
|
+
before_script:
|
|
74
|
+
- ''
|
|
75
|
+
dependencies:
|
|
76
|
+
- build-docs
|
|
77
|
+
script:
|
|
78
|
+
- cp -r docs/build/html public
|
|
79
|
+
artifacts:
|
|
80
|
+
paths:
|
|
81
|
+
# The folder that contains the files to be exposed at the Page URL
|
|
82
|
+
- public
|
|
83
|
+
- docs/build/html
|
|
84
|
+
rules:
|
|
85
|
+
# This ensures that only pushes to the default branch will trigger
|
|
86
|
+
# a pages deploy
|
|
87
|
+
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
|
88
|
+
|
|
89
|
+
package:
|
|
90
|
+
stage: build
|
|
91
|
+
image: gitlab-registry.cern.ch/lhcb-docker/python-deployment:python-3.7
|
|
92
|
+
script:
|
|
93
|
+
- python -m build
|
|
94
|
+
artifacts:
|
|
95
|
+
paths:
|
|
96
|
+
- dist
|
|
97
|
+
expire_in: 1 week
|
|
98
|
+
before_script:
|
|
99
|
+
- pip install build
|
|
100
|
+
after_script: []
|
|
101
|
+
|
|
102
|
+
deploy-packages:
|
|
103
|
+
stage: deploy
|
|
104
|
+
image: gitlab-registry.cern.ch/lhcb-docker/python-deployment:python-3.7
|
|
105
|
+
only:
|
|
106
|
+
- tags
|
|
107
|
+
dependencies:
|
|
108
|
+
- package
|
|
109
|
+
script:
|
|
110
|
+
- if [ -z "$TWINE_PASSWORD" ] ; then echo "Set TWINE_PASSWORD in CI variables" ; exit 1 ; fi
|
|
111
|
+
- twine upload -u __token__ dist/*
|
|
112
|
+
before_script: []
|
|
113
|
+
after_script: []
|