create-aio-app icon indicating copy to clipboard operation
create-aio-app copied to clipboard

need to correct structure to cookiecutter format

Open Arfey opened this issue 7 years ago • 8 comments

https://github.com/audreyr/cookiecutter#python.

The cookiecutter don't have template for aiohttp in repository, yet. So, i wanna add our template. For that repository need have special structure.

 hooks/
 {project.name}/
 cookiecutter.json

But for good install package all data need be localise inside same directory. I have two ways:

  • split this repository and use as sub-repository (one only for template and second for util)
  • do magic with setup.py(use cmdclass in setup and rewrite some methods)

@jettify @webknjaz what do u think?

Arfey avatar Dec 24 '18 16:12 Arfey

What do you mean by saying localize?

webknjaz avatar Dec 24 '18 20:12 webknjaz

P.S. Don't bring setup-time code into the dist plz.

webknjaz avatar Dec 24 '18 20:12 webknjaz

Current version:

setup.py
package/
    addition_data/

additional_data is existing (localized) in package dir.

For correct work cookiecutter we need have other structure:

setup.py
package/
addition_data/

So, if i move addition_data to the root after pip install the addition_data will be exist in site-packages not in site-packages/create-aio-app.

Arfey avatar Dec 24 '18 20:12 Arfey

Try symlink, then. Otherwise, follow my initial advice of having separate things separately.

webknjaz avatar Dec 25 '18 22:12 webknjaz

I do not have experience with cookiecutter, but looks like other projects prefer separate repo.

jettify avatar Jan 12 '19 20:01 jettify

If you guys think that we need separate repo I can handle repo logistics.

jettify avatar Jan 12 '19 20:01 jettify

That's what I was pointing out since the very beginning. I still think it is a way to go.

webknjaz avatar Jan 13 '19 11:01 webknjaz

good

Arfey avatar Jan 13 '19 16:01 Arfey