updated version to 5.2.1, updates to make version bumps easier, and updated changelog
This commit is contained in:
parent
9b1141a135
commit
51217e509b
8 changed files with 32 additions and 41 deletions
62
daemon/setup.py.in
Normal file
62
daemon/setup.py.in
Normal file
|
@ -0,0 +1,62 @@
|
|||
"""
|
||||
Defines how CORE will be built for installation.
|
||||
"""
|
||||
|
||||
import glob
|
||||
import os
|
||||
|
||||
from setuptools import find_packages
|
||||
from distutils.core import setup
|
||||
|
||||
_CORE_DIR = "/etc/core"
|
||||
_MAN_DIR = "share/man/man1"
|
||||
_EXAMPLES_DIR = "share/core"
|
||||
|
||||
|
||||
def recursive_files(data_path, files_path):
|
||||
all_files = []
|
||||
for path, _directories, filenames in os.walk(files_path):
|
||||
directory = os.path.join(data_path, path)
|
||||
files = []
|
||||
for filename in filenames:
|
||||
files.append(os.path.join(path, filename))
|
||||
all_files.append((directory, files))
|
||||
return all_files
|
||||
|
||||
|
||||
def glob_files(glob_path):
|
||||
return glob.glob(glob_path)
|
||||
|
||||
|
||||
data_files = [
|
||||
(_CORE_DIR, [
|
||||
"data/core.conf",
|
||||
"data/logging.conf",
|
||||
]),
|
||||
(_MAN_DIR, glob_files("../man/**.1")),
|
||||
]
|
||||
data_files.extend(recursive_files(_EXAMPLES_DIR, "examples"))
|
||||
|
||||
setup(
|
||||
name="core",
|
||||
version="@PACKAGE_VERSION@",
|
||||
packages=find_packages(),
|
||||
install_requires=[
|
||||
"enum34",
|
||||
"lxml"
|
||||
],
|
||||
tests_require=[
|
||||
"pytest",
|
||||
"pytest-runner",
|
||||
"pytest-cov",
|
||||
"mock",
|
||||
],
|
||||
data_files=data_files,
|
||||
scripts=glob.glob("scripts/*"),
|
||||
description="Python components of CORE",
|
||||
url="http://www.nrl.navy.mil/itd/ncs/products/core",
|
||||
author="Boeing Research & Technology",
|
||||
author_email="core-dev@nrl.navy.mil",
|
||||
license="BSD",
|
||||
long_description="Python scripts and modules for building virtual emulated networks.",
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue