project-stats

keep track of your projects
git clone https://git.ce9e.org/project-stats.git

commit
f81cc5dc02f60a6194167c235d24c67b6dc31785
parent
47c30880d431582af15b8127aa17ed29d26e95b5
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2015-12-17 09:21
rm slow fs based caching

Diffstat

M project_stats.py 4 ----
M setup.py 1 -

2 files changed, 0 insertions, 5 deletions


diff --git a/project_stats.py b/project_stats.py

@@ -13,7 +13,6 @@ import subprocess
   13    13 import sys
   14    14 
   15    15 from dateutil import parser as dt
   16    -1 from filecachetools import ttl_cache
   17    16 import requests
   18    17 import yaml
   19    18 
@@ -140,7 +139,6 @@ class ClaimsDict(object):
  140   139         return '\n'.join(lines)
  141   140 
  142   141 
  143    -1 @ttl_cache('xi-projects-cheesecake', ttl=3600)
  144   142 def cheesecake_index(name):
  145   143     if Cheesecake is not None:
  146   144         # does not seem to be meant to be used as a library
@@ -153,7 +151,6 @@ def cheesecake_index(name):
  153   151         return None
  154   152 
  155   153 
  156    -1 @ttl_cache('xi-projects-bower', ttl=3600)
  157   154 def get_bower_info(name):
  158   155     try:
  159   156         s = subprocess.check_output(['bower', 'info', name])
@@ -174,7 +171,6 @@ def get_bower_info(name):
  174   171     return json.loads(s)
  175   172 
  176   173 
  177    -1 @ttl_cache('xi-projects', ttl=3600)
  178   174 def get_json(url, user=None, password=None):
  179   175     assert not (user is None) ^ (password is None)
  180   176 

diff --git a/setup.py b/setup.py

@@ -21,7 +21,6 @@ setup(
   21    21     py_modules=['project_stats'],
   22    22     install_requires=[
   23    23         'python-dateutil',
   24    -1         'filecachetools>=0.1.0',
   25    24         'requests',
   26    25         'pyyaml',
   27    26     ],