-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add license, docs and travis test file
- Loading branch information
Sebastian Vetter
committed
Oct 15, 2012
1 parent
2c27318
commit d911335
Showing
5 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
*.swp | ||
*.py[co] | ||
.vagrant | ||
MANIFEST | ||
|
||
.tox/ | ||
build/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: python | ||
python: | ||
- 2.6 | ||
- 2.7 | ||
install: | ||
- "python setup.py install" | ||
script: | ||
- "which node" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Copyright (c) 2012, Sebastian Vetter including code from Eugene Kalinin. | ||
|
||
Some rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
3. The names of the contributors may be used to endorse or | ||
promote products derived from this software without specific | ||
prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include README.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,52 @@ | ||
virtual-node | ||
============ | ||
|
||
This package is a wrapper around the `nose.js`_ sources and provides a | ||
convenient way to install it directly into your ``virtualenv`` instead | ||
of globally. I created this package to play around with a simple | ||
installation for Django projects that us `django-compressor`_'s | ||
precompiler to generate CSS from `less`_ files. | ||
|
||
The install routine used in ``setup.py`` is adapted from the | ||
`nodeenv`_ package provided by Eugene Kalinin. The difference is that I want | ||
to install node.js into an existing ``virtualenv`` instead of creating | ||
a specific environment for node. | ||
|
||
I am using this in combination with `virtual-less`_ which installs the | ||
``lessc`` commandline tool into a virtual environment. | ||
|
||
.. _`less`: http://lesscss.org | ||
.. _`node.js`: http://nodejs.org/ | ||
.. _`virtual-less`: http://github.com/elbaschid/virtual-less | ||
.. _`django-compressor`: https://github.com/jezdez/django_compressor | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
Installing the ``node`` into your virtual environment is as easy as:: | ||
|
||
$ pip install virtual-node | ||
|
||
that should be it. You should now be able to run ``node`` from within | ||
your virtual environment even if you have it globally installed. You | ||
can make sure that this is the case:: | ||
|
||
$ which node | ||
/home/elbaschid/.virtualenvs/lessc-test/bin/node | ||
|
||
Issues & Contributions | ||
---------------------- | ||
|
||
Please let me know if you have any issues, please raise an issue | ||
here on the github project. | ||
|
||
If you want to contribute, fork this repository and open a pull | ||
request with your changes. I'd be happy to include them. | ||
|
||
License | ||
------- | ||
|
||
Oscar is released under the permissive `New BSD license`_. | ||
|
||
.. _`New BSD license`: https://github.com/elbaschid/virtual-less/blob/master/LICENSE |