Skip to content

Commit

Permalink
Merge paylogic#66: Support for registering custom cache backends
Browse files Browse the repository at this point in the history
See pull request 66 on GitHub:
  paylogic#66
  • Loading branch information
xolox committed Jan 10, 2016
2 parents 5162535 + 3a77ed8 commit ca099ba
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 Peter Odding and Paylogic International
Copyright (c) 2016 Peter Odding and Paylogic International

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ License
This software is licensed under the `MIT license`_ just like pip_ (on which
pip-accel is based).

© 2015 Peter Odding and Paylogic_ International.
© 2016 Peter Odding and Paylogic_ International.


.. External references:
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Accelerator for pip, the Python package manager.
#
# Author: Peter Odding <[email protected]>
# Last Change: November 14, 2015
# Last Change: January 10, 2016
# URL: https://github.com/paylogic/pip-accel

"""Sphinx documentation configuration for the `pip-accel` project."""
Expand Down Expand Up @@ -34,7 +34,7 @@

# General information about the project.
project = u'pip-accel'
copyright = u'2015, Peter Odding and Paylogic International'
copyright = u'2016, Peter Odding and Paylogic International'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
4 changes: 2 additions & 2 deletions pip_accel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Accelerator for pip, the Python package manager.
#
# Author: Peter Odding <[email protected]>
# Last Change: December 28, 2015
# Last Change: January 10, 2016
# URL: https://github.com/paylogic/pip-accel
#
# TODO Permanently store logs in the pip-accel directory (think about log rotation).
Expand Down Expand Up @@ -76,7 +76,7 @@
from pip.exceptions import DistributionNotFound

# Semi-standard module versioning.
__version__ = '0.37.1'
__version__ = '0.38'

# Initialize a logger for this module.
logger = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions pip_accel/caches/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# External dependencies.
from humanfriendly import concatenate, pluralize
from pkg_resources import get_entry_map
from pkg_resources import iter_entry_points

# Initialize a logger for this module.
logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -145,7 +145,7 @@ def __init__(self, config):
object).
"""
self.config = config
for entry_point in get_entry_map('pip-accel', 'pip_accel.cache_backends').values():
for entry_point in iter_entry_points('pip_accel.cache_backends'):
logger.debug("Importing cache backend: %s", entry_point.module_name)
__import__(entry_point.module_name)
# Initialize instances of all registered cache backends (sorted by
Expand Down

0 comments on commit ca099ba

Please sign in to comment.