Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-vault
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-vault
Commits
d8f40b6a
Commit
d8f40b6a
authored
6 years ago
by
Antoine Pietri
Browse files
Options
Downloads
Patches
Plain Diff
Add requirements-test.txt
parent
d639308d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
requirements-test.txt
+1
-0
1 addition, 0 deletions
requirements-test.txt
setup.py
+18
-9
18 additions, 9 deletions
setup.py
with
19 additions
and
9 deletions
requirements-test.txt
0 → 100644
+
1
−
0
View file @
d8f40b6a
nose
This diff is collapsed.
Click to expand it.
setup.py
+
18
−
9
View file @
d8f40b6a
#!/usr/bin/env python3
import
os
from
setuptools
import
setup
,
find_packages
def
parse_requirements
():
def
parse_requirements
(
name
=
None
):
if
name
:
reqf
=
'
requirements-%s.txt
'
%
name
else
:
reqf
=
'
requirements.txt
'
requirements
=
[]
for
reqf
in
(
'
requirements.txt
'
,
'
requirements-swh.txt
'
):
with
open
(
reqf
)
as
f
:
for
line
in
f
.
readlines
():
line
=
line
.
strip
()
if
not
line
or
line
.
startswith
(
'
#
'
):
continue
requirements
.
append
(
line
)
if
not
os
.
path
.
exists
(
reqf
):
return
requirements
with
open
(
reqf
)
as
f
:
for
line
in
f
.
readlines
():
line
=
line
.
strip
()
if
not
line
or
line
.
startswith
(
'
#
'
):
continue
requirements
.
append
(
line
)
return
requirements
...
...
@@ -22,8 +30,9 @@ setup(
author_email
=
'
swh-devel@inria.fr
'
,
url
=
'
https://forge.softwareheritage.org/diffusion/DVAU/
'
,
packages
=
find_packages
(),
install_requires
=
parse_requirements
(),
install_requires
=
parse_requirements
()
+
parse_requirements
(
'
swh
'
)
,
setup_requires
=
[
'
vcversioner
'
],
extras_require
=
{
'
testing
'
:
parse_requirements
(
'
test
'
)},
vcversioner
=
{},
include_package_data
=
True
,
zip_safe
=
False
,
...
...
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