Skip to content

Commit 34d08db

Browse files
committed
updated interface, bump version
1 parent cb23474 commit 34d08db

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

.github/workflows/wheel.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
env:
99
MODULE: tmEventSetup
10-
UTM_VERSION: 0.12.0
10+
UTM_VERSION: 0.13.0
1111
strategy:
1212
matrix:
13-
python-version: ["3.11"]
13+
python-version: ["3.12"]
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Install build dependecies
@@ -35,7 +35,7 @@ jobs:
3535
- name: Build wheel
3636
run: |
3737
export UTM_BASE="$(pwd)/utm-utm_${{ env.UTM_VERSION }}"
38-
python -m build
38+
python -m build --wheel
3939
python -m pip install dist/*-linux_x86_64.whl
4040
- name: Test module
4141
run: |

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,43 +10,43 @@ which makes it also possible to use multiple versions in parallel.
1010
### Python 3.12
1111

1212
```bash
13-
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.12.0/tm_eventsetup-0.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
13+
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.13.0/tm_eventsetup-0.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
1414
```
1515

1616
### Python 3.11
1717

1818
```bash
19-
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.12.0/tm_eventsetup-0.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
19+
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.13.0/tm_eventsetup-0.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
2020
```
2121

2222
### Python 3.10
2323

2424
```bash
25-
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.12.0/tm_eventsetup-0.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
25+
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.13.0/tm_eventsetup-0.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
2626
```
2727

2828
### Python 3.9
2929

3030
```bash
31-
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.12.0/tm_eventsetup-0.12.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
31+
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.13.0/tm_eventsetup-0.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
3232
```
3333

3434
### Python 3.8
3535

3636
```bash
37-
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.12.0/tm_eventsetup-0.12.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
37+
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.13.0/tm_eventsetup-0.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
3838
```
3939

4040
### Python 3.7
4141

4242
```bash
43-
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.12.0/tm_eventsetup-0.12.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
43+
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.13.0/tm_eventsetup-0.13.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
4444
```
4545

4646
### Python 3.6
4747

4848
```bash
49-
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.12.0/tm_eventsetup-0.12.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
49+
pip install https://github.com/cms-l1-globaltrigger/tm-eventsetup/releases/download/0.13.0/tm_eventsetup-0.13.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
5050
```
5151

5252
## Build instructions
@@ -68,7 +68,7 @@ Check out and build all utm libraries.
6868
**Important:** compile using the `-DSWIG` flag, see below.
6969

7070
```bash
71-
git clone https://gitlab.cern.ch/cms-l1t-utm/utm.git -b utm_0.12.0
71+
git clone https://gitlab.cern.ch/cms-l1t-utm/utm.git -b utm_0.13.0
7272
cd utm
7373
./configure
7474
make all -j4 CPPFLAGS='-DNDEBUG -DSWIG' # compile with -DSWIG
@@ -81,7 +81,7 @@ Next build the Python bindings and install the resulting wheel. It is
8181
recommended to execute this step in a virtual environment.
8282

8383
```bash
84-
git clone https://github.com/cms-l1-globaltrigger/tm-eventsetup.git -b 0.12.0
84+
git clone https://github.com/cms-l1-globaltrigger/tm-eventsetup.git -b 0.13.0
8585
cd tm-eventsetup
8686
python3 -m venv env
8787
. env/bin/activate

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from setuptools import setup, Extension
88
import setuptools.command.build_py
99

10-
UTM_VERSION = "0.12.0"
10+
UTM_VERSION = "0.13.0"
1111
PACKAGE_NAME = "tmEventSetup"
1212
PACKAGE_DIR = os.path.realpath(os.path.join(os.path.dirname(__file__), PACKAGE_NAME))
1313

tmEventSetup/tmEventSetup.i

+10
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ typedef long esCombinationType;
7676
}
7777
}
7878

79+
%{
80+
namespace tmeventsetup {
81+
extern const std::string& getGrammarVersion();
82+
}
83+
%}
84+
85+
namespace tmeventsetup {
86+
extern const std::string& getGrammarVersion();
87+
}
88+
7989
%include "tmEventSetup/tmEventSetup.hh"
8090
%include "tmEventSetup/esTypes.hh"
8191
%include "tmEventSetup/esTriggerMenu.hh"

0 commit comments

Comments
 (0)