Skip to content
Snippets Groups Projects
Commit 674cdc5f authored by Stefano Zacchiroli's avatar Stefano Zacchiroli
Browse files

import template from swh-py-template (init-py-repo)

parents
No related branches found
Tags v0.0.0
No related merge requests found
*.pyc
*.sw?
*~
.coverage
.eggs/
__pycache__
*.egg-info/
version.txt
\ No newline at end of file
Copyright (C) 2015-2016 The Software Heritage developers
See http://www.softwareheritage.org/ for more information.
This diff is collapsed.
include Makefile
include requirements.txt
include requirements-swh.txt
include version.txt
# Makefile driver for SWH Python modules. DO NOT CHANGE.
# You can add custom Makefile rules to Makefile.local
include ../Makefile.python
-include Makefile.local
<module-name> (0.0.1-1) unstable; urgency=low
*
-- AUTHOR-NAME <AUTHOR-EMAIL> <UTC-DATE>
9
Source: <module-name>
Maintainer: Software Heritage developers <swh-devel@inria.fr>
Section: python
Priority: optional
Build-Depends: debhelper (>= 9),
dh-python,
python3-all,
python3-nose,
python3-setuptools,
python3-swh.core,
python3-swh.storage,
python3-vcversioner
Standards-Version: 3.9.6
Homepage: https://forge.softwareheritage.org/diffusion/<PHABRICATOR_CALLSIGN>/
Package: python3-<dot-separated-name-module>
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: Software Heritage <module-description>
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
Copyright: 2015 The Software Heritage developers
License: GPL-3+
License: GPL-3+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General Public
License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
#!/usr/bin/make -f
export PYBUILD_NAME=<dash-separated-module-name>
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_test:
3.0 (quilt)
# Add here internal Software Heritage dependencies, one per line.
# Add here external Python modules dependencies, one per line. Module names
# should match https://pypi.python.org/pypi names. For the full spec or
# dependency lines, see https://pip.readthedocs.org/en/1.1/requirements.html
vcversioner
setup.py 0 → 100644
from setuptools import setup
def parse_requirements():
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)
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,
)
# Copyright (C) 2015-2016 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment