Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
nrm
Commits
42d2f612
Commit
42d2f612
authored
Jun 19, 2019
by
Valentin Reis
Browse files
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
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
42d2f612
...
@@ -55,3 +55,6 @@ _output
...
@@ -55,3 +55,6 @@ _output
# documentation
# documentation
docs/_build
docs/_build
docs/manifest.rst
docs/manifest.rst
dist/
doc/
default.nix
View file @
42d2f612
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
}:
}:
rec
{
rec
{
nrm
=
pkgs
.
nrm
;
nrm
=
pkgs
.
nrm
;
nrm-dist
=
pkgs
.
nrm-dist
;
hack
=
nrm
.
overrideAttrs
(
old
:{
hack
=
nrm
.
overrideAttrs
(
old
:{
buildInputs
=
old
.
buildInputs
++
[
buildInputs
=
old
.
buildInputs
++
[
pkgs
.
pythonPackages
.
flake8
pkgs
.
pythonPackages
.
flake8
...
...
setup.py
View file @
42d2f612
...
@@ -2,6 +2,15 @@
...
@@ -2,6 +2,15 @@
"""
"""
from
setuptools
import
setup
,
find_packages
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
(
setup
(
name
=
'nrm'
,
name
=
'nrm'
,
...
@@ -22,5 +31,6 @@ setup(
...
@@ -22,5 +31,6 @@ setup(
packages
=
find_packages
(),
packages
=
find_packages
(),
install_requires
=
[],
install_requires
=
[],
package_data
=
{
'nrm'
:
[
'schemas/*.json'
,
'schemas/*.yml'
]},
package_data
=
{
'nrm'
:
[
'schemas/*.json'
,
'schemas/*.yml'
]},
data_files
=
get_data_files
(
"./doc"
),
scripts
=
[
'bin/nrmd'
,
'bin/app'
,
'bin/nrm'
,
'bin/nrm-perfwrapper'
]
scripts
=
[
'bin/nrmd'
,
'bin/app'
,
'bin/nrm'
,
'bin/nrm-perfwrapper'
]
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment