Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8391427
setup.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
setup.py
View Options
# Copyright (C) 2017-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
import
os
from
setuptools
import
find_packages
,
setup
def
parse_requirements
(
name
=
None
):
if
name
:
reqf
=
"requirements-
%s
.txt"
%
name
else
:
reqf
=
"requirements.txt"
requirements
=
[]
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
setup
(
name
=
"swh.docs"
,
description
=
"Software Heritage development documentation"
,
python_requires
=
">=3.7"
,
author
=
"Software Heritage developers"
,
author_email
=
"swh-devel@inria.fr"
,
url
=
"https://forge.softwareheritage.org/source/swh-docs/"
,
packages
=
find_packages
(),
scripts
=
[],
install_requires
=
parse_requirements
(),
setup_requires
=
[
"setuptools-scm"
],
use_scm_version
=
True
,
extras_require
=
{
"testing"
:
parse_requirements
(
"test"
),
"building"
:
parse_requirements
(
"swh"
),
},
include_package_data
=
True
,
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Jun 4 2025, 6:43 PM (14 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3238248
Attached To
rDDOC Development documentation
Event Timeline
Log In to Comment