| 1 | [[PageOutline(2-5,Contents,pullout)]] |
| 2 | |
| 3 | = Package Repository |
| 4 | |
| 5 | == Description |
| 6 | |
| 7 | This plugin turns Trac into a private package repository. |
| 8 | |
| 9 | The plugin provides: |
| 10 | * Support for multiple programming language package repositories: |
| 11 | * [#python Python Packages] |
| 12 | * [#javascript Javascript Packages] |
| 13 | |
| 14 | * New Trac admin panel for managing packages: |
| 15 | * Upload package files to Trac |
| 16 | * Delete package files |
| 17 | |
| 18 | * New permissions: |
| 19 | * `PACKAGE_REPOSITORY_VIEW`: Required to use the package repository |
| 20 | * `PACKAGE_REPOSITORY_ADMIN`: Required to use the admin panel |
| 21 | |
| 22 | === Python Packages #python |
| 23 | The plugin implements the [https://www.python.org/dev/peps/pep-0503/ Simple Repository API] so Trac acts as a private package repository similar to PyPI. |
| 24 | |
| 25 | Upload wheel (`.whl`) package files created by `python setup.py bdist_wheel`. |
| 26 | Install them with: `pip install --index-url https://<tracurl>/packages/py/ <packagename>` |
| 27 | |
| 28 | === Javascript Packages #javascript |
| 29 | The plugin implements a [http://wiki.commonjs.org/wiki/Packages/Registry CommonJS Compliant package registry] so Trac acts as a private package repository similar to npm. |
| 30 | |
| 31 | Upload tarball (`.tgz`) package files create by `npm pack`. |
| 32 | Install them with `npm install <packagename> --registry https://<tracurl>/packages/js/` |
| 33 | |
| 34 | |
| 35 | == !Bugs/Feature Requests |
| 36 | |
| 37 | Existing bugs and feature requests for PackageRepositoryPlugin are |
| 38 | [report:9?COMPONENT=PackageRepositoryPlugin here]. |
| 39 | |
| 40 | If you have any issues, create a |
| 41 | [/newticket?component=PackageRepositoryPlugin new ticket]. |
| 42 | |
| 43 | [[TicketQuery(component=PackageRepositoryPlugin&group=type,format=progress)]] |
| 44 | |
| 45 | == Download |
| 46 | |
| 47 | Download the zipped source from [export:packagerepositoryplugin here]. |
| 48 | |
| 49 | == Source |
| 50 | |
| 51 | You can check out PackageRepositoryPlugin from [/svn/packagerepositoryplugin here] using Subversion, or [source:packagerepositoryplugin browse the source] with Trac. |
| 52 | |
| 53 | == Installation |
| 54 | |
| 55 | General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. |
| 56 | |
| 57 | == Recent Changes |
| 58 | |
| 59 | [[ChangeLog(packagerepositoryplugin, 3)]] |
| 60 | |
| 61 | == !Author/Contributors |
| 62 | |
| 63 | **Author:** [wiki:psuter] [[BR]] |
| 64 | **Maintainer:** [[Maintainer]] [[BR]] |
| 65 | **Contributors:** |