admin-scripts 0.6.4__tar.gz → 0.6.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/PKG-INFO +1 -1
  2. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/setup.py +1 -1
  3. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/base/encoding.py +1 -1
  4. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/base/join.py +1 -1
  5. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/base/jssource.py +1 -1
  6. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/base/misc.py +1 -1
  7. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/base/pydev.py +1 -1
  8. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/base/pysource.py +1 -1
  9. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/base/stylesheets.py +1 -1
  10. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/base/trailing_spaces.py +1 -1
  11. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/extra/lib.py +12 -1
  12. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts.egg-info/PKG-INFO +1 -1
  13. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/README.md +0 -0
  14. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/setup.cfg +0 -0
  15. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/__init__.py +0 -0
  16. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/base/__init__.py +0 -0
  17. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/base/cleanup.py +0 -0
  18. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/__init__.py +0 -0
  19. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/development/__init__.py +0 -0
  20. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/development/encoding.py +0 -0
  21. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/development/join.py +0 -0
  22. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/development/jssource.py +0 -0
  23. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/development/misc.py +0 -0
  24. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/development/pydev.py +0 -0
  25. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/development/pysource.py +0 -0
  26. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/development/stylesheets.py +0 -0
  27. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/development/trailing_spaces.py +0 -0
  28. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/config/extra/jshint.json +0 -0
  29. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/extra/__init__.py +0 -0
  30. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/extra/css.py +0 -0
  31. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/extra/js.py +0 -0
  32. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/extra/log.py +0 -0
  33. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/extra/shell.py +0 -0
  34. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/test/__init__.py +0 -0
  35. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/test/css.py +0 -0
  36. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts/test/stylesheets.py +0 -0
  37. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts.egg-info/SOURCES.txt +0 -0
  38. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts.egg-info/dependency_links.txt +0 -0
  39. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts.egg-info/entry_points.txt +0 -0
  40. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts.egg-info/not-zip-safe +0 -0
  41. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts.egg-info/requires.txt +0 -0
  42. {admin_scripts-0.6.4 → admin_scripts-0.6.6}/src/admin_scripts.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: admin_scripts
3
- Version: 0.6.4
3
+ Version: 0.6.6
4
4
  Summary: Administration Scripts
5
5
  Home-page: http://admin-scripts.hive.pt
6
6
  Author: Hive Solutions Lda.
@@ -33,7 +33,7 @@ import setuptools
33
33
 
34
34
  setuptools.setup(
35
35
  name="admin_scripts",
36
- version="0.6.4",
36
+ version="0.6.6",
37
37
  author="Hive Solutions Lda.",
38
38
  author_email="development@hive.pt",
39
39
  description="Administration Scripts",
@@ -213,7 +213,7 @@ def convert_encoding_walker(arguments, directory_name, names):
213
213
  # tries to run the handle ignore operation for the current set of names and
214
214
  # in case there's a processing returns the control flow immediately as no
215
215
  # more handling is meant to occur for the current operation (ignored)
216
- if extra.handle_ignore(names):
216
+ if extra.handle_ignore(directory_name, names, token="encoding"):
217
217
  return
218
218
 
219
219
  # removes the complete set of names that are meant to be excluded from the
@@ -310,7 +310,7 @@ def join_files_walker(arguments, directory_name, names):
310
310
  # tries to run the handle ignore operation for the current set of names and
311
311
  # in case there's a processing returns the control flow immediately as no
312
312
  # more handling is meant to occur for the current operation (ignored)
313
- if extra.handle_ignore(names):
313
+ if extra.handle_ignore(directory_name, names, token="join"):
314
314
  return
315
315
 
316
316
  # removes the complete set of names that are meant to be excluded from the
@@ -120,7 +120,7 @@ def jssource_walker(arguments, directory_name, names):
120
120
  # tries to run the handle ignore operation for the current set of names and
121
121
  # in case there's a processing returns the control flow immediately as no
122
122
  # more handling is meant to occur for the current operation (ignored)
123
- if extra.handle_ignore(names):
123
+ if extra.handle_ignore(directory_name, names, token="jssource"):
124
124
  return
125
125
 
126
126
  # removes the complete set of names that are meant to be excluded from the
@@ -105,7 +105,7 @@ def misc_walker(arguments, directory_name, names):
105
105
  # tries to run the handle ignore operation for the current set of names and
106
106
  # in case there's a processing returns the control flow immediately as no
107
107
  # more handling is meant to occur for the current operation (ignored)
108
- if extra.handle_ignore(names):
108
+ if extra.handle_ignore(directory_name, names, token="misc"):
109
109
  return
110
110
 
111
111
  # removes the complete set of names that are meant to be excluded from the
@@ -219,7 +219,7 @@ def pydev_walker(arguments, directory_name, names):
219
219
  # tries to run the handle ignore operation for the current set of names and
220
220
  # in case there's a processing returns the control flow immediately as no
221
221
  # more handling is meant to occur for the current operation (ignored)
222
- if extra.handle_ignore(names):
222
+ if extra.handle_ignore(directory_name, names, token="pydev"):
223
223
  return
224
224
 
225
225
  # removes the complete set of names that are meant to be excluded from the
@@ -110,7 +110,7 @@ def pysource_walker(arguments, directory_name, names):
110
110
  # tries to run the handle ignore operation for the current set of names and
111
111
  # in case there's a processing returns the control flow immediately as no
112
112
  # more handling is meant to occur for the current operation (ignored)
113
- if extra.handle_ignore(names):
113
+ if extra.handle_ignore(directory_name, names, token="pysource"):
114
114
  return
115
115
 
116
116
  # removes the complete set of names that are meant to be excluded from the
@@ -991,7 +991,7 @@ def cleanup_stylesheets_walker(arguments, directory_name, names):
991
991
  # tries to run the handle ignore operation for the current set of names and
992
992
  # in case there's a processing returns the control flow immediately as no
993
993
  # more handling is meant to occur for the current operation (ignored)
994
- if extra.handle_ignore(names):
994
+ if extra.handle_ignore(directory_name, names, token="stylesheets"):
995
995
  return
996
996
 
997
997
  # removes the complete set of names that are meant to be excluded from the
@@ -217,7 +217,7 @@ def remove_trailing_spaces_walker(arguments, directory_name, names):
217
217
  # tries to run the handle ignore operation for the current set of names and
218
218
  # in case there's a processing returns the control flow immediately as no
219
219
  # more handling is meant to occur for the current operation (ignored)
220
- if extra.handle_ignore(names):
220
+ if extra.handle_ignore(directory_name, names, token="trailing_spaces"):
221
221
  return
222
222
 
223
223
  # removes the complete set of names that are meant to be excluded from the
@@ -55,15 +55,20 @@ if a path tree should be ignored and no operation should be
55
55
  performed for any of its children """
56
56
 
57
57
 
58
- def handle_ignore(names):
58
+ def handle_ignore(directory_name, names, token=None):
59
59
  """
60
60
  Tries to handle the ignore operation for the provided
61
61
  set of names, this should include the changing of the
62
62
  names list in case its required.
63
63
 
64
+ :type directory_name: String
65
+ :param directory_name: The name of the current directory in the walk.
64
66
  :type names: List
65
67
  :param names: The list of directory names that are meant
66
68
  to be verified/handled for the ignore file.
69
+ :type token: String
70
+ :param token: The token that is going to be used to determine
71
+ if the ignore operation should be performed.
67
72
  :rtype: bool
68
73
  :return: If the ignore operation has been processed for
69
74
  the current list of names.
@@ -71,6 +76,12 @@ def handle_ignore(names):
71
76
 
72
77
  if not IGNORE_FILE in names:
73
78
  return False
79
+ if (
80
+ token
81
+ and token
82
+ in open(os.path.join(directory_name, IGNORE_FILE), encoding="utf-8").read()
83
+ ):
84
+ return False
74
85
  del names[:]
75
86
  return True
76
87
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: admin-scripts
3
- Version: 0.6.4
3
+ Version: 0.6.6
4
4
  Summary: Administration Scripts
5
5
  Home-page: http://admin-scripts.hive.pt
6
6
  Author: Hive Solutions Lda.
File without changes
File without changes