Skip to content

Commit

Permalink
Fixed import issue with __version__. Thank you @meshy and @longjos fo…
Browse files Browse the repository at this point in the history
…r identifying the problem.
  • Loading branch information
Daniel Greenfeld committed Mar 2, 2015
1 parent 5c93e1a commit b232bc2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
History
-------

3.0.3 (2014-03-02)
------------------

* Fixed import issue with ``__version__``. Thank you @meshy and @longjos for identifying the problem.
*

3.0.2 (2014-01-30)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

# General information about the project.
project = u'eventbrite-sdk-python'
copyright = u'2014, Eventbrite'
copyright = u'2015, Eventbrite'

# The version info for the project you're documenting, acts as replacement
# for |version| and |release|, also used in various other places throughout
Expand Down
3 changes: 1 addition & 2 deletions eventbrite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

__author__ = 'Daniel Greenfeld'
__email__ = '[email protected]'

from ._version import __version__
__version__ = '3.0.3'


from .client import Eventbrite
Expand Down
4 changes: 0 additions & 4 deletions eventbrite/_version.py

This file was deleted.

1 change: 0 additions & 1 deletion eventbrite/access_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def get_event(self, id, **data):
"""

return self.get("/events/{0}/".format(id), data=data)

def get_event_ticket_classes(self, id, **data):
Expand Down
4 changes: 2 additions & 2 deletions eventbrite/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
InvalidWebhook,
InternetConnectionError
)
from . import __version__
from .models import EventbriteObject
from .utils import (
format_path,
construct_namespaced_dict,
get_webhook_from_request,
EVENTBRITE_API_URL
)
from . import _version


class Eventbrite(AccessMethodsMixin):
Expand All @@ -37,7 +37,7 @@ def headers(self):
"Authorization": "Bearer {0}".format(self.oauth_token),
"content-type": "application/json",
"User-Agent": "eventbrite-python-sdk {version} ({system})".format(
version=_version.__version__,
version=__version__,
system=platform(),
)
}
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
except ImportError:
from distutils.core import setup

from eventbrite import __version__

version = __version__
__version__ = '3.0.3'

if sys.argv[-1] == 'tag':
os.system("git tag -a %s -m 'version %s'" % (version, version))
Expand Down Expand Up @@ -55,6 +53,8 @@
keywords='eventbrite',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Framework :: Flask',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
Expand Down

0 comments on commit b232bc2

Please sign in to comment.