setup: split web part
This commit is contained in:
parent
5dc5751432
commit
e99737131d
50
setup.py
50
setup.py
@ -63,34 +63,14 @@ class set_version(Command):
|
||||
python_re = r'(?<=^__version__ = )' + quote + '[^\'"]*' + quote
|
||||
sub(python_scripts, python_re)
|
||||
|
||||
|
||||
packages = [
|
||||
str('.'.join(root.split(os.sep)[1:]))
|
||||
for root, dirs, files in os.walk('pym/euscan')
|
||||
if '__init__.py' in files
|
||||
]
|
||||
|
||||
tests_require = [
|
||||
'factory-boy>=1.1.3',
|
||||
]
|
||||
|
||||
setup(
|
||||
name='euscan',
|
||||
version=__version__,
|
||||
description='Ebuild upstream scan utility.',
|
||||
long_description=open(join(dirname(__file__), 'README.rst')).read(),
|
||||
author='Corentin Chary',
|
||||
author_email='corentin.chary@gmail.com',
|
||||
maintainer='Corentin Chary',
|
||||
maintainer_email='corentin.chary@gmail.com',
|
||||
url='http://euscan.iksaif.net',
|
||||
download_url=(
|
||||
'https://github.com/iksaif/euscan/tarball/' +
|
||||
('master' if __version__ == '9999' else ('euscan-%s' % __version__))
|
||||
),
|
||||
install_requires=[
|
||||
# Command line utility
|
||||
'beautifulsoup4>=4.8.2',
|
||||
# Web interface
|
||||
web_require = [
|
||||
'Django>=1.4',
|
||||
'South>=0.7',
|
||||
'ansi2html>=0.9.1',
|
||||
@ -102,6 +82,27 @@ setup(
|
||||
'django-registration>=0.8',
|
||||
'matplotlib>=1.1.0',
|
||||
'python-ldap>=2.4.10',
|
||||
]
|
||||
|
||||
tests_require = [
|
||||
'factory-boy>=1.1.3',
|
||||
]
|
||||
|
||||
setup(
|
||||
name='euscan',
|
||||
version=__version__,
|
||||
description='Ebuild upstream scan utility.',
|
||||
long_description=open(join(dirname(__file__), 'README.rst')).read(),
|
||||
author='src_prepare',
|
||||
maintainer='src_prepare',
|
||||
url='https://gitlab.com/src_prepare/euscan-ng',
|
||||
download_url=(
|
||||
'https://github.com/iksaif/euscan/tarball/' +
|
||||
('master' if __version__ == '9999' else ('euscan-%s' % __version__))
|
||||
),
|
||||
install_requires=[
|
||||
# Command line utility
|
||||
'beautifulsoup4>=4.8.2',
|
||||
],
|
||||
package_dir={'': 'pym'},
|
||||
packages=packages,
|
||||
@ -116,6 +117,9 @@ setup(
|
||||
'set_version': set_version,
|
||||
},
|
||||
tests_require=tests_require,
|
||||
extras_require={'test': tests_require},
|
||||
extras_require={
|
||||
'test': tests_require,
|
||||
'web': web_require
|
||||
},
|
||||
test_suite='euscanwww.runtests.runtests',
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user