Assembles WAR files from Python (Jython) WSGI applications
Project description
snakefight
snakefight generates WAR files from Python (Jython) WSGI applications, suitable for deployment to Java Servlet containers.
Installation
snakefight requires at least Jython 2.5b2. To install:
$ easy_install snakefight
Creating WAR files
snakefight provides a new distutils command: bdist_war.
To create a WAR file, create a web.xml deployment descriptor (which would typically utilize the modjy library for the actual Servlet) and run:
$ jython setup.py bdist_war --web_xml web.xml
snakefight can automatically generate a web.xml (utilizing modjy) for Paste style projects (those that support the paste.app_factory entry point), by specifying the –paste-config option. To specify a named app in the config file, use the –paste-app-name option (which defaults to main):
$ jython setup.py bdist_war --paste-config production.ini --paste-app-name cascade
snakefight can also be ran from CPython as long as a JYTHON_HOME is specified:
$ jython setup.py bdist_war --web_xml web.xml --jython-home=~/jython2.5b2
Other options:
–war-prefix Prefix of the war file to build
–no-jython Don’t include the Jython distribution
TODO
Add options for:
exclude-requires: exclude certain eggs from inclusion
static_files: list of directories to serve public files (through the faster org.jruby.webapp.FileServlet)
specifying modjy options
Support:
non setuptools apps? (like Django apps) django-jython already handles Django but ideally we’d share code
Changelog
0.1
Initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file snakefight-0.1.tar.gz
.
File metadata
- Download URL: snakefight-0.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c75e1ad33c1875a8b950c4d5a15353bec208915be39e10ae01c6a80a3f82728a |
|
MD5 | 91a48cd83a4536a148c1f404348b5f8d |
|
BLAKE2b-256 | a23d39f8da9f9688b1e44f604a80116c72dd51008813842d07c8426ca7b451ce |
File details
Details for the file snakefight-0.1-py2.5.egg
.
File metadata
- Download URL: snakefight-0.1-py2.5.egg
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b50b8ca36fe49c9587bf402d7e315a6fb14d892d8ccc3fb0def134508039d04e |
|
MD5 | 49042879907e3b6f45a47e4b658c5fa4 |
|
BLAKE2b-256 | 4f5ba53b46d3ca5e8bd6b0ed0ebcb300736670b75dbd0b9eb4aa804dfa656438 |