Changeset 74:c54d9c90e732
- Timestamp:
- 02/24/07 16:43:37 (18 months ago)
- Author:
- Tarek Ziad?? <tarek@…>
- Message:
-
fixed setup
- Location:
- pycommunity
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r73
|
r74
|
|
| 1 | 1 | [recipes] |
| 2 | | recipes=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/recipes |
| | 2 | # put your recipes folders here |
| 3 | 3 | |
| 4 | 4 | [tutorials] |
| 5 | | tuts=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/tutorials |
| | 5 | # put your tutorials folders here |
| 6 | 6 | |
| 7 | 7 | [packages] |
| 8 | | package1=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/src/package1 |
| | 8 | # put your packages here |
| 9 | 9 | |
| 10 | 10 | [targets] |
| 11 | | target1=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/www |
| | 11 | # put your targets here |
| 12 | 12 | |
| 13 | 13 | [templates] |
| 14 | | index=templates/index.pt |
| 15 | | tutorial=templates/tutorial.pt |
| 16 | | recipe=templates/recipe.pt |
| 17 | | glossary=templates/glossary.pt |
| 18 | | recipelist=templates/recipelist.pt |
| 19 | | tutoriallist=templates/tutoriallist.pt |
| 20 | | packageindex=templates/packageindex.pt |
| 21 | | packagedoc=templates/packagedoc.pt |
| 22 | | packagestats=templates/packagestats.pt |
| 23 | | packagesindex=templates/packagesindex.pt |
| 24 | | css=templates/pycommunity.css |
| 25 | | js=templates/pycommunity.js |
| | 14 | index=/etc/pycommunity/index.pt |
| | 15 | tutorial=/etc/pycommunity/tutorial.pt |
| | 16 | recipe=/etc/pycommunity/recipe.pt |
| | 17 | glossary=/etc/pycommunity/glossary.pt |
| | 18 | recipelist=/etc/pycommunity/recipelist.pt |
| | 19 | tutoriallist=/etc/pycommunity/tutoriallist.pt |
| | 20 | packageindex=/etc/pycommunity/packageindex.pt |
| | 21 | packagedoc=/etc/pycommunity/packagedoc.pt |
| | 22 | packagestats=/etc/pycommunity/packagestats.pt |
| | 23 | packagesindex=/etc/pycommunity/packagesindex.pt |
| | 24 | css=/etc/pycommunity/pycommunity.css |
| | 25 | js=/etc/pycommunity/pycommunity.js |
| 26 | 26 | |
| 27 | 27 | [options] |
| 28 | 28 | projectname=PyCommunity |
| 29 | | media=templates/media |
| 30 | | glossary=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/doc/glossary.txt |
| 31 | | index=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/doc/README.txt |
| 32 | | packages=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/doc/packages.txt |
| | 29 | media=/etc/pycommunity/media |
| | 30 | glossary=/etc/pycommunity/glossary.txt |
| | 31 | index=/etc/pycommunity/README.txt |
| | 32 | packages=/etc/pycommunity/packages.txt |
| 33 | 33 | |
| 34 | 34 | [skipfolder] |
| 35 | | tests=tests |
| | 35 | # put here the folders you want to skip |
| 36 | 36 | |
-
|
r71
|
r74
|
|
| 36 | 36 | |
| 37 | 37 | if __name__ == '__main__': |
| | 38 | logging.info('Starting site building') |
| 38 | 39 | if len(sys.argv) > 1: |
| 39 | 40 | buildSite(sys.argv[1]) |
| 40 | 41 | else: |
| 41 | | buildSite() |
| 42 | | |
| | 42 | buildSite('/etc/pycommunity/pycommunity.conf') |
| | 43 | logging.info('Site building ended.') |
-
|
r71
|
r74
|
|
| 21 | 21 | """ |
| 22 | 22 | import sys |
| | 23 | import os |
| 23 | 24 | |
| 24 | 25 | classifiers = """\ |
| … |
… |
|
| 42 | 43 | doclines = __doc__.split("\n") |
| 43 | 44 | |
| | 45 | dirname = os.path.dirname(__file__) |
| | 46 | if dirname == '': |
| | 47 | dirname = '.' |
| | 48 | |
| | 49 | etc_dir = os.path.join(dirname, 'etc') |
| | 50 | etc_files = [] |
| | 51 | |
| | 52 | for root, dir_, files in os.walk(etc_dir): |
| | 53 | for file_ in files: |
| | 54 | path = os.path.join(root, file_) |
| | 55 | if not os.path.isfile(path): |
| | 56 | continue |
| | 57 | etc_files.append(path) |
| | 58 | |
| | 59 | |
| 44 | 60 | setup(name="PyCommunity", |
| 45 | 61 | version="0.1a", |
| … |
… |
|
| 53 | 69 | long_description = "\n".join(doclines[2:]), |
| 54 | 70 | scripts = ['pycy'], |
| 55 | | packages = ['pycommunity'] |
| 56 | | ) |
| | 71 | packages = ['pycommunity'], |
| | 72 | install_requires = ['cheesecake', 'cheetah'], |
| | 73 | data_files = [('/etc/pycommunity', etc_files)]) |
| 57 | 74 | |