Skip to content

Commit 18b8c6a

Browse files
committed
add setup.py and related pieces, including minimal docs
--HG-- extra : convert_revision : svn%3A98f53aa3-d424-0410-b225-a548b0275c4d/Projects/virtualenvwrapper/trunk%401724
1 parent 55ad84e commit 18b8c6a

File tree

4 files changed

+122
-4
lines changed

4 files changed

+122
-4
lines changed

Diff for: MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include README.html

Diff for: Makefile

+16-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,22 @@ info:
1313
VERSION=$(VERSION)
1414
RELEASE=$(RELEASE)
1515

16-
package: dist export
17-
(rm -f dist/$(RELEASE).zip)
18-
(cd dist/; tar zcvf $(RELEASE).tar.gz $(RELEASE))
19-
mv dist/*.tar.gz ~/Desktop/
16+
package:
17+
rm -f setup.py
18+
$(MAKE) setup.py README.html
19+
python setup.py sdist --force-manifest
20+
mv dist/*.gz ~/Desktop/
21+
22+
register: setup.py
23+
python setup.py register
24+
25+
README.html: README
26+
rst2html.py $< $@
27+
28+
%: %.in
29+
cat $< | sed 's/VERSION/$(VERSION)/g' > $@
30+
chmod -w $@
31+
2032

2133
dist:
2234
mkdir -p dist

Diff for: README

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#################
2+
virtualenvwrapper
3+
#################
4+
5+
===========
6+
Quick Setup
7+
===========
8+
9+
1. Add a line like ``export WORKON_HOME=$HOME/.virtualenvs`` to your .bashrc.
10+
2. Add a line like ``source /path/to/this/file/virtualenvwrapper_bashrc`` to your .bashrc.
11+
3. Run: ``source ~/.bashrc``
12+
4. Run: ``workon``
13+
5. A list of environments, empty, is printed.
14+
6. Run: ``mkvirtualenv temp``
15+
7. Run: ``workon``
16+
8. This time, the ``temp`` environment is included.
17+
9. Run: ``workon temp``
18+
10. The virtual environment is activated.
19+
20+
==========
21+
References
22+
==========
23+
24+
For more details, refer to the column I wrote for the May 2008 issue of Python Magazine: `virtualenvwrapper | And Now For Something Completely Different <http://www.doughellmann.com/articles/CompletelyDifferent-2008-05-virtualenvwrapper/index.html>`_.

Diff for: setup.py.in

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
#!/usr/bin/env python
2+
#
3+
# $Id: setup.py 120 2003-04-23 12:18:54Z doughellmann $
4+
#
5+
# Time-stamp: <06/12/31 12:03:26 dhellmann>
6+
#
7+
# Copyright 2001 Doug Hellmann.
8+
#
9+
#
10+
# All Rights Reserved
11+
#
12+
# Permission to use, copy, modify, and distribute this software and
13+
# its documentation for any purpose and without fee is hereby
14+
# granted, provided that the above copyright notice appear in all
15+
# copies and that both that copyright notice and this permission
16+
# notice appear in supporting documentation, and that the name of Doug
17+
# Hellmann not be used in advertising or publicity pertaining to
18+
# distribution of the software without specific, written prior
19+
# permission.
20+
#
21+
# DOUG HELLMANN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
22+
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
23+
# NO EVENT SHALL DOUG HELLMANN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
24+
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
25+
# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
26+
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
27+
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
28+
#
29+
"""Distutils setup file for Proctor
30+
31+
"""
32+
33+
#
34+
# Import system modules
35+
#
36+
from distutils.core import setup
37+
import os
38+
39+
#
40+
# Import Local modules
41+
#
42+
43+
#
44+
# Module
45+
#
46+
47+
long_description = open('README', 'rt').read()
48+
49+
setup (
50+
name = 'virtualenvwrapper',
51+
version = 'VERSION',
52+
53+
description = 'Enhancements to virtualenv',
54+
long_description = long_description,
55+
56+
author = 'Doug Hellmann',
57+
author_email = '[email protected]',
58+
59+
url = 'http://www.doughellmann.com/projects/virtualenvwrapper/',
60+
download_url = 'http://www.doughellmann.com/downloads/Proctor-VERSION.tar.gz',
61+
62+
classifiers = [ 'Development Status :: 5 - Production/Stable',
63+
'License :: OSI Approved :: BSD License',
64+
'Programming Language :: Python',
65+
'Intended Audience :: Developers',
66+
'Environment :: Console',
67+
],
68+
69+
platforms = ('Any',),
70+
71+
scripts = ['virtualenvwrapper_bashrc',
72+
],
73+
74+
provides=['virtualenvwrapper',
75+
],
76+
requires=['virtualenv'],
77+
78+
data_files=[('docs', ['README.html']),
79+
],
80+
)
81+

0 commit comments

Comments
 (0)