Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-icinga-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-icinga-plugins
Commits
8d0abfad
Verified
Commit
8d0abfad
authored
5 years ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
setup.py: Add data files
parent
7440942d
No related branches found
Branches containing commit
Tags
v0.0.2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+11
-2
11 additions, 2 deletions
setup.py
with
11 additions
and
2 deletions
setup.py
+
11
−
2
View file @
8d0abfad
#!/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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment