mirror of
https://github.com/sprockets/sprockets.clients.memcached.git
synced 2024-11-25 03:00:21 +00:00
Remove python3-memcached.
Use python-memcached instead since it now supports python 2 and python 3.
This commit is contained in:
parent
e6b345a1e7
commit
ed51012ee1
6 changed files with 19 additions and 11 deletions
|
@ -1,2 +1,5 @@
|
|||
include LICENSE
|
||||
include README.rst
|
||||
include requirements.txt
|
||||
include test-requirements.txt
|
||||
include dev-requirements.txt
|
||||
include tests.py
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
Version History
|
||||
---------------
|
||||
- Next Release
|
||||
- Remove usage of python3-memcached since python-memcached supports
|
||||
both Python2 & Python3
|
||||
- 1.0.0 [2014-09-03]
|
||||
- Initial release
|
||||
|
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
python-memcached>=1.59,<2
|
|
@ -1 +0,0 @@
|
|||
python-memcached
|
|
@ -1 +0,0 @@
|
|||
python3-memcached
|
19
setup.py
19
setup.py
|
@ -3,12 +3,15 @@ import sys
|
|||
|
||||
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(
|
||||
|
@ -44,7 +47,7 @@ setuptools.setup(
|
|||
'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)
|
||||
|
|
Loading…
Reference in a new issue