Skip to content

Commit

Permalink
Merge pull request #2 from tobyp/master
Browse files Browse the repository at this point in the history
Fix packaging bugs (relative imports and install_requires)
  • Loading branch information
not-na authored Jul 22, 2019
2 parents 15fab7c + 460a877 commit 2757db1
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion fritzctl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
with ``from ... import *``\ , this means that you can access e.g. :py:class:`fritzctl.session.Session()` as :py:class:`fritzctl.Session()`\ .
"""

from session import *
from .session import *
2 changes: 1 addition & 1 deletion fritzctl/ooapi/avm_homeauto.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import sys

import base
from . import base

STATE2SwStateEnum = {
True:"ON",
Expand Down
2 changes: 1 addition & 1 deletion fritzctl/ooapi/avm_homeplug.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#
#

import base
from . import base

class API_avm_homeplug(base.API_base):
"""
Expand Down
2 changes: 1 addition & 1 deletion fritzctl/ooapi/general_deviceconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import requests
from requests.auth import HTTPDigestAuth

import base
from . import base

class API_general_deviceconfig(base.API_base):
"""
Expand Down
2 changes: 1 addition & 1 deletion fritzctl/ooapi/general_deviceinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

_provisioningpattern = re.compile(r"[0-9]{3}\.[0-9]{3}\.[0-9]{3}\.[0-9]{3}")

import base
from . import base

class API_general_deviceinfo(base.API_base):
"""
Expand Down
2 changes: 1 addition & 1 deletion fritzctl/ooapi/general_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#
#

import base
from . import base

class API_general_hosts(base.API_base):
"""
Expand Down
2 changes: 1 addition & 1 deletion fritzctl/ooapi/general_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#
#

import base
from . import base

class API_general_time(base.API_base):
"""
Expand Down
2 changes: 1 addition & 1 deletion fritzctl/ooapi/net_wlan_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#
#

import base
from . import base

KEYLONG = {
"wep0":"NewWEPKey0",
Expand Down
37 changes: 18 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
# -*- coding: utf-8 -*-
#
# setup.py
#
#
# Copyright 2016 notna <notna@apparat.org>
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
#
#
#

# Distribution command:
# sudo python setup.py install sdist bdist register upload
Expand All @@ -35,55 +35,54 @@
# Fix for very old python versions from https://docs.python.org/2/distutils/setupscript.html#additional-meta-data
# patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords
from sys import version
if version < '2.2.3':
from sys import version_info
if version_info < (2, 2, 3):
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None

try:
longdesc = open("README.txt","r").read()
longdesc = open("README.txt", "r").read()
except IOError:
print("README.txt not found, using description as longdesc instead")
longdesc = "Object oriented TR64 FRITZ!Box Client Library"

setup(name='fritzctl',
version="1.0.0a2",
version="1.0.0a3",
description="Object oriented TR64 FRITZ!Box Client Library",
long_description=longdesc,
author="notna",
author_email="notna@apparat.org",
url="https://pypi.python.org/pypi/fritzctl",
packages=['fritzctl',"fritzctl.ooapi"],
requires=["requests","simpletr64",],
packages=['fritzctl', "fritzctl.ooapi"],
install_requires=["requests", "simpletr64",],
provides=["fritzctl"],
classifiers=[
"Development Status :: 4 - Beta",

"Environment :: MacOS X",
"Environment :: Win32 (MS Windows)",
"Environment :: X11 Applications",

"Intended Audience :: Developers",

"License :: OSI Approved",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",

"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: OS Independent",

"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2 :: Only",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",

"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System",
"Topic :: System :: Networking",
"Topic :: System :: Networking :: Monitoring",

],
)

0 comments on commit 2757db1

Please sign in to comment.