Changeset 121
- Timestamp:
- 08/02/06 08:04:02 (2 years ago)
- Files:
-
- branches/mk/README (modified) (1 diff)
- branches/mk/cheesecake/cheesecake_index.py (modified) (6 diffs)
- branches/mk/support/generate_docs.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/README
r120 r121 126 126 127 127 in [auto-props] section. 128 129 Documentation 130 ------------- 131 132 Most recent code documentation should be alway available 133 at http://agilistas.org/cheesecake/mk/docs/. You can also generate 134 this documentation directly from the Cheesecake sources. Run this command 135 from the main source directory:: 136 137 sh support/generate_docs.sh . 138 139 :Note: Generating documentation requires `epydoc <http://epydoc.sourceforge.net/>`_ 140 tool installed. 128 141 129 142 Buildbot branches/mk/cheesecake/cheesecake_index.py
r119 r121 1 1 #!/usr/bin/env python 2 """ 3 Cheesecake: How tasty is your code? 4 5 The idea of the Cheesecake project is to rank Python packages 6 based on various empiric "kwalitee" factors, such as: 7 8 * whether the package can be downloaded 9 * whether the package can be unpacked 10 * whether the package can be installed into an alternate directory 11 * existence of certain files such as README, INSTALL, LICENSE, setup.py etc. 12 * existence of certain directories such as doc, test, demo, examples 13 * percentage of modules/functions/classes/methods with docstrings 14 * percentage of functions/methods that are unit tested 15 * average pylint score for all non-test and non-demo modules 16 * whether the package can be unpacked 17 * whether the package can be installed into an alternate directory 2 """Cheesecake: How tasty is your code? 3 4 The idea of the Cheesecake project is to rank Python packages based on various 5 empirical "kwalitee" factors, such as: 6 7 * whether the package can be downloaded from PyPI given its name 8 * whether the package can be unpacked 9 * whether the package can be installed into an alternate directory 10 * existence of certain files such as README, INSTALL, LICENSE, setup.py etc. 11 * percentage of modules/functions/classes/methods with docstrings 12 * ... and many others 18 13 """ 19 14 … … 456 451 `get_attributes` function. 457 452 458 :Warning: Don't use *args and **kwds arguments for this method.453 :Warning: Don't use \*args and \*\*kwds arguments for this method. 459 454 """ 460 455 self.value = sum(self._iter_indices()) … … 1325 1320 """Download package using setuptools utilities. 1326 1321 1327 :Ivariables:1322 New attributes: 1328 1323 download_url : str 1329 1324 URL that package was downloaded from. … … 1456 1451 archive types. 1457 1452 1458 :Ivariables:1453 New attributes: 1459 1454 original_package_name : str 1455 Package name guessed from the package name. Will be set only 1456 if package name is different than unpacked directory name. 1460 1457 """ 1461 1458 self.sandbox_pkg_dir = os.path.join(self.sandbox, self.package_name) … … 1491 1488 """Get package files and directories. 1492 1489 1493 :Ivariables:1490 New attributes: 1494 1491 dirs_list : list 1495 1492 List of directories package contains. … … 1553 1550 """Verify that package can be installed in alternate directory. 1554 1551 1555 :Ivariables:1552 New attributes: 1556 1553 installed : bool 1557 1554 Describes whenever package has been succefully installed. branches/mk/support/generate_docs.sh
r46 r121 1 1 #!/bin/sh 2 2 3 PATH=$PATH:/usr/bin:/usr/local/bin 4 3 5 # Generate documentation for Cheesecake. 4 /usr/local/bin/epydoc \ 6 epydoc \ 7 --html \ 8 --verbose \ 5 9 --docformat restructuredtext \ 6 - nCheesecake \7 - uhttp://pycheesecake.org \10 --name Cheesecake \ 11 --url http://pycheesecake.org \ 8 12 -o $1/docs/ \ 9 13 cheesecake/
