Skip to content

Commit b42c895

Browse files
author
Alice Ferrazzi
committed
global: fixing package with namespace
1 parent 0e3c910 commit b42c895

8 files changed

Lines changed: 32 additions & 8 deletions

File tree

__init__.py

Whitespace-only changes.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
from flask import Flask
99
from flask_restful import Api
10-
from resources import AgentInfo, dispatcher
11-
10+
from elivepatch_server.resources import AgentInfo, dispatcher
1211

1312
def create_app():
1413
"""
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
#
4+
# (c) 2017, Alice Ferrazzi <alice.ferrazzi@gmail.com>
5+
# Distributed under the terms of the GNU General Public License v2 or later
6+
7+
__version__ = '0.0.1'
8+
__author__ = 'Alice Ferrazzi'
9+
__license__ = 'GNU GPLv2+'
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55
# Distributed under the terms of the GNU General Public License v2 or later
66

77

8-
import re
9-
108
import os
9+
import re
1110
import werkzeug
1211
from flask import jsonify, make_response
1312
from flask_restful import Resource, reqparse, fields, marshal
14-
15-
from resources.livepatch import PaTch
13+
from .livepatch import PaTch
1614

1715
pack_fields = {
1816
'KernelVersion': fields.String,

setup.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,27 @@
66
description='Distributed elivepatch server API',
77
url='https://wiki.gentoo.org/wiki/User:Aliceinwire/elivepatch, ' + \
88
'https://github.com/aliceinwire/elivepatch-server',
9+
10+
classifiers=[
11+
'Development Status :: 4 - Beta',
12+
'Environment :: Web Environment',
13+
'Framework :: Flask',
14+
'Intended Audience :: Developers',
15+
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
16+
'Operating System :: OS Independent',
17+
'Programming Language :: Python',
18+
'Programming Language :: Python :: 2.6',
19+
'Programming Language :: Python :: 2.7',
20+
'Programming Language :: Python :: 3',
21+
'Programming Language :: Python :: 3.3',
22+
'Programming Language :: Python :: 3.4',
23+
'Programming Language :: Python :: 3.5',
24+
'Topic :: System :: Operating System Kernels',
25+
],
26+
927
author='Alice Ferrazzi',
1028
author_email='alice.ferrazzi@gmail.com',
1129
license='GNU GPLv2+',
12-
packages=find_packages(),
13-
scripts=['elivepatch-server'],
30+
packages=['elivepatch_server.resources'],
31+
scripts=['elivepatch_server/elivepatch-server'],
1432
)

0 commit comments

Comments
 (0)