Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

twext is now external

  • Loading branch information
wsanchez committed Dec 13, 2013
1 parent 3c18efd commit 907f7c7af4a07746bf1f09fbeccd85cea676be0d
Showing with 82 additions and 53,971 deletions.
  1. +15 −19 setup.py
  2. +66 −54 support/build.sh
  3. +1 −1 test
  4. +0 −19 twext/__init__.py
  5. +0 −19 twext/application/__init__.py
  6. +0 −690 twext/application/masterchild.py
  7. +0 −20 twext/enterprise/__init__.py
  8. +0 −1,697 twext/enterprise/adbapi2.py
  9. +0 −27 twext/enterprise/dal/__init__.py
  10. +0 −572 twext/enterprise/dal/model.py
  11. +0 −588 twext/enterprise/dal/parseschema.py
  12. +0 −381 twext/enterprise/dal/record.py
  13. +0 −1,904 twext/enterprise/dal/syntax.py
  14. +0 −19 twext/enterprise/dal/test/__init__.py
  15. +0 −383 twext/enterprise/dal/test/test_parseschema.py
  16. +0 −354 twext/enterprise/dal/test/test_record.py
  17. +0 −1,775 twext/enterprise/dal/test/test_sqlsyntax.py
  18. +0 −599 twext/enterprise/fixtures.py
  19. +0 −313 twext/enterprise/ienterprise.py
  20. +0 −108 twext/enterprise/locking.py
  21. +0 −1,496 twext/enterprise/queue.py
  22. +0 −20 twext/enterprise/test/__init__.py
  23. +0 −1,304 twext/enterprise/test/test_adbapi2.py
  24. +0 −51 twext/enterprise/test/test_fixtures.py
  25. +0 −92 twext/enterprise/test/test_locking.py
  26. +0 −854 twext/enterprise/test/test_queue.py
  27. +0 −38 twext/enterprise/test/test_util.py
  28. +0 −85 twext/enterprise/util.py
  29. +0 −19 twext/internet/__init__.py
  30. +0 −166 twext/internet/adaptendpoint.py
  31. +0 −138 twext/internet/decorate.py
  32. +0 −169 twext/internet/fswatch.py
  33. +0 −182 twext/internet/gaiendpoint.py
  34. +0 −228 twext/internet/kqreactor.py
  35. +0 −452 twext/internet/sendfdport.py
  36. +0 −262 twext/internet/spawnsvc.py
  37. +0 −63 twext/internet/ssl.py
  38. +0 −198 twext/internet/tcp.py
  39. +0 −15 twext/internet/test/__init__.py
  40. +0 −261 twext/internet/test/test_adaptendpoint.py
  41. +0 −167 twext/internet/test/test_fswatch.py
  42. +0 −112 twext/internet/test/test_gaiendpoint.py
  43. +0 −238 twext/internet/test/test_sendfdport.py
  44. +0 −123 twext/internet/threadutils.py
  45. +0 −19 twext/protocols/__init__.py
  46. +0 −35 twext/protocols/echo.py
  47. +0 −667 twext/protocols/memcache.py
  48. +0 −19 twext/protocols/test/__init__.py
  49. +0 −533 twext/protocols/test/test_memcache.py
  50. +0 −19 twext/python/__init__.py
  51. +0 −48 twext/python/clsprop.py
  52. +0 −147 twext/python/filepath.py
  53. +0 −294 twext/python/launchd.py
  54. +0 −989 twext/python/log.py
  55. +0 −94 twext/python/parallel.py
  56. +0 −72 twext/python/sendfd.py
  57. +0 −423 twext/python/sendmsg.c
  58. +0 −19 twext/python/test/__init__.py
  59. +0 −26 twext/python/test/pullpipe.py
  60. +0 −160 twext/python/test/test_filepath.py
  61. +0 −397 twext/python/test/test_launchd.py
  62. +0 −1,029 twext/python/test/test_log.py
  63. +0 −63 twext/python/test/test_parallel.py
  64. +0 −172 twext/python/test/test_sendmsg.py
  65. +0 −41 twext/web2/__init__.py
  66. +0 −3 twext/web2/_version.py
  67. +0 −27 twext/web2/auth/__init__.py
  68. +0 −67 twext/web2/auth/basic.py
  69. +0 −131 twext/web2/auth/digest.py
  70. +0 −83 twext/web2/auth/interfaces.py
  71. +0 −253 twext/web2/auth/wrapper.py
  72. +0 −32 twext/web2/channel/__init__.py
  73. +0 −1,188 twext/web2/channel/http.py
  74. +0 −27 twext/web2/client/__init__.py
  75. +0 −385 twext/web2/client/http.py
  76. +0 −65 twext/web2/client/interfaces.py
  77. +0 −53 twext/web2/dav/__init__.py
  78. +0 −159 twext/web2/dav/auth.py
  79. +0 −515 twext/web2/dav/fileop.py
  80. +0 −342 twext/web2/dav/http.py
  81. +0 −334 twext/web2/dav/idav.py
  82. +0 −50 twext/web2/dav/method/__init__.py
  83. +0 −104 twext/web2/dav/method/acl.py
  84. +0 −268 twext/web2/dav/method/copymove.py
  85. +0 −69 twext/web2/dav/method/delete.py
  86. +0 −72 twext/web2/dav/method/delete_common.py
  87. +0 −58 twext/web2/dav/method/get.py
  88. +0 −44 twext/web2/dav/method/lock.py
  89. +0 −84 twext/web2/dav/method/mkcol.py
  90. +0 −106 twext/web2/dav/method/prop_common.py
  91. +0 −238 twext/web2/dav/method/propfind.py
  92. +0 −206 twext/web2/dav/method/proppatch.py
  93. +0 −104 twext/web2/dav/method/put.py
  94. +0 −275 twext/web2/dav/method/put_common.py
  95. +0 −152 twext/web2/dav/method/report.py
  96. +0 −155 twext/web2/dav/method/report_acl_principal_prop_set.py
  97. +0 −173 twext/web2/dav/method/report_expand.py
  98. +0 −202 twext/web2/dav/method/report_principal_match.py
  99. +0 −191 twext/web2/dav/method/report_principal_property_search.py
  100. +0 −66 twext/web2/dav/method/report_principal_search_property_set.py
  101. +0 −75 twext/web2/dav/noneprops.py
  102. +0 −2,784 twext/web2/dav/resource.py
  103. +0 −209 twext/web2/dav/static.py
  104. +0 −27 twext/web2/dav/test/__init__.py
  105. +0 −10 twext/web2/dav/test/data/quota_100.txt
  106. +0 −5 twext/web2/dav/test/data/xml/PROPFIND_bad.xml
  107. +0 −6 twext/web2/dav/test/data/xml/PROPFIND_nonamespace.xml
  108. +0 −11 twext/web2/dav/test/data/xml/PROPFIND_request.xml
  109. +0 −69 twext/web2/dav/test/data/xml/PROPFIND_response.xml
  110. +0 −12 twext/web2/dav/test/data/xml/PROPPATCH_request.xml
  111. +0 −9 twext/web2/dav/test/data/xml/REPORT_request.xml
  112. +0 −49 twext/web2/dav/test/data/xml/REPORT_response.xml
  113. +0 −398 twext/web2/dav/test/test_acl.py
  114. +0 −67 twext/web2/dav/test/test_auth.py
  115. +0 −188 twext/web2/dav/test/test_copy.py
  116. +0 −74 twext/web2/dav/test/test_delete.py
  117. +0 −89 twext/web2/dav/test/test_http.py
  118. +0 −53 twext/web2/dav/test/test_lock.py
  119. +0 −85 twext/web2/dav/test/test_mkcol.py
  120. +0 −108 twext/web2/dav/test/test_move.py
  121. +0 −64 twext/web2/dav/test/test_options.py
  122. +0 −72 twext/web2/dav/test/test_pipeline.py
  123. +0 −325 twext/web2/dav/test/test_prop.py
  124. +0 −148 twext/web2/dav/test/test_put.py
  125. +0 −201 twext/web2/dav/test/test_quota.py
  126. +0 −71 twext/web2/dav/test/test_report.py
  127. +0 −37 twext/web2/dav/test/test_report_expand.py
  128. +0 −506 twext/web2/dav/test/test_resource.py
  129. +0 −62 twext/web2/dav/test/test_static.py
  130. +0 −102 twext/web2/dav/test/test_util.py
  131. +0 −468 twext/web2/dav/test/test_xattrprops.py
  132. +0 −47 twext/web2/dav/test/tworequest_client.py
  133. +0 −376 twext/web2/dav/test/util.py
  134. +0 −223 twext/web2/dav/util.py
  135. +0 −301 twext/web2/dav/xattrprops.py
  136. +0 −246 twext/web2/error.py
  137. +0 −399 twext/web2/fileupload.py
  138. +0 −7 twext/web2/filter/__init__.py
  139. +0 −78 twext/web2/filter/gzip.py
  140. +0 −30 twext/web2/filter/location.py
  141. +0 −128 twext/web2/filter/range.py
  142. +0 −569 twext/web2/http.py
  143. +0 −1,885 twext/web2/http_headers.py
  144. +0 −276 twext/web2/iweb.py
  145. +0 −233 twext/web2/log.py
  146. +0 −419 twext/web2/metafd.py
  147. +0 −347 twext/web2/resource.py
  148. +0 −138 twext/web2/responsecode.py
  149. +0 −718 twext/web2/server.py
  150. +0 −627 twext/web2/static.py
  151. +0 −1,173 twext/web2/stream.py
  152. +0 −9 twext/web2/test/__init__.py
  153. +0 −36 twext/web2/test/server.pem
  154. +0 −43 twext/web2/test/simple_client.py
  155. +0 −1 twext/web2/test/stream_data.txt
  156. +0 −495 twext/web2/test/test_client.py
  157. +0 −290 twext/web2/test/test_fileupload.py
  158. +0 −1,295 twext/web2/test/test_http.py
  159. +0 −902 twext/web2/test/test_http_headers.py
  160. +0 −994 twext/web2/test/test_httpauth.py
  161. +0 −150 twext/web2/test/test_log.py
  162. +0 −316 twext/web2/test/test_metafd.py
  163. +0 −258 twext/web2/test/test_resource.py
  164. +0 −941 twext/web2/test/test_server.py
  165. +0 −149 twext/web2/test/test_static.py
  166. +0 −683 twext/web2/test/test_stream.py
  167. +0 −20 twext/who/__init__.py
  168. +0 −94 twext/who/aggregate.py
  169. +0 −410 twext/who/directory.py
  170. +0 −212 twext/who/expression.py
  171. +0 −417 twext/who/idirectory.py
  172. +0 −385 twext/who/index.py
  173. +0 −19 twext/who/test/__init__.py
  174. +0 −275 twext/who/test/test_aggregate.py
  175. +0 −958 twext/who/test/test_directory.py
  176. +0 −57 twext/who/test/test_expression.py
  177. +0 −486 twext/who/test/test_index.py
  178. +0 −124 twext/who/test/test_util.py
  179. +0 −976 twext/who/test/test_xml.py
  180. +0 −98 twext/who/util.py
  181. +0 −452 twext/who/xml.py
@@ -15,6 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
##

from __future__ import print_function

import sys
@@ -26,18 +27,18 @@



def find_modules():
def find_packages():
modules = [
"twisted.plugins",
]

for root, dirs, files in os.walk("."):
excludes = [
".svn",
"_trial_temp",
"build",
]
excludes = [
".svn",
"_trial_temp",
"build",
]

for root, dirs, files in os.walk("."):
if root == ".":
excludes.append("data")

@@ -50,6 +51,7 @@ def find_modules():

return modules


#
# Options
#
@@ -61,6 +63,7 @@ def find_modules():

classifiers = None


#
# Write version file
#
@@ -75,16 +78,14 @@ def find_modules():
version_file.write('version = "{version}"\n'.format(version=version_string))
version_file.close()


#
# Set up Extension modules that need to be built
#

from distutils.core import Extension

extensions = [
Extension("twext.python.sendmsg",
sources=["twext/python/sendmsg.c"])
]
extensions = []

if sys.platform == "darwin":
extensions.append(
@@ -95,10 +96,6 @@ def find_modules():
)
)

from twext.python import launchd
extensions.append(launchd.ffi.verifier.get_extension())



#
# Run setup
@@ -112,13 +109,13 @@ def doSetup():
version=version_string,
description=description,
long_description=long_description,
url=None,
url="http://www.calendarserver.org/",
classifiers=classifiers,
author="Apple Inc.",
author_email=None,
license=None,
license="Apache License, Version 2.0",
platforms=["all"],
packages=find_modules(),
packages=find_packages(),
package_data={
"twistedcaldav": [
"*.html",
@@ -237,6 +234,5 @@ def doSetup():
newScript.close()



if __name__ == "__main__":
doSetup()
@@ -509,9 +509,7 @@ py_dependency () {
# already has it?
local inplace=""; # Do development in-place; don't run setup.py to
# build, and instead add the source directory plus the
# given relative path directly to sys.path. twisted
# and pycalendar are developed often enough that this is
# convenient.
# given relative path directly to sys.path.
local skip_egg="false"; # Skip even the 'egg_info' step, because nothing needs
# to be built.
local revision="0"; # Revision (if svn)
@@ -777,6 +775,20 @@ dependencies () {
"setuptools" "setuptools" "${st}" \
"$pypi/s/setuptools/${st}.tar.gz";

local v="0.6";
local n="cffi";
local p="${n}-${v}";
py_dependency -v "0.6" -m "5be33b1ab0247a984d42b27344519337" \
"${n}" "${n}" "${p}" \
"${pypi}/c/${n}/${p}.tar.gz";

local v="2.10";
local n="pycparser";
local p="${n}-${v}";
py_dependency -v "0.6" -m "d87aed98c8a9f386aa56d365fe4d515f" \
"${n}" "${n}" "${p}" \
"${pypi}/p/${n}/${p}.tar.gz";

local v="4.0.5";
local n="zope.interface";
local p="${n}-${v}";
@@ -793,8 +805,10 @@ dependencies () {

local n="PyKerberos";
if type -P krb5-config > /dev/null; then
py_dependency -r 9409 \
"${n}" "kerberos" "${n}" \
local v="9409";
local p="${n}-${v}";
py_dependency -r "${v}" \
"${n}" "kerberos" "${p}" \
"${svn_uri_base}/${n}/trunk";
fi;

@@ -821,13 +835,41 @@ dependencies () {
"${n}" "pgdb" "${p}" \
"${pypi}/P/${n}/${p}.tgz";

local v="0.1.2";
local n="sqlparse";
local p="${n}-${v}";
py_dependency -v "${v}" -s "978874e5ebbd78e6d419e8182ce4fb3c30379642" \
"SQLParse" "${n}" "${p}" \
"http://python-sqlparse.googlecode.com/files/${p}.tar.gz";

local v="2.6.1";
local n="pycrypto";
local p="${n}-${v}";
py_dependency -v "${v}" -m "55a61a054aa66812daf5161a0d5d7eda" \
"PyCrypto" "${n}" "${p}" \
"http://ftp.dlitz.net/pub/dlitz/crypto/${n}/${p}.tar.gz";

local v="0.1.7";
local n="pyasn1";
local p="${n}-${v}";
py_dependency -v "${v}" -m "2cbd80fcd4c7b1c82180d3d76fee18c8" \
"${n}" "${n}" "${p}" \
"${pypi}/p/${n}/${p}.tar.gz";

local v="13.2.0";
local n="Twisted";
local p="${n}-${v}";
py_dependency -v 13.2 -m "83fe6c0c911cc1602dbffb036be0ba79" \
"${n}" "twisted" "${p}" \
"${pypi}/T/${n}/${p}.tar.bz2";

local v="12078";
local n="twext";
local p="${n}-${v}";
py_dependency -fe -r "${v}" \
"${n}" "${n}" "${p}" \
"${svn_uri_base}/${n}/trunk";

local v="1.5";
local n="python-dateutil";
local p="${n}-${v}";
@@ -849,23 +891,26 @@ dependencies () {
"Python-LDAP" "ldap" "${p}" \
"${pypi}/p/${n}/${p}.tar.gz";

# XXX actually PyCalendar should be imported in-place.
py_dependency -fe -i "src" -r 11947 \
"PyCalendar" "pycalendar" "pycalendar" \
"${svn_uri_base}/PyCalendar/trunk";
local v="11947";
local n="PyCalendar";
local p="${n}-${v}";
py_dependency -fe -i "src" -r "${v}" \
"${n}" "pycalendar" "${p}" \
"${svn_uri_base}/${n}/trunk";

# Can't add "-v 2011g" to args because the version check expects numbers.
local v="2013.8";
local n="pytz";
local p="${n}-${v}";
py_dependency -m "37750ca749ed3a52523b9682b0b7e381" \
"${n}" "${n}" "${p}" \
"${pypi}/p/${n}/${p}.tar.gz";

#
# Tool dependencies. The code itself doesn't depend on these, but
# they are useful to developers.
#

local v="0.1.2";
local n="sqlparse";
local p="${n}-${v}";
py_dependency -v "${v}" -s "978874e5ebbd78e6d419e8182ce4fb3c30379642" \
"SQLParse" "${n}" "${p}" \
"http://python-sqlparse.googlecode.com/files/${p}.tar.gz";

if type -P pyflakes > /dev/null; then
using_system "PyFlakes";
else
@@ -877,31 +922,12 @@ dependencies () {
"${pypi}/p/${n}/${p}.tar.gz";
fi;

py_dependency -o -r HEAD \
"CalDAVClientLibrary" "caldavclientlibrary" "CalDAVClientLibrary" \
"${svn_uri_base}/CalDAVClientLibrary/trunk";

# Can't add "-v 2011g" to args because the version check expects numbers.
local v="2013.8";
local n="pytz";
local v="12068";
local n="CalDAVClientLibrary";
local p="${n}-${v}";
py_dependency -m "37750ca749ed3a52523b9682b0b7e381" \
"${n}" "${n}" "${p}" \
"${pypi}/p/${n}/${p}.tar.gz";

local v="2.6.1";
local n="pycrypto";
local p="${n}-${v}";
py_dependency -v "${v}" -m "55a61a054aa66812daf5161a0d5d7eda" \
"PyCrypto" "${n}" "${p}" \
"http://ftp.dlitz.net/pub/dlitz/crypto/${n}/${p}.tar.gz";

local v="0.1.7";
local n="pyasn1";
local p="${n}-${v}";
py_dependency -v "${v}" -m "2cbd80fcd4c7b1c82180d3d76fee18c8" \
"${n}" "${n}" "${p}" \
"${pypi}/p/${n}/${p}.tar.gz";
py_dependency -o -r "${v}" \
"${n}" "caldavclientlibrary" "${p}" \
"${svn_uri_base}/${n}/trunk";

local v="1.1.8";
local n="setproctitle";
@@ -910,20 +936,6 @@ dependencies () {
"${n}" "${n}" "${p}" \
"${pypi}/s/${n}/${p}.tar.gz";

local v="0.6";
local n="cffi";
local p="${n}-${v}";
py_dependency -v "0.6" -m "5be33b1ab0247a984d42b27344519337" \
"${n}" "${n}" "${p}" \
"${pypi}/c/${n}/${p}.tar.gz";

local v="2.10";
local n="pycparser";
local p="${n}-${v}";
py_dependency -v "0.6" -m "d87aed98c8a9f386aa56d365fe4d515f" \
"${n}" "${n}" "${p}" \
"${pypi}/p/${n}/${p}.tar.gz";

svn_get "CalDAVTester" "${top}/CalDAVTester" \
"${svn_uri_base}/CalDAVTester/trunk" HEAD;

2 test
@@ -80,7 +80,7 @@ if [ $# -gt 0 ]; then
test_modules="$@";
flaky=true;
else
test_modules="calendarserver twistedcaldav twext txdav contrib ${m_twisted}";
test_modules="calendarserver twistedcaldav txdav contrib ${m_twisted}";
flaky=true;
fi;

This file was deleted.

This file was deleted.

0 comments on commit 907f7c7

Please sign in to comment.
You can’t perform that action at this time.