File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11requests
2+ setuptools >= 74.1.0
3+ setuptools_git_versioning >= 2.0.0
Original file line number Diff line number Diff line change 11import sys
2- from setuptools import setup
2+ import setuptools
33from pathlib import Path
44
55# read the contents of your README file
66current_directory = Path (__file__ ).parent
77long_description = (current_directory / "README.md" ).read_text ()
88
9- version = sys .argv [3 :]
10- if version :
11- version = str (version [0 ])
12- sys .argv .remove (version )
13- else :
14- raise Exception ("Version is not set" )
15-
16- setup (
9+ setuptools .setup (
1710 name = "ThermiaOnlineAPI" ,
1811 packages = [
1912 "ThermiaOnlineAPI" ,
2215 "ThermiaOnlineAPI.model" ,
2316 "ThermiaOnlineAPI.utils" ,
2417 ],
25- version = version ,
18+ setuptools_git_versioning = {
19+ "enabled" : True ,
20+ "dev_template" : "{tag}" ,
21+ },
2622 license = "GPL-3.0" ,
2723 description = "A Python API for Thermia heat pumps using https://online.thermia.se" ,
2824 long_description = long_description ,
3329 download_url = "https://github.com/klejejs/python-thermia-online-api/releases" ,
3430 keywords = ["Thermia" , "Online" ],
3531 install_requires = [],
32+ setup_requires = ["setuptools-git-versioning" ],
3633 classifiers = [],
3734)
You can’t perform that action at this time.
0 commit comments