Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7437627
setup.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
911 B
Subscribers
None
setup.py
View Options
from
setuptools
import
setup
def
parse_requirements
():
requirements
=
[]
with
open
(
'requirements.txt'
)
as
f
:
for
line
in
f
.
readlines
():
line
=
line
.
strip
()
if
not
line
or
line
.
startswith
(
'#'
):
continue
requirements
.
append
(
line
)
return
requirements
# Edit this part to match your module
# full sample: https://forge.softwareheritage.org/diffusion/DCORE/browse/master/setup.py
setup
(
name
=
'swh.<module-name>'
,
description
=
'Software Heritage <Module
\'
s intent>'
,
author
=
'Software Heritage developers'
,
author_email
=
'swh-devel@inria.fr'
,
url
=
'https://forge.softwareheritage.org/diffusion/<module-git-code>'
,
packages
=
[],
# packages's modules
scripts
=
[],
# scripts to package
install_requires
=
parse_requirements
(),
setup_requires
=
[
'vcversioner'
],
vcversioner
=
{},
include_package_data
=
True
,
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Tue, Apr 15, 2:21 AM (6 d, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3286131
Attached To
rDOBJS Object storage
Event Timeline
Log In to Comment