9bab0960b6
This change condenses the directory structure to something more similar to what we had before while producing similar packages. It also introduces version.py which allows us to get the version from git tags (or a fallback version if not available). Fixes lp bug 889336 Fixes lp bug 888795 Change-Id: I86136bd9dbabb5eb1f8366ed665ed9b54f695124
52 lines
1.0 KiB
Python
52 lines
1.0 KiB
Python
try:
|
|
from setuptools import setup, find_packages
|
|
except ImportError:
|
|
from ez_setup import use_setuptools
|
|
use_setuptools()
|
|
from setuptools import setup, find_packages
|
|
|
|
import version
|
|
import sys
|
|
|
|
Name = 'quantum-sample-plugin'
|
|
Summary = 'Sample plugin for Quantum'
|
|
Url = "https://launchpad.net/quantum"
|
|
Version = version.get_git_version()
|
|
License = 'Apache License 2.0'
|
|
Author = 'Netstack'
|
|
AuthorEmail = 'netstack@lists.launchpad.net'
|
|
Maintainer = ''
|
|
ShortDescription = Summary
|
|
Description = Summary
|
|
|
|
requires = [
|
|
'quantum-common',
|
|
'quantum-server',
|
|
]
|
|
|
|
EagerResources = [
|
|
'quantum',
|
|
]
|
|
|
|
ProjectScripts = [
|
|
]
|
|
|
|
PackageData = {
|
|
}
|
|
|
|
setup(
|
|
name=Name,
|
|
version=Version,
|
|
author=Author,
|
|
author_email=AuthorEmail,
|
|
description=ShortDescription,
|
|
long_description=Description,
|
|
license=License,
|
|
scripts=ProjectScripts,
|
|
install_requires=requires,
|
|
include_package_data=True,
|
|
packages=["quantum.plugins.sample"],
|
|
package_data=PackageData,
|
|
eager_resources=EagerResources,
|
|
)
|