1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
# Copyright (c) 2017-2019 David Steele <dsteele@gmail.com>
#
# SPDX-License-Identifier: GPL-2.0-or-later
# License-Filename: LICENSE
#
# Copyright 2016-2017 David Steele <steele@debian.org>
# This file is part of comitup
# Available under the terms of the GNU General Public License version 2
# or later
#
from setuptools import setup
from distutils.command.clean import clean
import os
import shutil
class MyClean(clean):
def run(self):
clean.run(self)
for root, dirs, files in os.walk('.'):
[shutil.rmtree(os.path.join(root, x)) for x in dirs if x in
(".pyc", ".coverage", ".cache", "__pycache__",
"comitup.egg-info")]
for file in files:
for match in (".pyc", ".cache", ".coverage"):
if match in file:
os.unlink(os.path.join(root, file))
setup(
name='comitup',
packages=['comitup', 'web', 'cli'],
version='1.15',
description="Remotely manage wifi connections on a headless computer",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Flask',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved ' +
':: GNU General Public License v2 or later (GPLv2+)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Topic :: System :: Networking',
],
entry_points={
'console_scripts': [
'comitup-cmd=comitup.comitup:main',
'comitup-cli=cli.comitupcli:interpreter',
'comitup-web=web.comitupweb:main',
],
},
options={
'build_scripts': {
'executable': '/usr/bin/python3',
},
},
data_files=[
('/etc', ['conf/comitup.conf']),
('/etc/dbus-1/system.d', ['conf/comitup-dbus.conf']),
('/usr/share/comitup/web/templates',
[
'web/templates/index.html',
'web/templates/connect.html',
'web/templates/confirm.html',
]
), # noqa
('/usr/share/comitup/web/templates/css',
[
'web/templates/css/uikit.css',
'web/templates/css/uikit-rtl.css',
'web/templates/css/uikit.min.css',
'web/templates/css/uikit-rtl.min.css',
]
), # noqa
('/usr/share/comitup/web/templates/js',
[
'web/templates/js/uikit.js',
'web/templates/js/uikit-icons.js',
]
), # noqa
('/usr/share/comitup/dns',
[
'conf/dns-hotspot.conf',
'conf/dns-connected.conf',
]
), # noqa
],
install_requires=[
"jinja2",
"pygobject",
"flask",
"python-networkmanager",
"pycairo",
],
setup_requires=["pytest-runner"],
tests_require=['pytest', 'mock'],
cmdclass={
'clean': MyClean,
},
author="David Steele",
author_email="steele@debian.org",
url='https://davesteele.github.io/comitup/',
)
|