mirror of
				https://github.com/KevinMidboe/delugeClient.git
				synced 2025-10-29 12:00:13 +00:00 
			
		
		
		
	Moved __version__ to separate file
This commit is contained in:
		| @@ -3,7 +3,7 @@ from sys import path | |||||||
|  |  | ||||||
| path.append(os.path.dirname(__file__)) | path.append(os.path.dirname(__file__)) | ||||||
|  |  | ||||||
| __version__=0.1 | path.append(dirname(__file__)) | ||||||
|  |  | ||||||
| import logging | import logging | ||||||
| from delugeUtils import BASE_DIR | from delugeUtils import BASE_DIR | ||||||
|   | |||||||
| @@ -37,7 +37,7 @@ from pprint import pprint | |||||||
|  |  | ||||||
| from deluge import Deluge | from deluge import Deluge | ||||||
| from utils import ColorizeFilter, BASE_DIR | from utils import ColorizeFilter, BASE_DIR | ||||||
| from __init__ import __version__ | from __version__ import __version__ | ||||||
|  |  | ||||||
| logger = logging.getLogger('deluge_cli') | logger = logging.getLogger('deluge_cli') | ||||||
| logger.setLevel(logging.DEBUG) | logger.setLevel(logging.DEBUG) | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								delugeClient/__version__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								delugeClient/__version__.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | __version__ = '0.2' | ||||||
							
								
								
									
										9
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								setup.py
									
									
									
									
									
								
							| @@ -5,9 +5,16 @@ import delugeClient | |||||||
| with open("README.md", "r", encoding="utf-8") as fh: | with open("README.md", "r", encoding="utf-8") as fh: | ||||||
|   long_description = fh.read() |   long_description = fh.read() | ||||||
|  |  | ||||||
|  | exec(open('delugeClient/__version__.py').read()) | ||||||
|  |  | ||||||
| setup( | setup( | ||||||
|   name="delugeClient-kevin", |   name="delugeClient-kevin", | ||||||
|   version=delugeClient.__version__, |   version=__version__, | ||||||
|  |   packages=find_packages(), | ||||||
|  |   package_data={ | ||||||
|  |     'delugeClient': ['default_config.ini'], | ||||||
|  |   }, | ||||||
|  |   python_requires=">=3.6", | ||||||
|   author="KevinMidboe", |   author="KevinMidboe", | ||||||
|   description="Deluge client with custom functions written in python", |   description="Deluge client with custom functions written in python", | ||||||
|   long_description=long_description, |   long_description=long_description, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user