Re: [openstack-dev] Cookiecutter repo for ease in making new projects

2013-09-20 Thread Monty Taylor


On 09/13/2013 02:49 PM, Jay Buffington wrote:
> On Thu, Sep 12, 2013 at 10:08 PM, Monty Taylor  > wrote:
> 
> And boom, you'll have a directory all set up with your new project 
> 
> 
> Awesome.  I tried it and ran into a couple of small issues.  I don't see a 
> launchpad yet, so I'm not sure where to report bugs.

Oops. I'll fix that straight away. I just added a CONTRIBUTING file -
https://review.openstack.org/47658 - the project is managed under the
oslo program, so I just indicated that we should file the bugs there.

> Something is stripping all the new lines at EOF, so flake8 fails.  Also,
> this
> is annoying because vim's default is to add one when it doesn't exist.

This is a bug in upstream cookiecutter. I have submitted a PR upstream:

https://github.com/audreyr/cookiecutter/pull/79

> Also, foo/test/__init__.py needs to call super(TestCase, self).setUp()
> otherwise you get an error that is something like this when you run tox:
> 
> ValueError: TestCase.setUp was not called. Have you upcalled all the
> way up the hierarchy from your setUp? e.g. Call
> super(TestFoo, self).setUp() from your setUp().

Wow. I suck. https://review.openstack.org/#/c/47657/1

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cookiecutter repo for ease in making new projects

2013-09-13 Thread Jay Buffington
On Thu, Sep 12, 2013 at 10:08 PM, Monty Taylor  wrote:

> And boom, you'll have a directory all set up with your new project


Awesome.  I tried it and ran into a couple of small issues.  I don't see a
launchpad yet, so I'm not sure where to report bugs.

Something is stripping all the new lines at EOF, so flake8 fails.  Also,
this
is annoying because vim's default is to add one when it doesn't exist.

Also, foo/test/__init__.py needs to call super(TestCase, self).setUp()
otherwise you get an error that is something like this when you run tox:

ValueError: TestCase.setUp was not called. Have you upcalled all the
way up the hierarchy from your setUp? e.g. Call
super(TestFoo, self).setUp() from your setUp().
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cookiecutter repo for ease in making new projects

2013-09-12 Thread Michael Basnight


Sent from my digital shackles

On Sep 12, 2013, at 10:20 PM, John Griffith  wrote:

> 
> 
> 
> On Thu, Sep 12, 2013 at 11:08 PM, Monty Taylor  wrote:
>> Hey everybody!
>> 
>> You know how, when you want to make a new project, you basically take an
>> existing one, like nova, copy files, and then start deleting? Nobody
>> likes that.
>> 
>> Recently, cookiecutter came to my attention, so we put together a
>> cookiecutter repo for openstack projects to make creating a new one easier:
>> 
>> https://git.openstack.org/cgit/openstack-dev/cookiecutter
>> 
>> It's pretty easy to use. First, install cookiecutter:
>> 
>> sudo pip install cookiecutter
>> 
>> Next, tell cookiecutter you'd like to create a new project based on the
>> openstack template:
>> 
>> cookiecutter git://git.openstack.org/openstack-dev/cookiecutter.git
>> 
>> Cookiecutter will then ask you three questions:
>> 
>> a) What repo groups should it go in? (eg. openstack, openstack-infra,
>> stackforge)
>> b) What is the name of the repo? (eg. mynewproject)
>> c) What is the project's short description? (eg. "OpenStack Wordpress as
>> a Service")
>> 
>> And boom, you'll have a directory all set up with your new project ready
>> and waiting for a "git init ; git add . ; git commit"
>> 
>> Hope this helps folks out - and we'll try to keep it up to date with
>> things that become "best practices" - patches welcome on that front.
>> 
>> Monty
>> 
>> ___
>> OpenStack-dev mailing list
>> OpenStack-dev@lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> Nice!!  Just took it for a spin, worked great!
> 
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Cookiecutter repo for ease in making new projects

2013-09-12 Thread John Griffith
On Thu, Sep 12, 2013 at 11:08 PM, Monty Taylor  wrote:

> Hey everybody!
>
> You know how, when you want to make a new project, you basically take an
> existing one, like nova, copy files, and then start deleting? Nobody
> likes that.
>
> Recently, cookiecutter came to my attention, so we put together a
> cookiecutter repo for openstack projects to make creating a new one easier:
>
> https://git.openstack.org/cgit/openstack-dev/cookiecutter
>
> It's pretty easy to use. First, install cookiecutter:
>
> sudo pip install cookiecutter
>
> Next, tell cookiecutter you'd like to create a new project based on the
> openstack template:
>
> cookiecutter git://git.openstack.org/openstack-dev/cookiecutter.git
>
> Cookiecutter will then ask you three questions:
>
> a) What repo groups should it go in? (eg. openstack, openstack-infra,
> stackforge)
> b) What is the name of the repo? (eg. mynewproject)
> c) What is the project's short description? (eg. "OpenStack Wordpress as
> a Service")
>
> And boom, you'll have a directory all set up with your new project ready
> and waiting for a "git init ; git add . ; git commit"
>
> Hope this helps folks out - and we'll try to keep it up to date with
> things that become "best practices" - patches welcome on that front.
>
> Monty
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
Nice!!  Just took it for a spin, worked great!
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Cookiecutter repo for ease in making new projects

2013-09-12 Thread Monty Taylor
Hey everybody!

You know how, when you want to make a new project, you basically take an
existing one, like nova, copy files, and then start deleting? Nobody
likes that.

Recently, cookiecutter came to my attention, so we put together a
cookiecutter repo for openstack projects to make creating a new one easier:

https://git.openstack.org/cgit/openstack-dev/cookiecutter

It's pretty easy to use. First, install cookiecutter:

sudo pip install cookiecutter

Next, tell cookiecutter you'd like to create a new project based on the
openstack template:

cookiecutter git://git.openstack.org/openstack-dev/cookiecutter.git

Cookiecutter will then ask you three questions:

a) What repo groups should it go in? (eg. openstack, openstack-infra,
stackforge)
b) What is the name of the repo? (eg. mynewproject)
c) What is the project's short description? (eg. "OpenStack Wordpress as
a Service")

And boom, you'll have a directory all set up with your new project ready
and waiting for a "git init ; git add . ; git commit"

Hope this helps folks out - and we'll try to keep it up to date with
things that become "best practices" - patches welcome on that front.

Monty

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev