File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1010 requirements = f .read ()
1111 requirements = [x for x in requirements .split ("\n " ) if x != "" ]
1212
13+ with open ("src/ma5_expert/_version.py" , "r" ) as f :
14+ version = f .readlines ()[- 1 ].split ()[- 1 ].strip ("\" '" )
15+
1316setup (
1417 name = "ma5_expert" ,
15- version = "3.0.3" ,
18+ version = version ,
1619 description = ("MadAnalysis 5 interpreter for Expert mode" ),
1720 long_description = long_description ,
1821 long_description_content_type = "text/markdown" ,
1922 url = "https://github.com/MadAnalysis/ma5_expert" ,
2023 project_urls = {
2124 "Bug Tracker" : "https://github.com/MadAnalysis/ma5_expert/issues" ,
2225 },
23- download_url = "https://github.com/MadAnalysis/ma5_expert/archive/refs/tags/v3.0.3 .tar.gz" ,
26+ download_url = f "https://github.com/MadAnalysis/ma5_expert/archive/refs/tags/v { version } .tar.gz" ,
2427 author = "Jack Y. Araz" ,
2528 author_email = ("jack.araz@durham.ac.uk" ),
2629 license = "MIT" ,
Original file line number Diff line number Diff line change 1- __version__ = "1.0.3"
2-
31import logging
42import sys
53
1311from ma5_expert import histogram
1412from ma5_expert import pad
1513from ma5_expert .backend import BackendManager , PADType
14+ from ._version import __version__
1615
1716
1817__all__ = cutflow .__all__ + histogram .__all__ + pad .__all__ + ["BackendManager" , "PADType" ]
Original file line number Diff line number Diff line change 1+ """Version number (major.minor.patch[-label])"""
2+
3+ __version__ = "3.0.3"
You can’t perform that action at this time.
0 commit comments