Skip to content
Snippets Groups Projects
Verified Commit 8d0abfad authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

setup.py: Add data files

parent 7440942d
No related branches found
Tags v0.0.2
No related merge requests found
#!/usr/bin/env python3
# Copyright (C) 2019 The Software Heritage developers
# Copyright (C) 2019-2020 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from setuptools import setup, find_packages
from os import path
from os import path, walk
from io import open
here = path.abspath(path.dirname(__file__))
......@@ -35,6 +35,14 @@ def parse_requirements(name=None):
return requirements
# package generated static assets as module data files
data_files = []
for root, _, files in walk('data/'):
root_files = [path.join(root, i) for i in files]
data_files.append((path.join('share/swh/icinga-plugins', root),
root_files))
setup(
name='swh.icinga_plugins',
description='Icinga plugins for Software Heritage infrastructure '
......@@ -68,4 +76,5 @@ setup(
'Source':
'https://forge.softwareheritage.org/source/swh-icinga-plugins',
},
data_files=data_files
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment