Fixed python load paths so that vppcfg will work installed as python library and standalone from the source directory, fixing load pathes for resources such as yaml files along the way. Added a make target for pylint called 'make check-style', fixed a number of minor pylint issues along the way. Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
		
			
				
	
	
		
			23 lines
		
	
	
		
			534 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			534 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""vppcfg setuptools setup.py for pip and deb pkg installations"""
 | 
						|
from setuptools import setup
 | 
						|
 | 
						|
setup(
 | 
						|
    name="vppcfg",
 | 
						|
    version="0.0.1",
 | 
						|
    install_requires=[
 | 
						|
        "requests",
 | 
						|
        'importlib-metadata; python_version == "3.8"',
 | 
						|
        "yamale",
 | 
						|
        "netaddr",
 | 
						|
        "ipaddress",
 | 
						|
        "vpp_papi",
 | 
						|
    ],
 | 
						|
    packages=["vppcfg", "vppcfg/config", "vppcfg/vpp"],
 | 
						|
    entry_points={
 | 
						|
        "console_scripts": [
 | 
						|
            "vppcfg = vppcfg.vppcfg:main",
 | 
						|
        ]
 | 
						|
    },
 | 
						|
    package_data={"vppcfg": ["*.yaml"]},
 | 
						|
)
 |