diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..f66a2b6 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,6 @@ +[report] +include = + src/collective/* +omit = + */test* + */upgrades/* diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a83363b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +[*] +indent_style = space +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 + +[{*.py,*.cfg}] +indent_size = 4 + +[{*.html,*.dtml,*.pt,*.zpt,*.xml,*.zcml,*.js}] +indent_size = 2 + +[Makefile] +indent_style = tab diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..af46901 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +CHANGES.rst merge=union \ No newline at end of file diff --git a/.gitignore b/.gitignore index 50b1c19..203956e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,31 +1,39 @@ -*.mo +.coverage +.coverage.* *.egg-info -*.egg -*.EGG -*.EGG-INFO -var -bin -build -develop-eggs -downloads -eggs -fake-eggs -parts -dist -.installed.cfg -.mr.developer.cfg -.hg -.bzr -.svn -*.pyc -*.pyo -*.tmp* -src -.project -.pydevproject -testrelease -.eggs/ +*.log +*.mo +*.py? +*.swp +.*project +# dirs +/.settings/ +bin/ +buildout-cache/ +develop-eggs/ +eggs/ +htmlcov/ include/ lib/ - -.DS_Store +local/ +node_modules/ +parts/ +dist/* +test.plone_addon/ +var/ +# files +.installed.cfg +.mr.developer.cfg +coverage.xml +lib64 +local.cfg +log.html +output.xml +pip-selfcheck.json +pyvenv.cfg +report.html +.vscode/ +.tox/ +reports/ +venv/ +# excludes \ No newline at end of file diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst new file mode 100644 index 0000000..68ca49b --- /dev/null +++ b/CONTRIBUTORS.rst @@ -0,0 +1,5 @@ +Contributors +============ + +- JeanMichel FRANCOIS aka toutpt, toutpt@gmail.com +- Wesley Barroso Lopes, wesleybl@gmail.com diff --git a/DEVELOP.rst b/DEVELOP.rst new file mode 100644 index 0000000..9c4dbc1 --- /dev/null +++ b/DEVELOP.rst @@ -0,0 +1,76 @@ +Using the development buildout +============================== + +plonecli +-------- + +The convenient way, use plonecli build ;):: + + $ plonecli build + +or with --clear if you want to clean your existing venv:: + + $ plonecli build --clear + +Start your instance:: + + $ plonecli serve + + +Without plonecli +---------------- + +Create a virtualenv in the package:: + + $ python3 -m venv venv + +or with --clear if you want to clean your existing venv:: + + $ python3 -m venv venv --clear + +Install requirements with pip:: + + $ ./venv/bin/pip install -r requirements.txt + +bootstrap your buildout:: + + $ ./bin/buildout bootstrap + +Run buildout:: + + $ ./bin/buildout + +Start Plone in foreground:: + + $ ./bin/instance fg + + +Running tests +------------- + + $ tox + +list all tox environments:: + + $ tox -l + py27-Plone43 + py27-Plone51 + py27-Plone52 + py37-Plone52 + build_instance + code-analysis + lint-py27 + lint-py37 + coverage-report + +run a specific tox env:: + + $ tox -e py37-Plone52 + + +CI Github-Actions / codecov +--------------------------- + +The first time you push the repo to github, you might get an error from codecov. +Either you activate the package here: `https://app.codecov.io/gh/collective/+ `_ +Or you just wait a bit, codecov will activate your package automatically. diff --git a/LICENSE.GPL b/LICENSE.GPL new file mode 100644 index 0000000..d159169 --- /dev/null +++ b/LICENSE.GPL @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/LICENSE.rst b/LICENSE.rst new file mode 100644 index 0000000..9b41c92 --- /dev/null +++ b/LICENSE.rst @@ -0,0 +1,15 @@ +collective.js.jqueryui Copyright 2022, JeanMichel FRANCOIS aka toutpt + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License version 2 +as published by the Free Software Foundation. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, +MA 02111-1307 USA. diff --git a/MANIFEST.in b/MANIFEST.in index 554a49a..07a60db 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ -include docs/*.txt -graft collective -include *rst -global-exclude *.pyc *.pyo +graft src/collective +graft docs +include *.rst +global-exclude *.pyc diff --git a/base.cfg b/base.cfg new file mode 100644 index 0000000..5b9177d --- /dev/null +++ b/base.cfg @@ -0,0 +1,99 @@ +[buildout] +show-picked-versions = true +extensions = + mr.developer + +parts = + instance + test +# we use tox for testing and linting, by default +# code-analysis + coverage + test-coverage + createcoverage + releaser + i18ndude + omelette + plone-helper-scripts + +develop = . + + +[instance] +recipe = plone.recipe.zope2instance +user = admin:admin +http-address = 8080 +environment-vars = + zope_i18n_compile_mo_files true +eggs = + Plone + Pillow + collective.js.jqueryui [test] +zcml += + collective.js.jqueryui.example + +# [code-analysis] +# recipe = plone.recipe.codeanalysis +# directory = ${buildout:directory}/src/collective +# return-status-codes = False + + +[omelette] +recipe = collective.recipe.omelette +eggs = ${instance:eggs} + + +[test] +recipe = zc.recipe.testrunner +eggs = ${instance:eggs} +initialization = + os.environ['TZ'] = 'UTC' +defaults = ['-s', 'collective.js.jqueryui', '--auto-color', '--auto-progress'] + + +[coverage] +recipe = zc.recipe.egg +eggs = coverage + + +[test-coverage] +recipe = collective.recipe.template +input = inline: + #!/bin/bash + export TZ=UTC + ${buildout:directory}/bin/coverage run bin/test $* + ${buildout:directory}/bin/coverage html + ${buildout:directory}/bin/coverage report -m --fail-under=90 + # Fail (exit status 1) if coverage returns exit status 2 (this happens + # when test coverage is below 100%. +output = ${buildout:directory}/bin/test-coverage +mode = 755 + + +[createcoverage] +recipe = zc.recipe.egg +eggs = createcoverage + + +[releaser] +recipe = zc.recipe.egg +eggs = zest.releaser + + +[i18ndude] +recipe = zc.recipe.egg +eggs = i18ndude + +[plone-helper-scripts] +recipe = zc.recipe.egg +eggs = + Products.CMFPlone + ${instance:eggs} +interpreter = zopepy +scripts = + zopepy + plone-compile-resources + +[versions] +# Don't use a released version of collective.js.jqueryui +collective.js.jqueryui = diff --git a/bobtemplate.cfg b/bobtemplate.cfg new file mode 100644 index 0000000..7934223 --- /dev/null +++ b/bobtemplate.cfg @@ -0,0 +1,5 @@ +[main] +version = 5.2.7 +template = plone_addon +git_init = False +python = python3.8 diff --git a/bootstrap.py b/bootstrap.py deleted file mode 100644 index a459921..0000000 --- a/bootstrap.py +++ /dev/null @@ -1,210 +0,0 @@ -############################################################################## -# -# Copyright (c) 2006 Zope Foundation and Contributors. -# All Rights Reserved. -# -# This software is subject to the provisions of the Zope Public License, -# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED -# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS -# FOR A PARTICULAR PURPOSE. -# -############################################################################## -"""Bootstrap a buildout-based project - -Simply run this script in a directory containing a buildout.cfg. -The script accepts buildout command-line options, so you can -use the -c option to specify an alternate configuration file. -""" - -import os -import shutil -import sys -import tempfile - -from optparse import OptionParser - -__version__ = '2015-07-01' -# See zc.buildout's changelog if this version is up to date. - -tmpeggs = tempfile.mkdtemp(prefix='bootstrap-') - -usage = '''\ -[DESIRED PYTHON FOR BUILDOUT] bootstrap.py [options] - -Bootstraps a buildout-based project. - -Simply run this script in a directory containing a buildout.cfg, using the -Python that you want bin/buildout to use. - -Note that by using --find-links to point to local resources, you can keep -this script from going over the network. -''' - -parser = OptionParser(usage=usage) -parser.add_option("--version", - action="store_true", default=False, - help=("Return bootstrap.py version.")) -parser.add_option("-t", "--accept-buildout-test-releases", - dest='accept_buildout_test_releases', - action="store_true", default=False, - help=("Normally, if you do not specify a --version, the " - "bootstrap script and buildout gets the newest " - "*final* versions of zc.buildout and its recipes and " - "extensions for you. If you use this flag, " - "bootstrap and buildout will get the newest releases " - "even if they are alphas or betas.")) -parser.add_option("-c", "--config-file", - help=("Specify the path to the buildout configuration " - "file to be used.")) -parser.add_option("-f", "--find-links", - help=("Specify a URL to search for buildout releases")) -parser.add_option("--allow-site-packages", - action="store_true", default=False, - help=("Let bootstrap.py use existing site packages")) -parser.add_option("--buildout-version", - help="Use a specific zc.buildout version") -parser.add_option("--setuptools-version", - help="Use a specific setuptools version") -parser.add_option("--setuptools-to-dir", - help=("Allow for re-use of existing directory of " - "setuptools versions")) - -options, args = parser.parse_args() -if options.version: - print("bootstrap.py version %s" % __version__) - sys.exit(0) - - -###################################################################### -# load/install setuptools - -try: - from urllib.request import urlopen -except ImportError: - from urllib2 import urlopen - -ez = {} -if os.path.exists('ez_setup.py'): - exec(open('ez_setup.py').read(), ez) -else: - exec(urlopen('https://bootstrap.pypa.io/ez_setup.py').read(), ez) - -if not options.allow_site_packages: - # ez_setup imports site, which adds site packages - # this will remove them from the path to ensure that incompatible versions - # of setuptools are not in the path - import site - # inside a virtualenv, there is no 'getsitepackages'. - # We can't remove these reliably - if hasattr(site, 'getsitepackages'): - for sitepackage_path in site.getsitepackages(): - # Strip all site-packages directories from sys.path that - # are not sys.prefix; this is because on Windows - # sys.prefix is a site-package directory. - if sitepackage_path != sys.prefix: - sys.path[:] = [x for x in sys.path - if sitepackage_path not in x] - -setup_args = dict(to_dir=tmpeggs, download_delay=0) - -if options.setuptools_version is not None: - setup_args['version'] = options.setuptools_version -if options.setuptools_to_dir is not None: - setup_args['to_dir'] = options.setuptools_to_dir - -ez['use_setuptools'](**setup_args) -import setuptools -import pkg_resources - -# This does not (always?) update the default working set. We will -# do it. -for path in sys.path: - if path not in pkg_resources.working_set.entries: - pkg_resources.working_set.add_entry(path) - -###################################################################### -# Install buildout - -ws = pkg_resources.working_set - -setuptools_path = ws.find( - pkg_resources.Requirement.parse('setuptools')).location - -# Fix sys.path here as easy_install.pth added before PYTHONPATH -cmd = [sys.executable, '-c', - 'import sys; sys.path[0:0] = [%r]; ' % setuptools_path + - 'from setuptools.command.easy_install import main; main()', - '-mZqNxd', tmpeggs] - -find_links = os.environ.get( - 'bootstrap-testing-find-links', - options.find_links or - ('http://downloads.buildout.org/' - if options.accept_buildout_test_releases else None) - ) -if find_links: - cmd.extend(['-f', find_links]) - -requirement = 'zc.buildout' -version = options.buildout_version -if version is None and not options.accept_buildout_test_releases: - # Figure out the most recent final version of zc.buildout. - import setuptools.package_index - _final_parts = '*final-', '*final' - - def _final_version(parsed_version): - try: - return not parsed_version.is_prerelease - except AttributeError: - # Older setuptools - for part in parsed_version: - if (part[:1] == '*') and (part not in _final_parts): - return False - return True - - index = setuptools.package_index.PackageIndex( - search_path=[setuptools_path]) - if find_links: - index.add_find_links((find_links,)) - req = pkg_resources.Requirement.parse(requirement) - if index.obtain(req) is not None: - best = [] - bestv = None - for dist in index[req.project_name]: - distv = dist.parsed_version - if _final_version(distv): - if bestv is None or distv > bestv: - best = [dist] - bestv = distv - elif distv == bestv: - best.append(dist) - if best: - best.sort() - version = best[-1].version -if version: - requirement = '=='.join((requirement, version)) -cmd.append(requirement) - -import subprocess -if subprocess.call(cmd) != 0: - raise Exception( - "Failed to execute command:\n%s" % repr(cmd)[1:-1]) - -###################################################################### -# Import and run buildout - -ws.add_entry(tmpeggs) -ws.require(requirement) -import zc.buildout.buildout - -if not [a for a in args if '=' not in a]: - args.append('bootstrap') - -# if -c was provided, we push it back into args for buildout' main function -if options.config_file is not None: - args[0:0] = ['-c', options.config_file] - -zc.buildout.buildout.main(args) -shutil.rmtree(tmpeggs) diff --git a/buildout.cfg b/buildout.cfg index 9967d67..f29aa9c 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -1,7 +1,4 @@ [buildout] -extends = - https://raw.github.com/collective/buildout.plonetest/master/test-4.x.cfg -package-name = collective.js.jqueryui -[instance] -zcml+=collective.js.jqueryui.example +extends = + test_plone52.cfg diff --git a/collective/__init__.py b/collective/__init__.py deleted file mode 100644 index f48ad10..0000000 --- a/collective/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages -try: - __import__('pkg_resources').declare_namespace(__name__) -except ImportError: - from pkgutil import extend_path - __path__ = extend_path(__path__, __name__) diff --git a/collective/js/__init__.py b/collective/js/__init__.py deleted file mode 100644 index f48ad10..0000000 --- a/collective/js/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages -try: - __import__('pkg_resources').declare_namespace(__name__) -except ImportError: - from pkgutil import extend_path - __path__ = extend_path(__path__, __name__) diff --git a/constraints.txt b/constraints.txt new file mode 100644 index 0000000..24cbf87 --- /dev/null +++ b/constraints.txt @@ -0,0 +1 @@ +-c constraints_plone52.txt diff --git a/constraints_plone43.txt b/constraints_plone43.txt new file mode 100644 index 0000000..b7518d6 --- /dev/null +++ b/constraints_plone43.txt @@ -0,0 +1 @@ +-c https://dist.plone.org/release/5.1-latest/requirements.txt diff --git a/constraints_plone50.txt b/constraints_plone50.txt new file mode 100644 index 0000000..b7518d6 --- /dev/null +++ b/constraints_plone50.txt @@ -0,0 +1 @@ +-c https://dist.plone.org/release/5.1-latest/requirements.txt diff --git a/constraints_plone51.txt b/constraints_plone51.txt new file mode 100644 index 0000000..b7518d6 --- /dev/null +++ b/constraints_plone51.txt @@ -0,0 +1 @@ +-c https://dist.plone.org/release/5.1-latest/requirements.txt diff --git a/constraints_plone52.txt b/constraints_plone52.txt new file mode 100644 index 0000000..848b28f --- /dev/null +++ b/constraints_plone52.txt @@ -0,0 +1 @@ +-c https://dist.plone.org/release/5.2-latest/requirements.txt diff --git a/docs/UPGRADE.txt b/docs/UPGRADE.txt index 8b60afb..3ffad23 100644 --- a/docs/UPGRADE.txt +++ b/docs/UPGRADE.txt @@ -9,7 +9,7 @@ How to upgrade this package Commands to execute:: - PKG="/home/toutpt/workspace/collective.js.jqueryui/collective/js/jqueryui" + PKG="/home/toutpt/workspace/collective.js.jqueryui/src/collective/js/jqueryui" VERSION="1.8.13" PREV="1.8.12" unzip ~/jquery-ui-$VERSION.custom.zip diff --git a/docs/conf.py b/docs/conf.py new file mode 100644 index 0000000..1a982bf --- /dev/null +++ b/docs/conf.py @@ -0,0 +1,239 @@ +# -*- coding: utf-8 -*- +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +import sys +import os + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +#sys.path.insert(0, os.path.abspath('.')) + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +#needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8-sig' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = u'collective.js.jqueryui' +copyright = u'JeanMichel FRANCOIS aka toutpt ()' +author = u'JeanMichel FRANCOIS aka toutpt ()' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = u'3.0' +# The full version, including alpha/beta/rc tags. +release = u'3.0' + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] + +# The reST default role (used for this markup: `text`) to use for all +# documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# A list of ignored prefixes for module index sorting. +#modindex_common_prefix = [] + +# If true, keep warnings as "system message" paragraphs in the built documents. +#keep_warnings = False + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = False + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +html_theme = 'alabaster' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +#html_theme_options = {} + +# Add any paths that contain custom themes here, relative to this directory. +#html_theme_path = [] + +# The name for this set of Sphinx documents. +# " v documentation" by default. +#html_title = u'bobtemplates.plone v3.0' + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +#html_logo = None + +# The name of an image file (relative to this directory) to use as a favicon of +# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] + +# Add any extra paths that contain custom files (such as robots.txt or +# .htaccess) here, relative to this directory. These files are copied +# directly to the root of the documentation. +#html_extra_path = [] + +# If not None, a 'Last updated on:' timestamp is inserted at every page +# bottom, using the given strftime format. +# The empty string is equivalent to '%b %d, %Y'. +#html_last_updated_fmt = None + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_domain_indices = True + +# If false, no index is generated. +#html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, links to the reST sources are added to the pages. +#html_show_sourcelink = True + +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. +#html_show_sphinx = True + +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. +#html_show_copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# This is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = None + +# Language to be used for generating the HTML full-text search index. +# Sphinx supports the following languages: +# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' +# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh' +#html_search_language = 'en' + +# A dictionary with options for the search language support, empty by default. +# 'ja' uses this config value. +# 'zh' user can custom change `jieba` dictionary path. +#html_search_options = {'type': 'default'} + +# The name of a javascript file (relative to the configuration directory) that +# implements a search results scorer. If empty, the default will be used. +#html_search_scorer = 'scorer.js' + +# Output file base name for HTML help builder. +htmlhelp_basename = 'collective.js.jqueryuidoc' + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { +# The paper size ('letterpaper' or 'a4paper'). +#'papersize': 'letterpaper', + +# The font size ('10pt', '11pt' or '12pt'). +#'pointsize': '10pt', + +# Additional stuff for the LaTeX preamble. +#'preamble': '', + +# Latex figure (float) alignment +#'figure_align': 'htbp', +} + + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +#latex_logo = None + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +#latex_use_parts = False + +# If true, show page references after internal links. +#latex_show_pagerefs = False + +# If true, show URL addresses after external links. +#latex_show_urls = False + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_domain_indices = True diff --git a/docs/index.rst b/docs/index.rst new file mode 100644 index 0000000..74a215f --- /dev/null +++ b/docs/index.rst @@ -0,0 +1,5 @@ +====================== +collective.js.jqueryui +====================== + +User documentation diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..06390bd --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +-c constraints.txt +setuptools +zc.buildout diff --git a/setup.cfg b/setup.cfg index cd46807..2b29758 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,13 +1,19 @@ [check-manifest] ignore = *.cfg - bootstrap.py + .coveragerc + .editorconfig + .gitattributes [isort] -force_alphabetical_sort = True -force_single_line = True -lines_after_imports = 2 -line_length = 79 -not_skip = __init__.py -use_parentheses = True -multi_line_output = 3 +# black compatible isort rules: +profile = black + +[flake8] +# black compatible flake8 rules: +ignore = + W503, + C812, + E501 + T001 + C813 \ No newline at end of file diff --git a/setup.py b/setup.py index 033860a..05dbd9c 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,23 @@ -from setuptools import setup, find_packages -import os +# -*- coding: utf-8 -*- +"""Installer for the collective.js.jqueryui package.""" + +from setuptools import find_packages +from setuptools import setup + + +long_description = '\n\n'.join([ + open('README.rst').read(), + open('CONTRIBUTORS.rst').read(), + open('CHANGES.rst').read(), +]) -version = '2.1.9.dev0' setup( name='collective.js.jqueryui', - version=version, + version='2.1.9.dev0', description="JQueryUI ready for Plone", - long_description=open("README.rst").read() + "\n" + - open(os.path.join("docs", "UPGRADE.txt")).read() + "\n" + - open("CHANGES.rst").read(), + long_description=long_description, + # Get more from https://pypi.org/classifiers/ classifiers=[ "Development Status :: 6 - Mature", "Environment :: Web Environment", @@ -33,19 +41,30 @@ author='JeanMichel FRANCOIS aka toutpt', author_email='toutpt@gmail.com', url='https://github.com/collective/collective.js.jqueryui', - license='GPL', - packages=find_packages(exclude=['ez_setup']), + project_urls={ + 'PyPI': 'https://pypi.python.org/pypi/collective.js.jqueryui', + 'Source': 'https://github.com/collective/collective.js.jqueryui', + 'Tracker': 'https://github.com/collective/collective.js.jqueryui/issues', + # 'Documentation': 'https://collective.js.jqueryui.readthedocs.io/en/latest/', + }, + license='GPL version 2', + packages=find_packages('src', exclude=['ez_setup']), namespace_packages=['collective', 'collective.js'], + package_dir={'': 'src'}, include_package_data=True, zip_safe=False, + python_requires=">=3.7", install_requires=[ - 'plone.app.jquery > 1.6', - 'Products.CMFPlone', - 'setuptools', + "plone.app.jquery > 1.6", + "Products.CMFPlone", + "setuptools", ], - extras_require={}, + extras_require={ + 'test': [ + "zope.i18n", + ], + }, entry_points=""" - # -*- Entry points: -*- [z3c.autoinclude.plugin] target = plone """, diff --git a/src/collective/__init__.py b/src/collective/__init__.py new file mode 100644 index 0000000..03d08ff --- /dev/null +++ b/src/collective/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +__import__("pkg_resources").declare_namespace(__name__) diff --git a/src/collective/js/__init__.py b/src/collective/js/__init__.py new file mode 100644 index 0000000..03d08ff --- /dev/null +++ b/src/collective/js/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +__import__("pkg_resources").declare_namespace(__name__) diff --git a/collective/js/jqueryui/__init__.py b/src/collective/js/jqueryui/__init__.py similarity index 100% rename from collective/js/jqueryui/__init__.py rename to src/collective/js/jqueryui/__init__.py diff --git a/collective/js/jqueryui/common.zcml b/src/collective/js/jqueryui/common.zcml similarity index 100% rename from collective/js/jqueryui/common.zcml rename to src/collective/js/jqueryui/common.zcml diff --git a/collective/js/jqueryui/config.py b/src/collective/js/jqueryui/config.py similarity index 100% rename from collective/js/jqueryui/config.py rename to src/collective/js/jqueryui/config.py diff --git a/collective/js/jqueryui/configure.zcml b/src/collective/js/jqueryui/configure.zcml similarity index 100% rename from collective/js/jqueryui/configure.zcml rename to src/collective/js/jqueryui/configure.zcml diff --git a/collective/js/jqueryui/controlpanel.pt b/src/collective/js/jqueryui/controlpanel.pt similarity index 100% rename from collective/js/jqueryui/controlpanel.pt rename to src/collective/js/jqueryui/controlpanel.pt diff --git a/collective/js/jqueryui/controlpanel.py b/src/collective/js/jqueryui/controlpanel.py similarity index 100% rename from collective/js/jqueryui/controlpanel.py rename to src/collective/js/jqueryui/controlpanel.py diff --git a/collective/js/jqueryui/controlpanel_layout.pt b/src/collective/js/jqueryui/controlpanel_layout.pt similarity index 100% rename from collective/js/jqueryui/controlpanel_layout.pt rename to src/collective/js/jqueryui/controlpanel_layout.pt diff --git a/collective/js/jqueryui/css/sunburst-patch.css b/src/collective/js/jqueryui/css/sunburst-patch.css similarity index 100% rename from collective/js/jqueryui/css/sunburst-patch.css rename to src/collective/js/jqueryui/css/sunburst-patch.css diff --git a/collective/js/jqueryui/css/sunburst/images/animated-overlay.gif b/src/collective/js/jqueryui/css/sunburst/images/animated-overlay.gif similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/animated-overlay.gif rename to src/collective/js/jqueryui/css/sunburst/images/animated-overlay.gif diff --git a/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_100_ffffff_40x100.png b/src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_100_ffffff_40x100.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-bg_flat_100_ffffff_40x100.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_100_ffffff_40x100.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_45_205c90_40x100.png b/src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_45_205c90_40x100.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-bg_flat_45_205c90_40x100.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_45_205c90_40x100.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_45_ffddcc_40x100.png b/src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_45_ffddcc_40x100.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-bg_flat_45_ffddcc_40x100.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_45_ffddcc_40x100.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_50_75ad0a_40x100.png b/src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_50_75ad0a_40x100.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-bg_flat_50_75ad0a_40x100.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_50_75ad0a_40x100.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_55_999999_40x100.png b/src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_55_999999_40x100.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-bg_flat_55_999999_40x100.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_55_999999_40x100.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_55_ffdd77_40x100.png b/src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_55_ffdd77_40x100.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-bg_flat_55_ffdd77_40x100.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_55_ffdd77_40x100.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_75_aaaaaa_40x100.png b/src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_75_aaaaaa_40x100.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-bg_flat_75_aaaaaa_40x100.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_75_aaaaaa_40x100.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_75_dddddd_40x100.png b/src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_75_dddddd_40x100.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-bg_flat_75_dddddd_40x100.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-bg_flat_75_dddddd_40x100.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-icons_205c90_256x240.png b/src/collective/js/jqueryui/css/sunburst/images/ui-icons_205c90_256x240.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-icons_205c90_256x240.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-icons_205c90_256x240.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-icons_444444_256x240.png b/src/collective/js/jqueryui/css/sunburst/images/ui-icons_444444_256x240.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-icons_444444_256x240.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-icons_444444_256x240.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-icons_dd0000_256x240.png b/src/collective/js/jqueryui/css/sunburst/images/ui-icons_dd0000_256x240.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-icons_dd0000_256x240.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-icons_dd0000_256x240.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-icons_dd8800_256x240.png b/src/collective/js/jqueryui/css/sunburst/images/ui-icons_dd8800_256x240.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-icons_dd8800_256x240.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-icons_dd8800_256x240.png diff --git a/collective/js/jqueryui/css/sunburst/images/ui-icons_ffffff_256x240.png b/src/collective/js/jqueryui/css/sunburst/images/ui-icons_ffffff_256x240.png similarity index 100% rename from collective/js/jqueryui/css/sunburst/images/ui-icons_ffffff_256x240.png rename to src/collective/js/jqueryui/css/sunburst/images/ui-icons_ffffff_256x240.png diff --git a/collective/js/jqueryui/css/sunburst/jqueryui.css b/src/collective/js/jqueryui/css/sunburst/jqueryui.css similarity index 100% rename from collective/js/jqueryui/css/sunburst/jqueryui.css rename to src/collective/js/jqueryui/css/sunburst/jqueryui.css diff --git a/collective/js/jqueryui/example/__init__.py b/src/collective/js/jqueryui/example/__init__.py similarity index 100% rename from collective/js/jqueryui/example/__init__.py rename to src/collective/js/jqueryui/example/__init__.py diff --git a/collective/js/jqueryui/example/configure.zcml b/src/collective/js/jqueryui/example/configure.zcml similarity index 100% rename from collective/js/jqueryui/example/configure.zcml rename to src/collective/js/jqueryui/example/configure.zcml diff --git a/collective/js/jqueryui/example/jqueryui.js b/src/collective/js/jqueryui/example/jqueryui.js similarity index 100% rename from collective/js/jqueryui/example/jqueryui.js rename to src/collective/js/jqueryui/example/jqueryui.js diff --git a/collective/js/jqueryui/example/jqueryui.pt b/src/collective/js/jqueryui/example/jqueryui.pt similarity index 100% rename from collective/js/jqueryui/example/jqueryui.pt rename to src/collective/js/jqueryui/example/jqueryui.pt diff --git a/collective/js/jqueryui/example/jqueryui.py b/src/collective/js/jqueryui/example/jqueryui.py similarity index 100% rename from collective/js/jqueryui/example/jqueryui.py rename to src/collective/js/jqueryui/example/jqueryui.py diff --git a/collective/js/jqueryui/interfaces.py b/src/collective/js/jqueryui/interfaces.py similarity index 100% rename from collective/js/jqueryui/interfaces.py rename to src/collective/js/jqueryui/interfaces.py diff --git a/collective/js/jqueryui/jquery-ui-1.10.4.custom.js b/src/collective/js/jqueryui/jquery-ui-1.10.4.custom.js similarity index 100% rename from collective/js/jqueryui/jquery-ui-1.10.4.custom.js rename to src/collective/js/jqueryui/jquery-ui-1.10.4.custom.js diff --git a/collective/js/jqueryui/jquery-ui-1.10.4.custom.min.js b/src/collective/js/jqueryui/jquery-ui-1.10.4.custom.min.js similarity index 100% rename from collective/js/jqueryui/jquery-ui-1.10.4.custom.min.js rename to src/collective/js/jqueryui/jquery-ui-1.10.4.custom.min.js diff --git a/collective/js/jqueryui/jquery-ui-i18n.js b/src/collective/js/jqueryui/jquery-ui-i18n.js similarity index 100% rename from collective/js/jqueryui/jquery-ui-i18n.js rename to src/collective/js/jqueryui/jquery-ui-i18n.js diff --git a/collective/js/jqueryui/jqueryui_icon.jpg b/src/collective/js/jqueryui/jqueryui_icon.jpg similarity index 100% rename from collective/js/jqueryui/jqueryui_icon.jpg rename to src/collective/js/jqueryui/jqueryui_icon.jpg diff --git a/collective/js/jqueryui/js/jquery.ui.accordion.min.js b/src/collective/js/jqueryui/js/jquery.ui.accordion.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.accordion.min.js rename to src/collective/js/jqueryui/js/jquery.ui.accordion.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.autocomplete.min.js b/src/collective/js/jqueryui/js/jquery.ui.autocomplete.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.autocomplete.min.js rename to src/collective/js/jqueryui/js/jquery.ui.autocomplete.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.button.min.js b/src/collective/js/jqueryui/js/jquery.ui.button.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.button.min.js rename to src/collective/js/jqueryui/js/jquery.ui.button.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.core.min.js b/src/collective/js/jqueryui/js/jquery.ui.core.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.core.min.js rename to src/collective/js/jqueryui/js/jquery.ui.core.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.datepicker.min.js b/src/collective/js/jqueryui/js/jquery.ui.datepicker.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.datepicker.min.js rename to src/collective/js/jqueryui/js/jquery.ui.datepicker.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.dialog.min.js b/src/collective/js/jqueryui/js/jquery.ui.dialog.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.dialog.min.js rename to src/collective/js/jqueryui/js/jquery.ui.dialog.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.draggable.min.js b/src/collective/js/jqueryui/js/jquery.ui.draggable.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.draggable.min.js rename to src/collective/js/jqueryui/js/jquery.ui.draggable.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.droppable.min.js b/src/collective/js/jqueryui/js/jquery.ui.droppable.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.droppable.min.js rename to src/collective/js/jqueryui/js/jquery.ui.droppable.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-blind.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-blind.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-blind.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-blind.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-bounce.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-bounce.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-bounce.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-bounce.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-clip.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-clip.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-clip.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-clip.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-drop.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-drop.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-drop.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-drop.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-explode.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-explode.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-explode.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-explode.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-fade.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-fade.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-fade.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-fade.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-fold.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-fold.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-fold.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-fold.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-highlight.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-highlight.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-highlight.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-highlight.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-pulsate.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-pulsate.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-pulsate.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-pulsate.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-scale.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-scale.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-scale.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-scale.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-shake.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-shake.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-shake.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-shake.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-slide.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-slide.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-slide.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-slide.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect-transfer.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect-transfer.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect-transfer.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect-transfer.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.effect.min.js b/src/collective/js/jqueryui/js/jquery.ui.effect.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.effect.min.js rename to src/collective/js/jqueryui/js/jquery.ui.effect.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.menu.min.js b/src/collective/js/jqueryui/js/jquery.ui.menu.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.menu.min.js rename to src/collective/js/jqueryui/js/jquery.ui.menu.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.mouse.min.js b/src/collective/js/jqueryui/js/jquery.ui.mouse.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.mouse.min.js rename to src/collective/js/jqueryui/js/jquery.ui.mouse.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.position.min.js b/src/collective/js/jqueryui/js/jquery.ui.position.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.position.min.js rename to src/collective/js/jqueryui/js/jquery.ui.position.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.progressbar.min.js b/src/collective/js/jqueryui/js/jquery.ui.progressbar.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.progressbar.min.js rename to src/collective/js/jqueryui/js/jquery.ui.progressbar.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.resizable.min.js b/src/collective/js/jqueryui/js/jquery.ui.resizable.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.resizable.min.js rename to src/collective/js/jqueryui/js/jquery.ui.resizable.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.selectable.min.js b/src/collective/js/jqueryui/js/jquery.ui.selectable.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.selectable.min.js rename to src/collective/js/jqueryui/js/jquery.ui.selectable.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.slider.min.js b/src/collective/js/jqueryui/js/jquery.ui.slider.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.slider.min.js rename to src/collective/js/jqueryui/js/jquery.ui.slider.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.sortable.min.js b/src/collective/js/jqueryui/js/jquery.ui.sortable.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.sortable.min.js rename to src/collective/js/jqueryui/js/jquery.ui.sortable.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.spinner.min.js b/src/collective/js/jqueryui/js/jquery.ui.spinner.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.spinner.min.js rename to src/collective/js/jqueryui/js/jquery.ui.spinner.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.tabs.min.js b/src/collective/js/jqueryui/js/jquery.ui.tabs.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.tabs.min.js rename to src/collective/js/jqueryui/js/jquery.ui.tabs.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.tooltip.min.js b/src/collective/js/jqueryui/js/jquery.ui.tooltip.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.tooltip.min.js rename to src/collective/js/jqueryui/js/jquery.ui.tooltip.min.js diff --git a/collective/js/jqueryui/js/jquery.ui.widget.min.js b/src/collective/js/jqueryui/js/jquery.ui.widget.min.js similarity index 100% rename from collective/js/jqueryui/js/jquery.ui.widget.min.js rename to src/collective/js/jqueryui/js/jquery.ui.widget.min.js diff --git a/collective/js/jqueryui/plone.zcml b/src/collective/js/jqueryui/plone.zcml similarity index 100% rename from collective/js/jqueryui/plone.zcml rename to src/collective/js/jqueryui/plone.zcml diff --git a/collective/js/jqueryui/profiles.zcml b/src/collective/js/jqueryui/profiles.zcml similarity index 100% rename from collective/js/jqueryui/profiles.zcml rename to src/collective/js/jqueryui/profiles.zcml diff --git a/collective/js/jqueryui/profiles/base/actions.xml b/src/collective/js/jqueryui/profiles/base/actions.xml similarity index 100% rename from collective/js/jqueryui/profiles/base/actions.xml rename to src/collective/js/jqueryui/profiles/base/actions.xml diff --git a/collective/js/jqueryui/profiles/base/browserlayer.xml b/src/collective/js/jqueryui/profiles/base/browserlayer.xml similarity index 100% rename from collective/js/jqueryui/profiles/base/browserlayer.xml rename to src/collective/js/jqueryui/profiles/base/browserlayer.xml diff --git a/collective/js/jqueryui/profiles/base/controlpanel.xml b/src/collective/js/jqueryui/profiles/base/controlpanel.xml similarity index 100% rename from collective/js/jqueryui/profiles/base/controlpanel.xml rename to src/collective/js/jqueryui/profiles/base/controlpanel.xml diff --git a/collective/js/jqueryui/profiles/base/jqueryui.txt b/src/collective/js/jqueryui/profiles/base/jqueryui.txt similarity index 100% rename from collective/js/jqueryui/profiles/base/jqueryui.txt rename to src/collective/js/jqueryui/profiles/base/jqueryui.txt diff --git a/collective/js/jqueryui/profiles/base/metadata.xml b/src/collective/js/jqueryui/profiles/base/metadata.xml similarity index 100% rename from collective/js/jqueryui/profiles/base/metadata.xml rename to src/collective/js/jqueryui/profiles/base/metadata.xml diff --git a/collective/js/jqueryui/profiles/base/registry.xml b/src/collective/js/jqueryui/profiles/base/registry.xml similarity index 100% rename from collective/js/jqueryui/profiles/base/registry.xml rename to src/collective/js/jqueryui/profiles/base/registry.xml diff --git a/collective/js/jqueryui/profiles/bbb/cssregistry.xml b/src/collective/js/jqueryui/profiles/bbb/cssregistry.xml similarity index 100% rename from collective/js/jqueryui/profiles/bbb/cssregistry.xml rename to src/collective/js/jqueryui/profiles/bbb/cssregistry.xml diff --git a/collective/js/jqueryui/profiles/bbb/jsregistry.xml b/src/collective/js/jqueryui/profiles/bbb/jsregistry.xml similarity index 100% rename from collective/js/jqueryui/profiles/bbb/jsregistry.xml rename to src/collective/js/jqueryui/profiles/bbb/jsregistry.xml diff --git a/collective/js/jqueryui/profiles/bbb/metadata.xml b/src/collective/js/jqueryui/profiles/bbb/metadata.xml similarity index 100% rename from collective/js/jqueryui/profiles/bbb/metadata.xml rename to src/collective/js/jqueryui/profiles/bbb/metadata.xml diff --git a/collective/js/jqueryui/profiles/bbb/registry.xml b/src/collective/js/jqueryui/profiles/bbb/registry.xml similarity index 100% rename from collective/js/jqueryui/profiles/bbb/registry.xml rename to src/collective/js/jqueryui/profiles/bbb/registry.xml diff --git a/collective/js/jqueryui/profiles/default/metadata.xml b/src/collective/js/jqueryui/profiles/default/metadata.xml similarity index 100% rename from collective/js/jqueryui/profiles/default/metadata.xml rename to src/collective/js/jqueryui/profiles/default/metadata.xml diff --git a/collective/js/jqueryui/profiles/default/registry.xml b/src/collective/js/jqueryui/profiles/default/registry.xml similarity index 100% rename from collective/js/jqueryui/profiles/default/registry.xml rename to src/collective/js/jqueryui/profiles/default/registry.xml diff --git a/collective/js/jqueryui/profiles/uninstall/actions.xml b/src/collective/js/jqueryui/profiles/uninstall/actions.xml similarity index 100% rename from collective/js/jqueryui/profiles/uninstall/actions.xml rename to src/collective/js/jqueryui/profiles/uninstall/actions.xml diff --git a/collective/js/jqueryui/profiles/uninstall/browserlayer.xml b/src/collective/js/jqueryui/profiles/uninstall/browserlayer.xml similarity index 100% rename from collective/js/jqueryui/profiles/uninstall/browserlayer.xml rename to src/collective/js/jqueryui/profiles/uninstall/browserlayer.xml diff --git a/collective/js/jqueryui/profiles/uninstall/controlpanel.xml b/src/collective/js/jqueryui/profiles/uninstall/controlpanel.xml similarity index 100% rename from collective/js/jqueryui/profiles/uninstall/controlpanel.xml rename to src/collective/js/jqueryui/profiles/uninstall/controlpanel.xml diff --git a/collective/js/jqueryui/profiles/uninstall/registry.xml b/src/collective/js/jqueryui/profiles/uninstall/registry.xml similarity index 100% rename from collective/js/jqueryui/profiles/uninstall/registry.xml rename to src/collective/js/jqueryui/profiles/uninstall/registry.xml diff --git a/collective/js/jqueryui/resources.py b/src/collective/js/jqueryui/resources.py similarity index 100% rename from collective/js/jqueryui/resources.py rename to src/collective/js/jqueryui/resources.py diff --git a/collective/js/jqueryui/setuphandlers.py b/src/collective/js/jqueryui/setuphandlers.py similarity index 100% rename from collective/js/jqueryui/setuphandlers.py rename to src/collective/js/jqueryui/setuphandlers.py diff --git a/collective/js/jqueryui/tests.py b/src/collective/js/jqueryui/tests.py similarity index 100% rename from collective/js/jqueryui/tests.py rename to src/collective/js/jqueryui/tests.py diff --git a/collective/js/jqueryui/upgrades.py b/src/collective/js/jqueryui/upgrades.py similarity index 100% rename from collective/js/jqueryui/upgrades.py rename to src/collective/js/jqueryui/upgrades.py diff --git a/collective/js/jqueryui/utils.py b/src/collective/js/jqueryui/utils.py similarity index 100% rename from collective/js/jqueryui/utils.py rename to src/collective/js/jqueryui/utils.py diff --git a/collective/js/jqueryui/viewlet.py b/src/collective/js/jqueryui/viewlet.py similarity index 100% rename from collective/js/jqueryui/viewlet.py rename to src/collective/js/jqueryui/viewlet.py diff --git a/collective/js/jqueryui/zope.zcml b/src/collective/js/jqueryui/zope.zcml similarity index 100% rename from collective/js/jqueryui/zope.zcml rename to src/collective/js/jqueryui/zope.zcml diff --git a/test_plone43.cfg b/test_plone43.cfg new file mode 100644 index 0000000..cab502c --- /dev/null +++ b/test_plone43.cfg @@ -0,0 +1,10 @@ +[buildout] + +extends = + https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-4.3.x.cfg + https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg + base.cfg + +[versions] +setuptools = 42.0.2 +zc.buildout = 2.13.3 diff --git a/test_plone50.cfg b/test_plone50.cfg new file mode 100644 index 0000000..104342c --- /dev/null +++ b/test_plone50.cfg @@ -0,0 +1,10 @@ +[buildout] + +extends = + https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-5.0.x.cfg + https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg + base.cfg + +[versions] +setuptools = 42.0.2 +zc.buildout = 2.13.3 diff --git a/test_plone51.cfg b/test_plone51.cfg new file mode 100644 index 0000000..3619871 --- /dev/null +++ b/test_plone51.cfg @@ -0,0 +1,6 @@ +[buildout] + +extends = + https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-5.1.x.cfg + https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg + base.cfg diff --git a/test_plone52.cfg b/test_plone52.cfg new file mode 100644 index 0000000..9140982 --- /dev/null +++ b/test_plone52.cfg @@ -0,0 +1,6 @@ +[buildout] + +extends = + https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-5.2.x.cfg + https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg + base.cfg