aio-libs / create-aio-app

The boilerplate for aiohttp. Quick setup for your asynchronous web service.
https://create-aio-app.readthedocs.io/
MIT License
310 stars 89 forks source link

need to correct structure to cookiecutter format #56

Open Arfey opened 5 years ago

Arfey commented 5 years ago

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:

@jettify @webknjaz what do u think?

webknjaz commented 5 years ago

What do you mean by saying localize?

webknjaz commented 5 years ago

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

Arfey commented 5 years ago

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.

webknjaz commented 5 years ago

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

jettify commented 5 years ago

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

jettify commented 5 years ago

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

webknjaz commented 5 years ago

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

Arfey commented 5 years ago

good