Skip to content
Snippets Groups Projects
Commit 05abfb07 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Cleaner packaging

parent 3db3ca64
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ Maintainer: Software Heritage developers <swh-devel@inria.fr>
Section: python
Priority: optional
Build-Depends: debhelper (>= 9),
dh-python,
dh-python (>= 2),
python3-all,
python3-docutils,
python3-nose,
......
#!/usr/bin/make -f
export PYBUILD_NAME=swh-web
TEST_DIRS := $(shell find swh -name tests -type d)
export PYBUILD_NAME=swh.web
export PYBUILD_TEST_ARGS=--with-doctest -sv -a !db,!fs
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_test:
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="cd {build_dir}; python{version} -m nose $(TEST_DIRS) -sva '!db'" \
dh_auto_test
override_dh_install:
dh_install
rm -v $(CURDIR)/debian/python3-*/usr/lib/python*/dist-packages/swh/__init__.py
#!/usr/bin/env python3
from setuptools import setup
from setuptools import setup, find_packages
def parse_requirements():
......@@ -21,13 +21,7 @@ setup(
author='Software Heritage developers',
author_email='swh-devel@inria.fr',
url='https://forge.softwareheritage.org/diffusion/DWUI/',
packages=['swh.web', 'swh.web.common', 'swh.web.settings',
'swh.web.api', 'swh.web.api.views',
'swh.web.tests', 'swh.web.tests.api',
'swh.web.tests.api.views',
'swh.web.tests.common', 'swh.web.browse',
'swh.web.browse.views', 'swh.web.tests.browse',
'swh.web.tests.browse.views', 'swh.web.tests.browse.views.data'],
packages=find_packages(),
scripts=[],
install_requires=parse_requirements(),
setup_requires=['vcversioner'],
......
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
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