mirror of
https://github.com/wassname/cachier.git
synced 2026-08-21 10:21:58 +08:00
77 lines
2.3 KiB
Python
77 lines
2.3 KiB
Python
"""Setup file for the Cachier package."""
|
|
|
|
# This file is part of Cachier.
|
|
# https://github.com/shaypal5/cachier
|
|
|
|
# Licensed under the MIT license:
|
|
# http://www.opensource.org/licenses/MIT-license
|
|
# Copyright (c) 2016, Shay Palachy <shaypal5@gmail.com>
|
|
|
|
try:
|
|
from setuptools import setup
|
|
except ImportError:
|
|
from distutils.core import setup
|
|
|
|
import versioneer
|
|
|
|
|
|
TEST_REQUIRES = [
|
|
# testing and coverage
|
|
'pytest', 'coverage', 'pytest-cov',
|
|
# optional dependencies
|
|
'pymongo',
|
|
# non-testing packages required by tests, not by the package
|
|
'pandas',
|
|
# to be able to run `python setup.py checkdocs`
|
|
'collective.checkdocs', 'pygments',
|
|
]
|
|
|
|
README_RST = ''
|
|
with open('README.rst') as f:
|
|
README_RST = f.read()
|
|
|
|
|
|
setup(
|
|
name='cachier',
|
|
version=versioneer.get_version(),
|
|
cmdclass=versioneer.get_cmdclass(),
|
|
description=('Persistent, stale-free, local and cross-machine caching for'
|
|
' Python functions.'),
|
|
long_description=README_RST,
|
|
license='MIT',
|
|
author='Shay Palachy',
|
|
author_email='shay.palachy@gmail.com',
|
|
url='https://github.com/shaypal5/cachier',
|
|
packages=['cachier'],
|
|
entry_points='''
|
|
[console_scripts]
|
|
cachier=cachier.scripts.cli:cli
|
|
''',
|
|
install_requires=[
|
|
'watchdog', 'portalocker',
|
|
'pathtools', # for watchdog, who has dependency spec problem
|
|
],
|
|
extras_require={
|
|
'test': TEST_REQUIRES,
|
|
},
|
|
platforms=['linux', 'osx', 'windows'],
|
|
keywords=['cache', 'persistence', 'mongo', 'memoization', 'decorator'],
|
|
classifiers=[
|
|
# Trove classifiers
|
|
# (https://pypi.python.org/pypi?%3Aaction=list_classifiers)
|
|
'Development Status :: 4 - Beta',
|
|
'License :: OSI Approved :: MIT License',
|
|
'Programming Language :: Python',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.5',
|
|
'Programming Language :: Python :: 3.6',
|
|
'Programming Language :: Python :: 3.7',
|
|
'Programming Language :: Python :: 3.8',
|
|
'Topic :: Software Development :: Libraries',
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
'Topic :: Utilities',
|
|
'Topic :: Other/Nonlisted Topic',
|
|
'Intended Audience :: Developers',
|
|
],
|
|
)
|