From e1ddd184c7c1ebb4b7a5e333325da44e8b21c99d Mon Sep 17 00:00:00 2001 From: Richard Barrell Date: Mon, 7 Nov 2011 12:40:45 -0800 Subject: Current Pyramid uses 'pcreate' rather than 'paster create'. Update HACKING.txt to reflect this. --- HACKING.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HACKING.txt b/HACKING.txt index 0194e9bab..98ab21e10 100644 --- a/HACKING.txt +++ b/HACKING.txt @@ -42,10 +42,10 @@ checkout. $ ../env/bin/python setup.py develop - At that point, you should be able to create new Pyramid projects by using - ``paster create``:: + ``pcreate``:: $ cd ../env - $ bin/paster create -t pyramid_starter starter + $ bin/pcreate -s starter starter - And install those projects (also using ``setup.py develop``) into the virtualenv:: -- cgit v1.2.3 From 54624f36c19b3cd5d107ecd9a1f307651f561ccd Mon Sep 17 00:00:00 2001 From: Richard Barrell Date: Mon, 7 Nov 2011 13:09:53 -0800 Subject: Have pcreate base the project name on just the basedir of the target output path, and use the target output path (pretty much) as-is, so that pcreate no longer appears to go nuts when calling it with an absolute path. --- pyramid/scripts/pcreate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyramid/scripts/pcreate.py b/pyramid/scripts/pcreate.py index 47a709af4..20e531956 100644 --- a/pyramid/scripts/pcreate.py +++ b/pyramid/scripts/pcreate.py @@ -4,6 +4,7 @@ import optparse import os +import os.path import pkg_resources import re import sys @@ -64,8 +65,8 @@ class PCreateCommand(object): def render_scaffolds(self): options = self.options args = self.args - project_name = args[0].lstrip(os.path.sep) - output_dir = os.path.normpath(os.path.join(os.getcwd(), project_name)) + project_name = os.path.basename(args[0]) + output_dir = os.path.normpath(args[0]) pkg_name = _bad_chars_re.sub('', project_name.lower()) safe_name = pkg_resources.safe_name(project_name) egg_name = pkg_resources.to_filename(safe_name) -- cgit v1.2.3 From c0882cfe497a4282e3d32c940b265c58e6d603cb Mon Sep 17 00:00:00 2001 From: Richard Barrell Date: Mon, 7 Nov 2011 13:30:20 -0800 Subject: Added myself to CONTRIBUTORS.txt. --- CONTRIBUTORS.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index a368fb4d2..ced88a082 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -148,3 +148,5 @@ Contributors - Shane Hathaway, 2011/07/22 - Manuel Hermann, 2011/07/11 + +- Richard Barrell, 2011/11/07 -- cgit v1.2.3 From a9e75c453b8ad3abb2ab64f14c3d53637c8ce566 Mon Sep 17 00:00:00 2001 From: Richard Barrell Date: Mon, 7 Nov 2011 14:48:45 -0800 Subject: pcreate scaffolds are allowed to assume that the output_dir that they have been handed is an absolute path. Fix my 'fix' to pcreate.py so that it enforces this again. --- pyramid/scripts/pcreate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyramid/scripts/pcreate.py b/pyramid/scripts/pcreate.py index 20e531956..f559e4f17 100644 --- a/pyramid/scripts/pcreate.py +++ b/pyramid/scripts/pcreate.py @@ -66,7 +66,7 @@ class PCreateCommand(object): options = self.options args = self.args project_name = os.path.basename(args[0]) - output_dir = os.path.normpath(args[0]) + output_dir = os.path.abspath(os.path.normpath(args[0])) pkg_name = _bad_chars_re.sub('', project_name.lower()) safe_name = pkg_resources.safe_name(project_name) egg_name = pkg_resources.to_filename(safe_name) -- cgit v1.2.3