Skip to content

Commit 1431515

Browse files
author
Ammon Smith
authored
Merge pull request #2 from strinking/fix-dependency
Fix dependency issue with __version__
2 parents ae91b0b + 34f4635 commit 1431515

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

duckduckgo/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
#
77
# See LICENSE for terms of usage, modification and redistribution.
88

9-
__version__ = 0.300
10-
119
from .query import query, get_zci
10+
from .version import __version__

duckduckgo/query.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from ratelimit import rate_limited
1414
import aiohttp
1515

16-
from . import __version__
1716
from .models import Results
17+
from .version import __version__
1818

1919
DEFAULT_USER_AGENT = f'python-duckduckgo {__version__}'
2020
DEFAULT_PRIORITIES = ('answer', 'abstract', 'related.0', 'definition')

duckduckgo/version.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# duckduckgo.py - Library for querying the DuckDuckGo API
2+
#
3+
# Copyright (c) 2010 Michael Stephens <me@mikej.st>
4+
# Copyright (c) 2012-2013 Michael Smith <crazedpsyc@gshellz.org>
5+
# Copyright (c) 2017 Members of the Programming Server
6+
#
7+
# See LICENSE for terms of usage, modification and redistribution.
8+
9+
__version__ = 0.300

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from setuptools import setup
2-
from duckduckgo import __version__
2+
from duckduckgo.version import __version__
33

44
with open('README.rst') as f:
55
long_description = f.read()

0 commit comments

Comments
 (0)