Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove python3 memcached #2

Merged
merged 4 commits into from
Jan 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@
---
language: python
python:
- 2.6
- 2.7
- pypy
- 3.2
- 3.3
- 3.4
install:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then pip install -r requirements2.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then pip install -r requirements2.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install -r requirements3.txt; fi
- pip install -e .
- pip install -r test-requirements.txt
script: nosetests
after_success:
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 AWeber Communications
Copyright (c) 2014-2018 AWeber Communications
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand All @@ -22,4 +22,4 @@ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5 changes: 4 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
include LICENSE
include README.rst
include requirements.txt
include test-requirements.txt
include dev-requirements.txt
include tests.py
14 changes: 5 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sprockets.clients.memcached
===========================
Memcached client wrapper that is configured via environment variables.

|Version| |Downloads| |Status| |Coverage| |License|
|Version| |Status| |Coverage| |License|

Installation
------------
Expand All @@ -20,8 +20,7 @@ https://sprocketsclientsmemcached.readthedocs.org

Requirements
------------
- `python-memcached <https://pypi.python.org/pypi/python-memcached>`_ (Python 2)
- `python3-memcached <https://pypi.python.org/pypi/python3-memcached>`_ (Python 3)
- `python-memcached <https://pypi.python.org/pypi/python-memcached>`_

Example
-------
Expand All @@ -45,7 +44,7 @@ memcached commands:

Version History
---------------
Available at https://sprocketsclientsmemcached.readthedocs.org/en/latest/history.html
Available at https://sprocketsclientsmemcached.readthedocs.io/en/latest/history.html

.. |Version| image:: https://badge.fury.io/py/sprockets.clients.memcached.svg?
:target: http://badge.fury.io/py/sprockets.clients.memcached
Expand All @@ -56,8 +55,5 @@ Available at https://sprocketsclientsmemcached.readthedocs.org/en/latest/history
.. |Coverage| image:: https://img.shields.io/coveralls/sprockets/sprockets.clients.memcached.svg?
:target: https://coveralls.io/r/sprockets/sprockets.clients.memcached

.. |Downloads| image:: https://pypip.in/d/sprockets.clients.memcached/badge.svg?
:target: https://pypi.python.org/pypi/sprockets.clients.memcached

.. |License| image:: https://pypip.in/license/sprockets.clients.memcached/badge.svg?
:target: https://sprocketsclientsmemcached.readthedocs.org
.. |License| image:: https://img.shields.io/github/license/sprockets/sprockets.clients.memcached.svg
:target: https://sprocketsclientsmemcached.readthedocs.io
2 changes: 0 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Include this version only for documentation building purposes, normally ignored
-e git://github.com/gmr/python-memcached.git@docstring-update#egg=python-memcached
sphinx>=1.2,<2
sphinx-rtd-theme>=0.1,<1.0
sphinxcontrib-httpdomain>=1.2,<2
14 changes: 4 additions & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env python
import sphinx_rtd_theme

from sprockets.clients.memcached import version_info, __version__

needs_sphinx = '1.0'
extensions = [
'sphinx.ext.autodoc',
Expand All @@ -14,15 +12,11 @@
source_suffix = '.rst'
master_doc = 'index'
project = 'sprockets.clients.memcached'
copyright = '2014, AWeber Communications'
version = '.'.join(__version__.split('.')[0:1])
release = __version__
if len(version_info) > 3:
release += '-{0}'.format(str(v) for v in version_info[3:])
copyright = '2014-2018, AWeber Communications'
version = '1.0.1'
release = '1.0'
exclude_patterns = []
pygments_style = 'sphinx'
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
intersphinx_mapping = {
'python': ('https://docs.python.org/2/', None)
}
intersphinx_mapping = {'python': ('https://docs.python.org/2/', None)}
9 changes: 8 additions & 1 deletion docs/history.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
Version History
---------------
- Next Release

- Remove usage of python3-memcached since python-memcached supports
both Python2 & Python3
- Drop support for Python 2.6

- 1.0.0 [2014-09-03]
- Initial release

- Initial release
15 changes: 6 additions & 9 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sprockets.clients.memcached
===========================
Memcached client wrapper that is configured via environment variables

|Version| |Downloads| |Status| |Coverage| |License|
|Version| |Status| |Coverage| |License|

Installation
------------
Expand All @@ -12,12 +12,11 @@ and can be installed via ``pip`` or ``easy_install``:

.. code:: bash

pip install sprockets.clients.memcached
pip install sprockets.clients.memcached

Requirements
------------
- `python-memcached <https://pypi.python.org/pypi/python-memcached>`_ (Python 2)
- `python3-memcached <https://pypi.python.org/pypi/python3-memcached>`_ (Python 3)
- `python-memcached <https://pypi.python.org/pypi/python-memcached>`_

API Documentation
-----------------
Expand All @@ -26,6 +25,7 @@ API Documentation

api
examples
history

Version History
---------------
Expand Down Expand Up @@ -59,8 +59,5 @@ Indices and tables
.. |Coverage| image:: https://img.shields.io/coveralls/sprockets/sprockets.clients.memcached.svg?
:target: https://coveralls.io/r/sprockets/sprockets.clients.memcached

.. |Downloads| image:: https://pypip.in/d/sprockets.clients.memcached/badge.svg?
:target: https://pypi.python.org/pypi/sprockets.clients.memcached

.. |License| image:: https://pypip.in/license/sprockets.clients.memcached/badge.svg?
:target: https://sprocketsclientsmemcached.readthedocs.org
.. |License| image:: https://img.shields.io/github/license/sprockets/sprockets.clients.memcached.svg
:target: https://sprocketsclientsmemcached.readthedocs.io
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-memcached>=1.59,<2
1 change: 0 additions & 1 deletion requirements2.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements3.txt

This file was deleted.

22 changes: 12 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@

import setuptools

install_requires = ['sprockets']

if sys.version_info < (3, 0):
install_requires.append('python-memcached')
if sys.version_info >= (3, 0):
install_requires.append('python3-memcached')
def read_requirements(name):
requirements = []
with open(name) as req_file:
for line in req_file:
if '#' in line:
line = line[:line.index('#')]
requirements.append(line.strip())
return requirements


setuptools.setup(
Expand All @@ -22,13 +25,12 @@
author_email='api@aweber.com',
license=codecs.open('LICENSE', encoding='utf-8').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
Expand All @@ -44,7 +46,7 @@
'sprockets.clients.memcached'],
package_data={'': ['LICENSE', 'README.rst']},
include_package_data=True,
namespace_packages=['sprockets',
'sprockets.clients'],
install_requires=install_requires,
namespace_packages=['sprockets', 'sprockets.clients'],
install_requires=read_requirements('requirements.txt'),
tests_require=read_requirements('test-requirements.txt'),
zip_safe=False)