Commit 42d2f612 authored by Valentin Reis's avatar Valentin Reis

Merge branch 'setuppy2' into 'master'

Setup.py update to include ./doc

See merge request !103
parents 58958c5d 3d017455
Pipeline #7788 passed with stages
in 4 minutes and 30 seconds
......@@ -55,3 +55,6 @@ _output
# documentation
docs/_build
docs/manifest.rst
dist/
doc/
......@@ -3,6 +3,7 @@
}:
rec {
nrm = pkgs.nrm;
nrm-dist = pkgs.nrm-dist;
hack = nrm.overrideAttrs (old:{
buildInputs = old.buildInputs ++ [
pkgs.pythonPackages.flake8
......
......@@ -2,6 +2,15 @@
"""
from setuptools import setup, find_packages
import os
def get_data_files(docs_root):
data_files = []
for dirname, dirs, files in os.walk(docs_root):
for f in files:
data_files.append(os.path.join(dirname, f))
return data_files
setup(
name='nrm',
......@@ -22,5 +31,6 @@ setup(
packages=find_packages(),
install_requires=[],
package_data={'nrm': ['schemas/*.json', 'schemas/*.yml']},
data_files=get_data_files("./doc"),
scripts=['bin/nrmd', 'bin/app', 'bin/nrm', 'bin/nrm-perfwrapper']
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment