Browse Source

Minor fixes

master
Majeri Kasmaei Chervine 8 years ago
parent
commit
a146b14b60
  1. 30
      client/client_test.go
  2. 10
      client/common.go
  3. 4
      client/realms.go
  4. 4
      utils/.idea/misc.xml
  5. 8
      utils/.idea/modules.xml
  6. 11
      utils/.idea/utils.iml
  7. 313
      utils/.idea/workspace.xml
  8. 78
      utils/bin/activate
  9. 36
      utils/bin/activate.csh
  10. 76
      utils/bin/activate.fish
  11. 34
      utils/bin/activate_this.py
  12. 11
      utils/bin/chardetect
  13. 11
      utils/bin/easy_install
  14. 11
      utils/bin/easy_install-3.5
  15. 11
      utils/bin/pip
  16. 11
      utils/bin/pip3
  17. 11
      utils/bin/pip3.5
  18. 1
      utils/bin/python
  19. 78
      utils/bin/python-config
  20. BIN
      utils/bin/python3
  21. 1
      utils/bin/python3.5
  22. 11
      utils/bin/wheel
  23. 91
      utils/file_parser.py
  24. 38
      utils/html_parser.py
  25. 1
      utils/include/python3.5m
  26. 1
      utils/lib/python3.5/__future__.py
  27. BIN
      utils/lib/python3.5/__pycache__/__future__.cpython-35.pyc
  28. BIN
      utils/lib/python3.5/__pycache__/_bootlocale.cpython-35.pyc
  29. BIN
      utils/lib/python3.5/__pycache__/_collections_abc.cpython-35.pyc
  30. BIN
      utils/lib/python3.5/__pycache__/_weakrefset.cpython-35.pyc
  31. BIN
      utils/lib/python3.5/__pycache__/abc.cpython-35.pyc
  32. BIN
      utils/lib/python3.5/__pycache__/base64.cpython-35.pyc
  33. BIN
      utils/lib/python3.5/__pycache__/bisect.cpython-35.pyc
  34. BIN
      utils/lib/python3.5/__pycache__/codecs.cpython-35.pyc
  35. BIN
      utils/lib/python3.5/__pycache__/copy.cpython-35.pyc
  36. BIN
      utils/lib/python3.5/__pycache__/copyreg.cpython-35.pyc
  37. BIN
      utils/lib/python3.5/__pycache__/fnmatch.cpython-35.pyc
  38. BIN
      utils/lib/python3.5/__pycache__/functools.cpython-35.pyc
  39. BIN
      utils/lib/python3.5/__pycache__/genericpath.cpython-35.pyc
  40. BIN
      utils/lib/python3.5/__pycache__/hashlib.cpython-35.pyc
  41. BIN
      utils/lib/python3.5/__pycache__/heapq.cpython-35.pyc
  42. BIN
      utils/lib/python3.5/__pycache__/hmac.cpython-35.pyc
  43. BIN
      utils/lib/python3.5/__pycache__/imp.cpython-35.pyc
  44. BIN
      utils/lib/python3.5/__pycache__/io.cpython-35.pyc
  45. BIN
      utils/lib/python3.5/__pycache__/keyword.cpython-35.pyc
  46. BIN
      utils/lib/python3.5/__pycache__/linecache.cpython-35.pyc
  47. BIN
      utils/lib/python3.5/__pycache__/locale.cpython-35.pyc
  48. BIN
      utils/lib/python3.5/__pycache__/operator.cpython-35.pyc
  49. BIN
      utils/lib/python3.5/__pycache__/os.cpython-35.pyc
  50. BIN
      utils/lib/python3.5/__pycache__/posixpath.cpython-35.pyc
  51. BIN
      utils/lib/python3.5/__pycache__/random.cpython-35.pyc
  52. BIN
      utils/lib/python3.5/__pycache__/re.cpython-35.pyc
  53. BIN
      utils/lib/python3.5/__pycache__/reprlib.cpython-35.pyc
  54. BIN
      utils/lib/python3.5/__pycache__/shutil.cpython-35.pyc
  55. BIN
      utils/lib/python3.5/__pycache__/site.cpython-35.pyc
  56. BIN
      utils/lib/python3.5/__pycache__/sre_compile.cpython-35.pyc
  57. BIN
      utils/lib/python3.5/__pycache__/sre_constants.cpython-35.pyc
  58. BIN
      utils/lib/python3.5/__pycache__/sre_parse.cpython-35.pyc
  59. BIN
      utils/lib/python3.5/__pycache__/stat.cpython-35.pyc
  60. BIN
      utils/lib/python3.5/__pycache__/struct.cpython-35.pyc
  61. BIN
      utils/lib/python3.5/__pycache__/tarfile.cpython-35.pyc
  62. BIN
      utils/lib/python3.5/__pycache__/tempfile.cpython-35.pyc
  63. BIN
      utils/lib/python3.5/__pycache__/token.cpython-35.pyc
  64. BIN
      utils/lib/python3.5/__pycache__/tokenize.cpython-35.pyc
  65. BIN
      utils/lib/python3.5/__pycache__/types.cpython-35.pyc
  66. BIN
      utils/lib/python3.5/__pycache__/warnings.cpython-35.pyc
  67. BIN
      utils/lib/python3.5/__pycache__/weakref.cpython-35.pyc
  68. 1
      utils/lib/python3.5/_bootlocale.py
  69. 1
      utils/lib/python3.5/_collections_abc.py
  70. 1
      utils/lib/python3.5/_dummy_thread.py
  71. 1
      utils/lib/python3.5/_weakrefset.py
  72. 1
      utils/lib/python3.5/abc.py
  73. 1
      utils/lib/python3.5/base64.py
  74. 1
      utils/lib/python3.5/bisect.py
  75. 1
      utils/lib/python3.5/codecs.py
  76. 1
      utils/lib/python3.5/collections
  77. 1
      utils/lib/python3.5/config-3.5m
  78. 1
      utils/lib/python3.5/copy.py
  79. 1
      utils/lib/python3.5/copyreg.py
  80. 101
      utils/lib/python3.5/distutils/__init__.py
  81. BIN
      utils/lib/python3.5/distutils/__pycache__/__init__.cpython-35.pyc
  82. 6
      utils/lib/python3.5/distutils/distutils.cfg
  83. 1
      utils/lib/python3.5/encodings
  84. 1
      utils/lib/python3.5/fnmatch.py
  85. 1
      utils/lib/python3.5/functools.py
  86. 1
      utils/lib/python3.5/genericpath.py
  87. 1
      utils/lib/python3.5/hashlib.py
  88. 1
      utils/lib/python3.5/heapq.py
  89. 1
      utils/lib/python3.5/hmac.py
  90. 1
      utils/lib/python3.5/imp.py
  91. 1
      utils/lib/python3.5/importlib
  92. 1
      utils/lib/python3.5/io.py
  93. 1
      utils/lib/python3.5/keyword.py
  94. 1
      utils/lib/python3.5/lib-dynload
  95. 1
      utils/lib/python3.5/linecache.py
  96. 1
      utils/lib/python3.5/locale.py
  97. 0
      utils/lib/python3.5/no-global-site-packages.txt
  98. 1
      utils/lib/python3.5/ntpath.py
  99. 1
      utils/lib/python3.5/operator.py
  100. 1
      utils/lib/python3.5/orig-prefix.txt

30
client/client_test.go

@ -5,37 +5,11 @@ import (
"time"
"github.com/stretchr/testify/require"
"fmt"
"crypto/cipher"
"crypto/aes"
)
type setivable interface {
cipher.BlockMode
SetIV([]byte)
}
func Test_Poop(t *testing.T) {
var k []byte = make([]byte, 16)
var iv []byte = k
b, e := aes.NewCipher(k)
if e != nil {
fmt.Println(e)
return
}
var c = cipher.NewCBCEncrypter(b, iv)
switch cp := c.(type) {
case setivable:
fmt.Println("Haha!")
cp.SetIV(k)
case cipher.BlockMode:
fmt.Println("Hoho!")
}
}
func initTest(t *testing.T) Client {
var config HttpConfig = HttpConfig{
Addr: "http://127.0.0.1:8080",
Addr: "http://172.17.0.2:8080",
Username: "admin",
Password: "admin",
Timeout: time.Second * 5,
@ -59,7 +33,7 @@ func TestClient_getToken(t *testing.T) {
func TestClient_GetRealms(t *testing.T) {
var client Client = initTest(t)
var realms []map[string]interface{}
var realms []RealmRepresentation
{
var err error
realms, err = client.GetRealms()

10
client/common.go

@ -7,13 +7,14 @@ import (
"time"
"net/http"
"gopkg.in/h2non/gentleman.v2"
"gopkg.in/h2non/gentleman.v2/plugin"
"gopkg.in/h2non/gentleman.v2/plugins/timeout"
//"gopkg.in/h2non/gentleman.v2/plugins/multipart"
)
type Client interface {
GetRealms() ([]map[string]interface{}, error)
GetRealms() ([]RealmRepresentation, error)
GetUsers(realm string) ([]UserRepresentation, error)
}
@ -43,7 +44,7 @@ func NewHttpClient(config HttpConfig) (Client, error) {
}
if u.Scheme != "http" {
var m string = fmt.Sprint("Unsupported protocol %s. Your address must start with http://", u.Scheme)
var m string = fmt.Sprintf("Unsupported protocol %s. Your address must start with http://", u.Scheme)
return nil, errors.New(m)
}
@ -112,11 +113,14 @@ func (c *client) getToken() error {
return nil
}
func (c *client) do(path string) (*gentleman.Response, error) {
func (c *client) do(path string, plugins ...plugin.Plugin) (*gentleman.Response, error) {
var req *gentleman.Request = c.httpClient.Get()
{
req = req.Path(path)
req = req.SetHeader("Authorization", fmt.Sprintf("Bearer %s", c.accessToken))
for _, p := range plugins {
req = req.Use(p)
}
}
var resp *gentleman.Response
{

4
client/realms.go

@ -7,7 +7,7 @@ import (
"encoding/json"
)
func (c *client) GetRealms() ([]map[string]interface{}, error) {
func (c *client) GetRealms() ([]RealmRepresentation, error) {
var getRealms_Path string = "/auth/admin/realms"
var resp *gentleman.Response
{
@ -17,7 +17,7 @@ func (c *client) GetRealms() ([]map[string]interface{}, error) {
return nil, errors.Wrap(err, "Get Realms failed.")
}
}
var result []map[string]interface{}
var result []RealmRepresentation
{
var err error
err = json.Unmarshal(resp.Bytes(), &result)

4
utils/.idea/misc.xml

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.5.3 virtualenv at ~/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils" project-jdk-type="Python SDK" />
</project>

8
utils/.idea/modules.xml

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/utils.iml" filepath="$PROJECT_DIR$/.idea/utils.iml" />
</modules>
</component>
</project>

11
utils/.idea/utils.iml

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.5.3 virtualenv at ~/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>

313
utils/.idea/workspace.xml

@ -1,313 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="4beebe65-bbd6-42c2-bc02-1c9632811740" name="Default" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="file_parser.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/file_parser.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="301">
<caret line="68" column="26" lean-forward="false" selection-start-line="68" selection-start-column="26" selection-end-line="68" selection-end-column="26" />
<folding>
<element signature="e#24#34#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="html_parser.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/html_parser.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="152">
<caret line="23" column="21" lean-forward="true" selection-start-line="23" selection-start-column="21" selection-end-line="23" selection-end-column="21" />
<folding>
<element signature="e#24#53#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Python Script" />
</list>
</option>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>print</find>
</findStrings>
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/htmlParser.py" />
<option value="$PROJECT_DIR$/html_parser.py" />
<option value="$PROJECT_DIR$/file_parser.py" />
</list>
</option>
</component>
<component name="ProjectFrameBounds">
<option name="y" value="27" />
<option name="width" value="1920" />
<option name="height" value="1053" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
<manualOrder />
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="utils" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="utils" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
<pane id="Scratches" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="last_opened_file_path" value="$PROJECT_DIR$/bin/python3" />
<property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager" selected="Python.html_parser">
<configuration default="false" name="html_parser" type="PythonConfigurationType" factoryName="Python" temporary="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="utils" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/html_parser.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<method />
</configuration>
<configuration default="true" type="PythonConfigurationType" factoryName="Python">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="utils" />
<option name="SCRIPT_NAME" value="" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<method />
</configuration>
<configuration default="true" type="Tox" factoryName="Tox">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs />
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="utils" />
<method />
</configuration>
<configuration default="true" type="tests" factoryName="Doctests">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs />
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="utils" />
<option name="SCRIPT_NAME" value="" />
<option name="CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="FOLDER_NAME" value="" />
<option name="TEST_TYPE" value="TEST_SCRIPT" />
<option name="PATTERN" value="" />
<option name="USE_PATTERN" value="false" />
<method />
</configuration>
<configuration default="true" type="tests" factoryName="Unittests">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs />
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="utils" />
<option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_target" value="&quot;.&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" />
<method />
</configuration>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="Python.html_parser" />
</list>
<recent_temporary>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="Python.html_parser" />
</list>
</recent_temporary>
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="4beebe65-bbd6-42c2-bc02-1c9632811740" name="Default" comment="" />
<created>1500550169408</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1500550169408</updated>
</task>
<servers />
</component>
<component name="ToolWindowManager">
<frame x="0" y="27" width="1920" height="1053" extended-state="6" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3290735" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Data View" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/file_parser.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="920">
<caret line="46" column="29" lean-forward="false" selection-start-line="46" selection-start-column="29" selection-end-line="46" selection-end-column="29" />
<folding>
<element signature="e#24#34#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/html_parser.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="580">
<caret line="30" column="42" lean-forward="true" selection-start-line="30" selection-start-column="42" selection-end-line="30" selection-end-column="42" />
<folding>
<element signature="e#24#53#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/file_parser.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="420">
<caret line="21" column="27" lean-forward="false" selection-start-line="21" selection-start-column="27" selection-end-line="21" selection-end-column="27" />
<folding>
<element signature="e#24#34#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/html_parser.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="3" column="0" lean-forward="false" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
<folding>
<element signature="e#24#53#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/html_parser.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="152">
<caret line="23" column="21" lean-forward="true" selection-start-line="23" selection-start-column="21" selection-end-line="23" selection-end-column="21" />
<folding>
<element signature="e#24#53#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/file_parser.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="301">
<caret line="68" column="26" lean-forward="false" selection-start-line="68" selection-start-column="26" selection-end-line="68" selection-end-column="26" />
<folding>
<element signature="e#24#34#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component>
</project>

78
utils/bin/activate

@ -1,78 +0,0 @@
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly
deactivate () {
unset -f pydoc >/dev/null 2>&1
# reset old environment variables
# ! [ -z ${VAR+_} ] returns true if VAR is declared at all
if ! [ -z "${_OLD_VIRTUAL_PATH+_}" ] ; then
PATH="$_OLD_VIRTUAL_PATH"
export PATH
unset _OLD_VIRTUAL_PATH
fi
if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then
PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
export PYTHONHOME
unset _OLD_VIRTUAL_PYTHONHOME
fi
# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
hash -r 2>/dev/null
fi
if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then
PS1="$_OLD_VIRTUAL_PS1"
export PS1
unset _OLD_VIRTUAL_PS1
fi
unset VIRTUAL_ENV
if [ ! "${1-}" = "nondestructive" ] ; then
# Self destruct!
unset -f deactivate
fi
}
# unset irrelevant variables
deactivate nondestructive
VIRTUAL_ENV="/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils"
export VIRTUAL_ENV
_OLD_VIRTUAL_PATH="$PATH"
PATH="$VIRTUAL_ENV/bin:$PATH"
export PATH
# unset PYTHONHOME if set
if ! [ -z "${PYTHONHOME+_}" ] ; then
_OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
unset PYTHONHOME
fi
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
_OLD_VIRTUAL_PS1="$PS1"
if [ "x" != x ] ; then
PS1="$PS1"
else
PS1="(`basename \"$VIRTUAL_ENV\"`) $PS1"
fi
export PS1
fi
# Make sure to unalias pydoc if it's already there
alias pydoc 2>/dev/null >/dev/null && unalias pydoc
pydoc () {
python -m pydoc "$@"
}
# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
hash -r 2>/dev/null
fi

36
utils/bin/activate.csh

@ -1,36 +0,0 @@
# This file must be used with "source bin/activate.csh" *from csh*.
# You cannot run it directly.
# Created by Davide Di Blasi <davidedb@gmail.com>.
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
# Unset irrelevant variables.
deactivate nondestructive
setenv VIRTUAL_ENV "/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils"
set _OLD_VIRTUAL_PATH="$PATH"
setenv PATH "$VIRTUAL_ENV/bin:$PATH"
if ("" != "") then
set env_name = ""
else
set env_name = `basename "$VIRTUAL_ENV"`
endif
# Could be in a non-interactive environment,
# in which case, $prompt is undefined and we wouldn't
# care about the prompt anyway.
if ( $?prompt ) then
set _OLD_VIRTUAL_PROMPT="$prompt"
set prompt = "[$env_name] $prompt"
endif
unset env_name
alias pydoc python -m pydoc
rehash

76
utils/bin/activate.fish

@ -1,76 +0,0 @@
# This file must be used using `. bin/activate.fish` *within a running fish ( http://fishshell.com ) session*.
# Do not run it directly.
function deactivate -d 'Exit virtualenv mode and return to the normal environment.'
# reset old environment variables
if test -n "$_OLD_VIRTUAL_PATH"
set -gx PATH $_OLD_VIRTUAL_PATH
set -e _OLD_VIRTUAL_PATH
end
if test -n "$_OLD_VIRTUAL_PYTHONHOME"
set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
set -e _OLD_VIRTUAL_PYTHONHOME
end
if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
# Set an empty local `$fish_function_path` to allow the removal of `fish_prompt` using `functions -e`.
set -l fish_function_path
# Erase virtualenv's `fish_prompt` and restore the original.
functions -e fish_prompt
functions -c _old_fish_prompt fish_prompt
functions -e _old_fish_prompt
set -e _OLD_FISH_PROMPT_OVERRIDE
end
set -e VIRTUAL_ENV
if test "$argv[1]" != 'nondestructive'
# Self-destruct!
functions -e pydoc
functions -e deactivate
end
end
# Unset irrelevant variables.
deactivate nondestructive
set -gx VIRTUAL_ENV "/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils"
set -gx _OLD_VIRTUAL_PATH $PATH
set -gx PATH "$VIRTUAL_ENV/bin" $PATH
# Unset `$PYTHONHOME` if set.
if set -q PYTHONHOME
set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
set -e PYTHONHOME
end
function pydoc
python -m pydoc $argv
end
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
# Copy the current `fish_prompt` function as `_old_fish_prompt`.
functions -c fish_prompt _old_fish_prompt
function fish_prompt
# Save the current $status, for fish_prompts that display it.
set -l old_status $status
# Prompt override provided?
# If not, just prepend the environment name.
if test -n ""
printf '%s%s' "" (set_color normal)
else
printf '%s(%s) ' (set_color normal) (basename "$VIRTUAL_ENV")
end
# Restore the original $status
echo "exit $old_status" | source
_old_fish_prompt
end
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
end

34
utils/bin/activate_this.py

@ -1,34 +0,0 @@
"""By using execfile(this_file, dict(__file__=this_file)) you will
activate this virtualenv environment.
This can be used when you must use an existing Python interpreter, not
the virtualenv bin/python
"""
try:
__file__
except NameError:
raise AssertionError(
"You must run this like execfile('path/to/activate_this.py', dict(__file__='path/to/activate_this.py'))")
import sys
import os
old_os_path = os.environ.get('PATH', '')
os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + old_os_path
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if sys.platform == 'win32':
site_packages = os.path.join(base, 'Lib', 'site-packages')
else:
site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages')
prev_sys_path = list(sys.path)
import site
site.addsitedir(site_packages)
sys.real_prefix = sys.prefix
sys.prefix = base
# Move the added items to the front of the path:
new_sys_path = []
for item in list(sys.path):
if item not in prev_sys_path:
new_sys_path.append(item)
sys.path.remove(item)
sys.path[:0] = new_sys_path

11
utils/bin/chardetect

@ -1,11 +0,0 @@
#!/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
utils/bin/easy_install

@ -1,11 +0,0 @@
#!/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
utils/bin/easy_install-3.5

@ -1,11 +0,0 @@
#!/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
utils/bin/pip

@ -1,11 +0,0 @@
#!/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
utils/bin/pip3

@ -1,11 +0,0 @@
#!/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
utils/bin/pip3.5

@ -1,11 +0,0 @@
#!/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

1
utils/bin/python

@ -1 +0,0 @@
python3

78
utils/bin/python-config

@ -1,78 +0,0 @@
#!/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info >= (3, 3):
valid_opts.append('configdir')
def exit_with_usage(code=1):
sys.stderr.write("Usage: {0} [{1}]\n".format(
sys.argv[0], '|'.join('--'+opt for opt in valid_opts)))
sys.exit(code)
try:
opts, args = getopt.getopt(sys.argv[1:], '', valid_opts)
except getopt.error:
exit_with_usage()
if not opts:
exit_with_usage()
pyver = sysconfig.get_config_var('VERSION')
getvar = sysconfig.get_config_var
opt_flags = [flag for (flag, val) in opts]
if '--help' in opt_flags:
exit_with_usage(code=0)
for opt in opt_flags:
if opt == '--prefix':
print(sysconfig.get_config_var('prefix'))
elif opt == '--exec-prefix':
print(sysconfig.get_config_var('exec_prefix'))
elif opt in ('--includes', '--cflags'):
flags = ['-I' + sysconfig.get_path('include'),
'-I' + sysconfig.get_path('platinclude')]
if opt == '--cflags':
flags.extend(getvar('CFLAGS').split())
print(' '.join(flags))
elif opt in ('--libs', '--ldflags'):
abiflags = getattr(sys, 'abiflags', '')
libs = ['-lpython' + pyver + abiflags]
libs += getvar('LIBS').split()
libs += getvar('SYSLIBS').split()
# add the prefix/lib/pythonX.Y/config dir, but only if there is no
# shared library in prefix/lib/.
if opt == '--ldflags':
if not getvar('Py_ENABLE_SHARED'):
libs.insert(0, '-L' + getvar('LIBPL'))
if not getvar('PYTHONFRAMEWORK'):
libs.extend(getvar('LINKFORSHARED').split())
print(' '.join(libs))
elif opt == '--extension-suffix':
ext_suffix = sysconfig.get_config_var('EXT_SUFFIX')
if ext_suffix is None:
ext_suffix = sysconfig.get_config_var('SO')
print(ext_suffix)
elif opt == '--abiflags':
if not getattr(sys, 'abiflags', None):
exit_with_usage()
print(sys.abiflags)
elif opt == '--configdir':
print(sysconfig.get_config_var('LIBPL'))

BIN
utils/bin/python3

Binary file not shown.

1
utils/bin/python3.5

@ -1 +0,0 @@
python3

11
utils/bin/wheel

@ -1,11 +0,0 @@
#!/root/cloudtrust/go/src/github.com/elca-kairos-py/keycloak/utils/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

91
utils/file_parser.py

@ -1,91 +0,0 @@
#!/usr/bin/env python3
import sys
import re
#Parameter required or optional
OPT_TOKEN = 'optional'
REQ_TOKEN = 'required'
REQ_TOKENS = set([OPT_TOKEN,REQ_TOKEN])
#Direct Type tokens (directly mapped to golang)
DIRECT_INT_TYPE_TOKENS = set(['int16','int32','int64'])
#Typed Arrays
STL_OPEN_TOKEN = '<'
STL_CLOSE_TOKEN = '>'
ARRAY_TOKEN = 'array'
#Type tokens
MAP_TYPE_TOKEN = 'Map'
INT_TYPE_TOKEN = 'integer'
BOOL_TYPE_TOKEN = 'boolean'
STRING_TYPE_TOKEN = 'string'
ENUM_TYPE_TOKEN = 'enum'
TYPE_TOKENS = set([MAP_TYPE_TOKEN,INT_TYPE_TOKEN,BOOL_TYPE_TOKEN,STRING_TYPE_TOKEN, ENUM_TYPE_TOKEN])
MAP_TOKEN_TO_GO = {
MAP_TYPE_TOKEN:"map[string]interface{}",
BOOL_TYPE_TOKEN:"bool",
STRING_TYPE_TOKEN:"string",
ENUM_TYPE_TOKEN:"string",
}
def panic(*args):
eprint(*args)
sys.exit(1)
def eprint(*args):
print(*args, file=sys.stderr)
def to_go_array(go_type):
return "[]%s" % go_type
def is_req(split_line):
req = split_line.pop(0)
if req not in REQ_TOKENS:
panic("Token %s does not match requirement tokens" % req)
if req == REQ_TOKEN:
return True
return False
def get_type(split_line):
token = split_line.pop(0)
if token in TYPE_TOKENS:
if token == INT_TYPE_TOKEN:
token = split_line.pop()
if token not in DIRECT_INT_TYPE_TOKENS:
panic("%s is wrong int type!" % token)
return token
return MAP_TOKEN_TO_GO[token]
if token == STL_OPEN_TOKEN:
return to_go_array(get_type(split_line))
return token
def parse_line(split_line):
field_name = split_line.pop(0)
if field_name == type:
field_name = "typ"
exported_field_name = field_name[0].upper() + field_name[1:]
required = is_req(split_line)
go_type = get_type(split_line)
if required:
res = """\t%s *%s `json:"%s"`\n""" % (exported_field_name,go_type,field_name)
else:
res = """\t%s *%s `json:"%s,omitempty"`\n""" % (exported_field_name,go_type,field_name)
return res
def main():
if len(sys.argv) < 2:
eprint("Usage : %s file" % sys.argv[0])
return
res = "type %s struct { \n" % sys.argv[1]
with open(sys.argv[1], 'r') as table:
for line in table.readlines():
res += parse_line([x for x in re.split('\s+|\(|\)',line) if x])
res += "}\n"
print(res)
if __name__ == "__main__":
main()

38
utils/html_parser.py

@ -1,38 +0,0 @@
#!/usr/bin/env python3
from bs4 import BeautifulSoup
import requests
keycloak_doc = requests.get("http://www.keycloak.org/docs-api/3.2/rest-api/index.html").text
soup = BeautifulSoup(keycloak_doc, "lxml")
for div in soup.body.find_all('div'):
if div.h2:
if div.h2.string == "Definitions":
definitions=div.div
break
for div in definitions.find_all('div'):
name = div.h3.string
print("\n",name,"\n")
#print(div)
with open("./resources/{}".format(name), "w") as f :
try:
for tr in div.table.tbody.find_all('tr'):
tds = tr.find_all('td')
field_name = tds[0].p.strong.string
field_req = tds[0].p.em.string
if tds[1].p.string:
field_type = tds[1].p.string
else:
field_type = tds[1].p.a.string
if field_req not in set(['optional','required']):
field_req = 'optional'
print(field_name + ' ' + field_req + ' ' + field_type)
f.write(field_name + ' ' + field_req + ' ' + field_type + '\n')
except :
print("WARNING!!!", name)
#print(definitions.find_all('div')[-1])

1
utils/include/python3.5m

@ -1 +0,0 @@
/usr/include/python3.5m

1
utils/lib/python3.5/__future__.py

@ -1 +0,0 @@
/usr/lib64/python3.5/__future__.py

BIN
utils/lib/python3.5/__pycache__/__future__.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/_bootlocale.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/_collections_abc.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/_weakrefset.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/abc.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/base64.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/bisect.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/codecs.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/copy.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/copyreg.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/fnmatch.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/functools.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/genericpath.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/hashlib.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/heapq.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/hmac.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/imp.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/io.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/keyword.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/linecache.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/locale.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/operator.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/os.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/posixpath.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/random.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/re.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/reprlib.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/shutil.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/site.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/sre_compile.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/sre_constants.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/sre_parse.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/stat.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/struct.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/tarfile.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/tempfile.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/token.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/tokenize.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/types.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/warnings.cpython-35.pyc

Binary file not shown.

BIN
utils/lib/python3.5/__pycache__/weakref.cpython-35.pyc

Binary file not shown.

1
utils/lib/python3.5/_bootlocale.py

@ -1 +0,0 @@
/usr/lib64/python3.5/_bootlocale.py

1
utils/lib/python3.5/_collections_abc.py

@ -1 +0,0 @@
/usr/lib64/python3.5/_collections_abc.py

1
utils/lib/python3.5/_dummy_thread.py

@ -1 +0,0 @@
/usr/lib64/python3.5/_dummy_thread.py

1
utils/lib/python3.5/_weakrefset.py

@ -1 +0,0 @@
/usr/lib64/python3.5/_weakrefset.py

1
utils/lib/python3.5/abc.py

@ -1 +0,0 @@
/usr/lib64/python3.5/abc.py

1
utils/lib/python3.5/base64.py

@ -1 +0,0 @@
/usr/lib64/python3.5/base64.py

1
utils/lib/python3.5/bisect.py

@ -1 +0,0 @@
/usr/lib64/python3.5/bisect.py

1
utils/lib/python3.5/codecs.py

@ -1 +0,0 @@
/usr/lib64/python3.5/codecs.py

1
utils/lib/python3.5/collections

@ -1 +0,0 @@
/usr/lib64/python3.5/collections

1
utils/lib/python3.5/config-3.5m

@ -1 +0,0 @@
/usr/lib64/python3.5/config-3.5m

1
utils/lib/python3.5/copy.py

@ -1 +0,0 @@
/usr/lib64/python3.5/copy.py

1
utils/lib/python3.5/copyreg.py

@ -1 +0,0 @@
/usr/lib64/python3.5/copyreg.py

101
utils/lib/python3.5/distutils/__init__.py

@ -1,101 +0,0 @@
import os
import sys
import warnings
import imp
import opcode # opcode is not a virtualenv module, so we can use it to find the stdlib
# Important! To work on pypy, this must be a module that resides in the
# lib-python/modified-x.y.z directory
dirname = os.path.dirname
distutils_path = os.path.join(os.path.dirname(opcode.__file__), 'distutils')
if os.path.normpath(distutils_path) == os.path.dirname(os.path.normpath(__file__)):
warnings.warn(
"The virtualenv distutils package at %s appears to be in the same location as the system distutils?")
else:
__path__.insert(0, distutils_path)
real_distutils = imp.load_module("_virtualenv_distutils", None, distutils_path, ('', '', imp.PKG_DIRECTORY))
# Copy the relevant attributes
try:
__revision__ = real_distutils.__revision__
except AttributeError:
pass
__version__ = real_distutils.__version__
from distutils import dist, sysconfig
try:
basestring
except NameError:
basestring = str
## patch build_ext (distutils doesn't know how to get the libs directory
## path on windows - it hardcodes the paths around the patched sys.prefix)
if sys.platform == 'win32':
from distutils.command.build_ext import build_ext as old_build_ext
class build_ext(old_build_ext):
def finalize_options (self):
if self.library_dirs is None:
self.library_dirs = []
elif isinstance(self.library_dirs, basestring):
self.library_dirs = self.library_dirs.split(os.pathsep)
self.library_dirs.insert(0, os.path.join(sys.real_prefix, "Libs"))
old_build_ext.finalize_options(self)
from distutils.command import build_ext as build_ext_module
build_ext_module.build_ext = build_ext
## distutils.dist patches:
old_find_config_files = dist.Distribution.find_config_files
def find_config_files(self):
found = old_find_config_files(self)
system_distutils = os.path.join(distutils_path, 'distutils.cfg')
#if os.path.exists(system_distutils):
# found.insert(0, system_distutils)
# What to call the per-user config file
if os.name == 'posix':
user_filename = ".pydistutils.cfg"
else:
user_filename = "pydistutils.cfg"
user_filename = os.path.join(sys.prefix, user_filename)
if os.path.isfile(user_filename):
for item in list(found):
if item.endswith('pydistutils.cfg'):
found.remove(item)
found.append(user_filename)
return found
dist.Distribution.find_config_files = find_config_files
## distutils.sysconfig patches:
old_get_python_inc = sysconfig.get_python_inc
def sysconfig_get_python_inc(plat_specific=0, prefix=None):
if prefix is None:
prefix = sys.real_prefix
return old_get_python_inc(plat_specific, prefix)
sysconfig_get_python_inc.__doc__ = old_get_python_inc.__doc__
sysconfig.get_python_inc = sysconfig_get_python_inc
old_get_python_lib = sysconfig.get_python_lib
def sysconfig_get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
if standard_lib and prefix is None:
prefix = sys.real_prefix
return old_get_python_lib(plat_specific, standard_lib, prefix)
sysconfig_get_python_lib.__doc__ = old_get_python_lib.__doc__
sysconfig.get_python_lib = sysconfig_get_python_lib
old_get_config_vars = sysconfig.get_config_vars
def sysconfig_get_config_vars(*args):
real_vars = old_get_config_vars(*args)
if sys.platform == 'win32':
lib_dir = os.path.join(sys.real_prefix, "libs")
if isinstance(real_vars, dict) and 'LIBDIR' not in real_vars:
real_vars['LIBDIR'] = lib_dir # asked for all
elif isinstance(real_vars, list) and 'LIBDIR' in args:
real_vars = real_vars + [lib_dir] # asked for list
return real_vars
sysconfig_get_config_vars.__doc__ = old_get_config_vars.__doc__
sysconfig.get_config_vars = sysconfig_get_config_vars

BIN
utils/lib/python3.5/distutils/__pycache__/__init__.cpython-35.pyc

Binary file not shown.

6
utils/lib/python3.5/distutils/distutils.cfg

@ -1,6 +0,0 @@
# This is a config file local to this virtualenv installation
# You may include options that will be used by all distutils commands,
# and by easy_install. For instance:
#
# [easy_install]
# find_links = http://mylocalsite

1
utils/lib/python3.5/encodings

@ -1 +0,0 @@
/usr/lib64/python3.5/encodings

1
utils/lib/python3.5/fnmatch.py

@ -1 +0,0 @@
/usr/lib64/python3.5/fnmatch.py

1
utils/lib/python3.5/functools.py

@ -1 +0,0 @@
/usr/lib64/python3.5/functools.py

1
utils/lib/python3.5/genericpath.py

@ -1 +0,0 @@
/usr/lib64/python3.5/genericpath.py

1
utils/lib/python3.5/hashlib.py

@ -1 +0,0 @@
/usr/lib64/python3.5/hashlib.py

1
utils/lib/python3.5/heapq.py

@ -1 +0,0 @@
/usr/lib64/python3.5/heapq.py

1
utils/lib/python3.5/hmac.py

@ -1 +0,0 @@
/usr/lib64/python3.5/hmac.py

1
utils/lib/python3.5/imp.py

@ -1 +0,0 @@
/usr/lib64/python3.5/imp.py

1
utils/lib/python3.5/importlib

@ -1 +0,0 @@
/usr/lib64/python3.5/importlib

1
utils/lib/python3.5/io.py

@ -1 +0,0 @@
/usr/lib64/python3.5/io.py

1
utils/lib/python3.5/keyword.py

@ -1 +0,0 @@
/usr/lib64/python3.5/keyword.py

1
utils/lib/python3.5/lib-dynload

@ -1 +0,0 @@
/usr/lib64/python3.5/lib-dynload

1
utils/lib/python3.5/linecache.py

@ -1 +0,0 @@
/usr/lib64/python3.5/linecache.py

1
utils/lib/python3.5/locale.py

@ -1 +0,0 @@
/usr/lib64/python3.5/locale.py

0
utils/lib/python3.5/no-global-site-packages.txt

1
utils/lib/python3.5/ntpath.py

@ -1 +0,0 @@
/usr/lib64/python3.5/ntpath.py

1
utils/lib/python3.5/operator.py

@ -1 +0,0 @@
/usr/lib64/python3.5/operator.py

1
utils/lib/python3.5/orig-prefix.txt

@ -1 +0,0 @@
/usr

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save