setup: split web part

This commit is contained in:
Maciej Barć 2020-09-11 21:41:20 +02:00
parent 5dc5751432
commit e99737131d
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A

View File

@ -63,14 +63,29 @@ class set_version(Command):
python_re = r'(?<=^__version__ = )' + quote + '[^\'"]*' + quote python_re = r'(?<=^__version__ = )' + quote + '[^\'"]*' + quote
sub(python_scripts, python_re) sub(python_scripts, python_re)
packages = [ packages = [
str('.'.join(root.split(os.sep)[1:])) str('.'.join(root.split(os.sep)[1:]))
for root, dirs, files in os.walk('pym/euscan') for root, dirs, files in os.walk('pym/euscan')
if '__init__.py' in files if '__init__.py' in files
] ]
web_require = [
'Django>=1.4',
'South>=0.7',
'ansi2html>=0.9.1',
'django-annoying>=0.7.6',
'django-auth-ldap>=1.1',
'django-celery>=3.0.1',
'django-piston>=0.2.3',
'django-recaptcha>=0.0.4',
'django-registration>=0.8',
'matplotlib>=1.1.0',
'python-ldap>=2.4.10',
]
tests_require = [ tests_require = [
'factory-boy>=1.1.3', 'factory-boy>=1.1.3',
] ]
setup( setup(
@ -78,11 +93,9 @@ setup(
version=__version__, version=__version__,
description='Ebuild upstream scan utility.', description='Ebuild upstream scan utility.',
long_description=open(join(dirname(__file__), 'README.rst')).read(), long_description=open(join(dirname(__file__), 'README.rst')).read(),
author='Corentin Chary', author='src_prepare',
author_email='corentin.chary@gmail.com', maintainer='src_prepare',
maintainer='Corentin Chary', url='https://gitlab.com/src_prepare/euscan-ng',
maintainer_email='corentin.chary@gmail.com',
url='http://euscan.iksaif.net',
download_url=( download_url=(
'https://github.com/iksaif/euscan/tarball/' + 'https://github.com/iksaif/euscan/tarball/' +
('master' if __version__ == '9999' else ('euscan-%s' % __version__)) ('master' if __version__ == '9999' else ('euscan-%s' % __version__))
@ -90,18 +103,6 @@ setup(
install_requires=[ install_requires=[
# Command line utility # Command line utility
'beautifulsoup4>=4.8.2', 'beautifulsoup4>=4.8.2',
# Web interface
'Django>=1.4',
'South>=0.7',
'ansi2html>=0.9.1',
'django-annoying>=0.7.6',
'django-auth-ldap>=1.1',
'django-celery>=3.0.1',
'django-piston>=0.2.3',
'django-recaptcha>=0.0.4',
'django-registration>=0.8',
'matplotlib>=1.1.0',
'python-ldap>=2.4.10',
], ],
package_dir={'': 'pym'}, package_dir={'': 'pym'},
packages=packages, packages=packages,
@ -116,6 +117,9 @@ setup(
'set_version': set_version, 'set_version': set_version,
}, },
tests_require=tests_require, tests_require=tests_require,
extras_require={'test': tests_require}, extras_require={
'test': tests_require,
'web': web_require
},
test_suite='euscanwww.runtests.runtests', test_suite='euscanwww.runtests.runtests',
) )