[Python-modules-commits] [python-cmislib] 01/02: Imported Upstream version 0.5.1+dfsg

Michael Fladischer fladi at moszumanska.debian.org
Mon Jun 15 09:08:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch master
in repository python-cmislib.

commit 84626aba6a4077f2a9dc7aac6194a45e4f543567
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Wed Apr 15 15:32:12 2015 +0200

    Imported Upstream version 0.5.1+dfsg
---
 KEYS                                     |   68 +
 LICENSE.txt                              |  201 ++
 MANIFEST.in                              |   25 +
 NOTICE.txt                               |    5 +
 PKG-INFO                                 |   43 +
 README.txt                               |   27 +
 dist/hash-sign.sh                        |  147 ++
 dist/release.sh                          |   54 +
 setup.cfg                                |    5 +
 setup.py                                 |   51 +
 src/cmislib/__init__.py                  |   25 +
 src/cmislib/exceptions.py                |  121 +
 src/cmislib/messages.py                  |   21 +
 src/cmislib/model.py                     | 4251 ++++++++++++++++++++++++++++++
 src/cmislib/net.py                       |  308 +++
 src/doc/src/.doctrees/about.doctree      |  Bin 0 -> 7525 bytes
 src/doc/src/.doctrees/environment.pickle |  Bin 0 -> 4051 bytes
 src/doc/src/.doctrees/index.doctree      |  Bin 0 -> 5426 bytes
 src/doc/src/Makefile                     |  174 ++
 src/doc/src/about.rst                    |   58 +
 src/doc/src/code.rst                     |   62 +
 src/doc/src/conf.py                      |  303 +++
 src/doc/src/devguide.rst                 |   81 +
 src/doc/src/docs.rst                     |   37 +
 src/doc/src/examples.rst                 |  137 +
 src/doc/src/index.rst                    |   47 +
 src/doc/src/install.rst                  |   39 +
 src/doc/src/make.bat                     |  132 +
 src/doc/src/run-sphinx.py                |   33 +
 src/doc/src/sample-data.rst              |   24 +
 src/doc/src/tests.rst                    |   43 +
 src/tests/250px-Cmis_logo.png            |  Bin 0 -> 8329 bytes
 src/tests/__init__.py                    |   19 +
 src/tests/cmislibtest.py                 | 1479 +++++++++++
 src/tests/sample-a.pdf                   |  Bin 0 -> 117249 bytes
 src/tests/settings.py                    |   56 +
 36 files changed, 8076 insertions(+)

diff --git a/KEYS b/KEYS
new file mode 100644
index 0000000..39822ba
--- /dev/null
+++ b/KEYS
@@ -0,0 +1,68 @@
+This file contains the PGP keys of various developers.
+
+Users: pgp < KEYS
+       gpg --import KEYS
+Developers: 
+        gpg --list-key <your email> and append it to this file.
+        gpg -a --export <your email> and append it to this file.
+
+        (gpg --list-key <your email>
+             && gpg --armor --export <your email>) >> this file.
+
+
+pub   4096R/99E3E187 2010-11-23
+uid                  Jeff Potts (CODE SIGNING KEY) <jpotts at apache.org>
+sub   4096R/2A6CD560 2010-11-23
+
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1.4.11 (Darwin)
+
+mQINBEzsQscBEACoDu6kafUBujuic9JtpGXQdVA4HKRvSAANbgAX8o4fU4wr2c97
+l/OD9SlZMzIkJNBYkQ+NoSIJKTYTJ2hJd7qFAcx0zEwFMhwRVvH/2sZ8xFKaZWjJ
+s26hgnNNPG0tKeV19jmIncFzSgRZsIL7UOcWGrcjhczgRiWIGPfkSjtWSvlQ/mnI
+1dIsw0/IeiN+7ieIoQ7p+Z7rV3/K+aGtchkqoXHQ8tUB+DsmfJNBRONH/Ht/EzeC
+Ih2mAfaK+r5jnA6YhbUt4FRl4AlvMPid48o7UuCJQK05PJWewVDBnw3XoVFyVCXf
+y8jmTJEc1W/EcQiY+lr/gYDM+P08GVgz8ItllvCTCVAe6WihExw6+ESN+ygEtdRQ
+MpPfzY9XUkqr9clzyxFAEzUpfKmd/RSLbzbRCfVK/d8JMwoSmj1guTgt+eeeNNNE
+b9sBZOYm/JdPq539A4tLoWHLMBRvALuuc6Wd6iOka/Kh+Y8Pg/rLrKBHXtVP4kqZ
+jdXasVgsuxdrZW7h9jAAKiX5tAoJlHZuTanwzrQwPCCA32dKS8r0lbIKAZTMUPX9
+sgSi0hcjy81wKtoLzgOzouQ9i+i+tlenyKf18nc7p+X4vSpQdFRF8B5sQXCvn6o8
+s4mUwe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URRfqiBBVKdHdC/LS
+HCP+sQyt7Xv8zPH0vpjDYiG0gqyAN1dyqMDRRxQEq4VVpqy9iu3vyobu+21nCThQ
+5qe9Jd5IWKO/NBT2vLXZvfDGUmEX8wq/IyQRV/oDR9fd1oz5rj8dcw6nNnRX3eAm
+osX3n9cWHgCIkMOS+NbH0XS1bBTHddSVJogisVBuVC+tXwR3XU0YmegELx3TJ7QA
+KGHdnl8nHylVQIVfHSIW
+=e5dc
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..f49a4e1
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,201 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
\ No newline at end of file
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..4cc0e3d
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,25 @@
+#
+#      Licensed to the Apache Software Foundation (ASF) under one
+#      or more contributor license agreements.  See the NOTICE file
+#      distributed with this work for additional information
+#      regarding copyright ownership.  The ASF licenses this file
+#      to you under the Apache License, Version 2.0 (the
+#      "License"); you may not use this file except in compliance
+#      with the License.  You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#      Unless required by applicable law or agreed to in writing,
+#      software distributed under the License is distributed on an
+#      "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#      KIND, either express or implied.  See the License for the
+#      specific language governing permissions and limitations
+#      under the License.
+#
+
+recursive-include src/doc/build *
+prune src/doc/build/.doctrees
+exclude src/doc/build/.buildinfo
+exclude .*project
+include LICENSE.txt
+include NOTICE.txt
diff --git a/NOTICE.txt b/NOTICE.txt
new file mode 100644
index 0000000..502c609
--- /dev/null
+++ b/NOTICE.txt
@@ -0,0 +1,5 @@
+Apache Chemistry
+Copyright 2010-2013 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..5696c19
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,43 @@
+Metadata-Version: 1.1
+Name: cmislib
+Version: 0.5.1
+Summary: Apache Chemistry CMIS client library for Python
+Home-page: http://chemistry.apache.org/
+Author: Apache Chemistry Project
+Author-email: dev at chemistry.apache.org
+License: Apache License (2.0)
+Description: ABOUT
+        
+        Thanks for using cmislib, the CMIS client library for Python.
+        
+        The goal of this library is to provide an interoperable API to CMIS
+        repositories such as Alfresco, Nuxeo, KnowledgeTree, MS SharePoint,
+        EMC Documentum, and any other content repository that is CMIS-compliant.
+        
+        More info on CMIS can be found at:
+        http://www.oasis-open.org/committees/cmis
+        
+        SOURCE
+        
+        The source code for this project lives at http://chemistry.apache.org/
+        
+        TESTS
+        
+        There are unit tests available in the tests directory. They require access
+        to a CMIS provider. There are many freely-available CMIS repositories
+        available to run locally or that are hosted.
+        
+        DOC
+        
+        Documentation that tells you what this is all about can be found in the doc
+        directory. Please see the doc for dependencies, required CMIS version level,
+        required Python version, etc.
+        
+        
+Platform: UNKNOWN
+Classifier: Development Status :: 4 - Beta
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: Apache Software License
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: Python
+Classifier: Topic :: Software Development :: Libraries
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..abec83f
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,27 @@
+ABOUT
+
+Thanks for using cmislib, the CMIS client library for Python.
+
+The goal of this library is to provide an interoperable API to CMIS
+repositories such as Alfresco, Nuxeo, KnowledgeTree, MS SharePoint,
+EMC Documentum, and any other content repository that is CMIS-compliant.
+
+More info on CMIS can be found at:
+http://www.oasis-open.org/committees/cmis
+
+SOURCE
+
+The source code for this project lives at http://chemistry.apache.org/
+
+TESTS
+
+There are unit tests available in the tests directory. They require access
+to a CMIS provider. There are many freely-available CMIS repositories
+available to run locally or that are hosted.
+
+DOC
+
+Documentation that tells you what this is all about can be found in the doc
+directory. Please see the doc for dependencies, required CMIS version level,
+required Python version, etc.
+
diff --git a/dist/hash-sign.sh b/dist/hash-sign.sh
new file mode 100755
index 0000000..840b6a8
--- /dev/null
+++ b/dist/hash-sign.sh
@@ -0,0 +1,147 @@
+#!/bin/sh
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# hash-sign.sh : hash and sign the specified files
+#
+# USAGE: hash-sign.sh file1 file2 ...
+#
+
+user=""
+case "$1" in
+  -u)
+    shift
+    user="$1"
+    shift
+    ;;
+esac
+
+allfiles=$*
+
+
+split="---------------------------------------------------------------------"
+
+echo $split
+echo ""
+echo "Generating MD5/SHA1 checksum files ..."
+echo ""
+
+# check for executables
+gpg="`which gpg 2> /dev/null | head -1`"
+pgp="`which pgp 2> /dev/null | head -1`"
+openssl="`which openssl 2> /dev/null | head -1`"
+md5sum="`which md5sum 2> /dev/null | head -1`"
+sha1sum="`which sha1sum 2> /dev/null | head -1`"
+md5="`which md5 2> /dev/null | head -1`"
+sha1="`which sha1 2> /dev/null | head -1`"
+
+# if found we use openssl for generating the checksums
+# and convert the results into machine-readable format.
+if test -x "${openssl}"; then
+  for file in ${allfiles}; do
+    if test -f "${file}"; then
+      echo "openssl: creating md5 checksum file for ${file} ..."
+      ${openssl} md5 ${file} |\
+          sed -e 's#^MD5(\(.*\))= \([0-9a-f]*\)$#\2 *\1#' > ${file}.md5
+      echo "openssl: creating sha1 checksum file for ${file} ..."
+      ${openssl} sha1 ${file} |\
+          sed -e 's#^SHA1(\(.*\))= \([0-9a-f]*\)$#\2 *\1#' > ${file}.sha1
+    fi
+  done
+# no openssl found - check if we have gpg
+elif test -x "${gpg}"; then
+  for file in ${allfiles}; do
+    if test -f "${file}"; then
+      echo "gpg: creating md5 checksum file for ${file} ..."
+      ${gpg} --print-md md5 ${file} |\
+          sed -e '{N;s#\n##;}' |\
+          sed -e 's#\(.*\): \(.*\)#\2::\1#;s#[\r\n]##g;s# ##g' \
+              -e 'y#ABCDEF#abcdef#;s#::# *#' > ${file}.md5
+      echo "gpg: creating sha1 checksum file for ${file} ..."
+      ${gpg} --print-md sha1 ${file} |\
+          sed -e '{N;s#\n##;}' |\
+          sed -e 's#\(.*\): \(.*\)#\2::\1#;s#[\r\n]##g;s# ##g' \
+              -e 'y#ABCDEF#abcdef#;s#::# *#' > ${file}.sha1
+    fi
+  done
+else
+  # no openssl or gpg found - check for md5sum
+  if test -x "${md5sum}"; then
+    for file in ${allfiles}; do
+      if test -f "${file}"; then
+        echo "md5sum: creating md5 checksum file for ${file} ..."
+        ${md5sum} -b ${file} > ${file}.md5
+      fi
+    done
+  # no openssl or gpg found - check for md5
+  elif test -x "${md5}"; then
+    for file in ${allfiles}; do
+      if test -f "${file}"; then
+        echo "md5: creating md5 checksum file for ${file} ..."
+        ${md5} -r ${file} | sed -e 's# # *#' > ${file}.md5
+      fi
+    done
+  fi
+  # no openssl or gpg found - check for sha1sum
+  if test -x "${sha1sum}"; then
+    for file in ${allfiles}; do
+      if test -f "${file}"; then
+        echo "sha1sum: creating sha1 checksum file for ${file} ..."
+        ${sha1sum} -b ${file} > ${file}.sha1
+      fi
+    done
+  # no openssl or gpg found - check for sha1
+  elif test -x "${sha1}"; then
+    for file in ${allfiles}; do
+      if test -f "${file}"; then
+        echo "sha1: creating sha1 checksum file for ${file} ..."
+        ${sha1} -r ${file} | sed -e 's# # *#' > ${file}.sha1
+      fi
+    done
+  fi
+fi
+
+echo $split
+echo ""
+echo "Signing the files ..."
+echo ""
+
+# if found we use pgp for signing the files
+if test -x "${pgp}"; then
+  if test -n "${user}"; then
+    args="-u ${user}"
+  fi
+  for file in ${allfiles}; do
+    if test -f "${file}"; then
+      echo "pgp: creating asc signature file for ${file} ..."
+      ${pgp} -sba ${file} ${args}
+    fi
+  done
+# no pgp found - check for gpg
+elif test -x "${gpg}"; then
+  if test -z "${user}"; then
+    args="--default-key ${args}"
+  else
+    args="-u ${user} ${args}"
+  fi
+  for file in ${allfiles}; do
+    if test -f "${file}"; then
+      echo "gpg: creating asc signature file for ${file} ..."
+      ${gpg} --armor ${args} --detach-sign ${file}
+    fi
+  done
+else
+  echo "PGP or GnuPG not found!  Not signing release!"
+fi
diff --git a/dist/release.sh b/dist/release.sh
new file mode 100755
index 0000000..f3a7dbf
--- /dev/null
+++ b/dist/release.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+set -e
+
+# Did they give a user to sign with?
+user=""
+case "$1" in
+  -u)
+    shift
+    user="$1"
+    shift
+    ;;
+esac
+
+if test -z "${user}"; then
+   # Do they have a default user already set?
+   gpg_file=$HOME/.gnupg/gpg.conf
+   if test -f $gpg_file; then
+      if grep -q '^default-key' $gpg_file; then
+         user=`grep '^default-key' $gpg_file | awk '{print $2}'`
+         echo "Selected GPG default user of $user"
+      fi
+   fi
+fi
+
+if test -z "${user}"; then
+  echo "must pass -u with a gpg id"
+  exit 1
+fi
+
+cd ..
+
+python setup.py sdist  --formats=gztar,zip
+python setup.py bdist_egg
+
+cd dist
+
+./hash-sign.sh -u ${user} *.tar.gz *.zip
+./hash-sign.sh -u ${user} *.egg
+./hash-sign.sh -u ${user} *.asc
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..861a9f5
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,5 @@
+[egg_info]
+tag_build = 
+tag_date = 0
+tag_svn_revision = 0
+
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..7d16d74
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,51 @@
+#
+#      Licensed to the Apache Software Foundation (ASF) under one
+#      or more contributor license agreements.  See the NOTICE file
+#      distributed with this work for additional information
+#      regarding copyright ownership.  The ASF licenses this file
+#      to you under the Apache License, Version 2.0 (the
+#      "License"); you may not use this file except in compliance
+#      with the License.  You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#      Unless required by applicable law or agreed to in writing,
+#      software distributed under the License is distributed on an
+#      "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#      KIND, either express or implied.  See the License for the
+#      specific language governing permissions and limitations
+#      under the License.
+#
+import os
+from setuptools import setup, find_packages
+
+version = '0.5.1'
+
+def read(fname):
+    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+setup(
+    name = "cmislib",
+    description = 'Apache Chemistry CMIS client library for Python',
+    version = version,
+    install_requires = [
+        'iso8601'
+        ],
+    author = 'Apache Chemistry Project',
+    author_email = 'dev at chemistry.apache.org',
+    license = 'Apache License (2.0)',
+    url = 'http://chemistry.apache.org/',
+    package_dir = {'':'src'},
+    packages = find_packages('src', exclude=['tests']),
+    #include_package_data = True,
+    exclude_package_data = {'':['tests']},
+    long_description = read('README.txt'),
+    classifiers = [
+        "Development Status :: 4 - Beta",
+        "Intended Audience :: Developers",
+        "License :: OSI Approved :: Apache Software License",
+        "Operating System :: OS Independent",
+        "Programming Language :: Python",
+        "Topic :: Software Development :: Libraries",
+        ],
+)
diff --git a/src/cmislib/__init__.py b/src/cmislib/__init__.py
new file mode 100644
index 0000000..553b333
--- /dev/null
+++ b/src/cmislib/__init__.py
@@ -0,0 +1,25 @@
+#
+#      Licensed to the Apache Software Foundation (ASF) under one
+#      or more contributor license agreements.  See the NOTICE file
+#      distributed with this work for additional information
+#      regarding copyright ownership.  The ASF licenses this file
+#      to you under the Apache License, Version 2.0 (the
+#      "License"); you may not use this file except in compliance
+#      with the License.  You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#      Unless required by applicable law or agreed to in writing,
+#      software distributed under the License is distributed on an
+#      "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#      KIND, either express or implied.  See the License for the
+#      specific language governing permissions and limitations
+#      under the License.
+#
+"""
+Define package contents so that they are easy to import.
+"""
+
+from model import CmisClient, Repository, Folder
+
+__all__ = ["CmisClient", "Repository", "Folder"]
diff --git a/src/cmislib/exceptions.py b/src/cmislib/exceptions.py
new file mode 100644
index 0000000..84a988c
--- /dev/null
+++ b/src/cmislib/exceptions.py
@@ -0,0 +1,121 @@
+#
+#      Licensed to the Apache Software Foundation (ASF) under one
+#      or more contributor license agreements.  See the NOTICE file
+#      distributed with this work for additional information
+#      regarding copyright ownership.  The ASF licenses this file
+#      to you under the Apache License, Version 2.0 (the
+#      "License"); you may not use this file except in compliance
+#      with the License.  You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#      Unless required by applicable law or agreed to in writing,
+#      software distributed under the License is distributed on an
+#      "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#      KIND, either express or implied.  See the License for the
+#      specific language governing permissions and limitations
+#      under the License.
+#
+
+
+class CmisException(Exception):
+
+    """
+    Common base class for all exceptions.
+    """
+
+    def __init__(self, status=None, url=None):
+        Exception.__init__(self, "Error %s at %s" % (status, url))
+        self.status = status
+        self.url = url
+
+
+class InvalidArgumentException(CmisException):
+
+    """ InvalidArgumentException """
+
+    pass
+
+
+class ObjectNotFoundException(CmisException):
+
+    """ ObjectNotFoundException """
+
+    pass
+
+
+class NotSupportedException(CmisException):
+
+    """ NotSupportedException """
+
+    pass
+
+
+class PermissionDeniedException(CmisException):
+
+    """ PermissionDeniedException """
+
+    pass
+
+
+class RuntimeException(CmisException):
+
+    """ RuntimeException """
+
+    pass
+
+
+class ConstraintException(CmisException):
+
+    """ ConstraintException """
+
+    pass
+
+
+class ContentAlreadyExistsException(CmisException):
+
+    """ContentAlreadyExistsException """
+
+    pass
+
+
+class FilterNotValidException(CmisException):
+
+    """FilterNotValidException """
+
+    pass
+
+
+class NameConstraintViolationException(CmisException):
+
+    """NameConstraintViolationException """
+
+    pass
+
+
+class StorageException(CmisException):
+
+    """StorageException """
+
+    pass
+
+
+class StreamNotSupportedException(CmisException):
+
+    """ StreamNotSupportedException """
+
+    pass
+
+
+class UpdateConflictException(CmisException):
+
+    """ UpdateConflictException """
+
+    pass
+
+
+class VersioningException(CmisException):
+
+    """ VersioningException """
+
+    pass
diff --git a/src/cmislib/messages.py b/src/cmislib/messages.py
new file mode 100644
index 0000000..8103c72
--- /dev/null
+++ b/src/cmislib/messages.py
@@ -0,0 +1,21 @@
+#
+#      Licensed to the Apache Software Foundation (ASF) under one
+#      or more contributor license agreements.  See the NOTICE file
+#      distributed with this work for additional information
+#      regarding copyright ownership.  The ASF licenses this file
+#      to you under the Apache License, Version 2.0 (the
+#      "License"); you may not use this file except in compliance
+#      with the License.  You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#      Unless required by applicable law or agreed to in writing,
+#      software distributed under the License is distributed on an
+#      "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#      KIND, either express or implied.  See the License for the
+#      specific language governing permissions and limitations
+#      under the License.
+#
+
+NO_ACL_SUPPORT = 'This repository does not support ACLs'
+NO_CHANGE_LOG_SUPPORT = 'This repository does not support change logs'
diff --git a/src/cmislib/model.py b/src/cmislib/model.py
new file mode 100644
index 0000000..562f2ea
--- /dev/null
+++ b/src/cmislib/model.py
@@ -0,0 +1,4251 @@
+#
+#      Licensed to the Apache Software Foundation (ASF) under one
+#      or more contributor license agreements.  See the NOTICE file
+#      distributed with this work for additional information
+#      regarding copyright ownership.  The ASF licenses this file
+#      to you under the Apache License, Version 2.0 (the
+#      "License"); you may not use this file except in compliance
+#      with the License.  You may obtain a copy of the License at
+#
+#        http://www.apache.org/licenses/LICENSE-2.0
+#
+#      Unless required by applicable law or agreed to in writing,
+#      software distributed under the License is distributed on an
+#      "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#      KIND, either express or implied.  See the License for the
+#      specific language governing permissions and limitations
+#      under the License.
+#
+"""
+Module containing the domain objects used to work with a CMIS provider.
+"""
+from net import RESTService as Rest
+from exceptions import CmisException, RuntimeException, \
+    ObjectNotFoundException, InvalidArgumentException, \
+    PermissionDeniedException, NotSupportedException, \
+    UpdateConflictException
+import messages
+
+from urllib import quote
+from urllib2 import HTTPError
+from urlparse import urlparse, urlunparse
+import re
+import mimetypes
+from xml.parsers.expat import ExpatError
+import datetime
+import time
+import iso8601
+import StringIO
+import logging
+
+# would kind of like to not have any parsing logic in this module,
+# but for now I'm going to put the serial/deserialization in methods
+# of the CMIS object classes
+from xml.dom import minidom
+
+# Namespaces
+ATOM_NS = 'http://www.w3.org/2005/Atom'
+APP_NS = 'http://www.w3.org/2007/app'
+CMISRA_NS = 'http://docs.oasis-open.org/ns/cmis/restatom/200908/'
+CMIS_NS = 'http://docs.oasis-open.org/ns/cmis/core/200908/'
+
+# Content types
+# Not all of these patterns have variability, but some do. It seemed cleaner
+# just to treat them all like patterns to simplify the matching logic
+ATOM_XML_TYPE = 'application/atom+xml'
+ATOM_XML_ENTRY_TYPE = 'application/atom+xml;type=entry'
+ATOM_XML_ENTRY_TYPE_P = re.compile('^application/atom\+xml.*type.*entry')
+ATOM_XML_FEED_TYPE = 'application/atom+xml;type=feed'
+ATOM_XML_FEED_TYPE_P = re.compile('^application/atom\+xml.*type.*feed')
+CMIS_TREE_TYPE = 'application/cmistree+xml'
+CMIS_TREE_TYPE_P = re.compile('^application/cmistree\+xml')
+CMIS_QUERY_TYPE = 'application/cmisquery+xml'
+CMIS_ACL_TYPE = 'application/cmisacl+xml'
+
+# Standard rels
+DOWN_REL = 'down'
+FIRST_REL = 'first'
+LAST_REL = 'last'
+NEXT_REL = 'next'
+PREV_REL = 'prev'
+SELF_REL = 'self'
+UP_REL = 'up'
+TYPE_DESCENDANTS_REL = 'http://docs.oasis-open.org/ns/cmis/link/200908/typedescendants'
+VERSION_HISTORY_REL = 'version-history'
+FOLDER_TREE_REL = 'http://docs.oasis-open.org/ns/cmis/link/200908/foldertree'
+RELATIONSHIPS_REL = 'http://docs.oasis-open.org/ns/cmis/link/200908/relationships'
+ACL_REL = 'http://docs.oasis-open.org/ns/cmis/link/200908/acl'
+CHANGE_LOG_REL = 'http://docs.oasis-open.org/ns/cmis/link/200908/changes'
... 7327 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-cmislib.git



More information about the Python-modules-commits mailing list