Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-docs
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Harsh Vardhan Mahawar
swh-docs
Commits
59648c95
Commit
59648c95
authored
6 years ago
by
Antoine Pietri
Browse files
Options
Downloads
Patches
Plain Diff
Add requirements-test.txt
parent
d9149981
No related branches found
Branches containing commit
No related tags found
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 @
59648c95
nose
This diff is collapsed.
Click to expand it.
setup.py
+
18
−
9
View file @
59648c95
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
...
...
@@ -21,8 +29,9 @@ setup(
url
=
'
https://forge.softwareheritage.org/source/swh-docs/
'
,
packages
=
find_packages
(),
scripts
=
[],
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
,
)
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