Giter Club home page Giter Club logo

Comments (4)

mdklatt avatar mdklatt commented on July 17, 2024

In the current implementation, the template application's top-level etc/ directory is for configuration files and other user-editable assets. The data_files directive in setup.py is used to install this directory to the application install root. This directive is deprecated in Setuptools and has no comparable alternative. The recommended replacement is to use package data, but internal package data is not suitable for user-facing assets.

Using an external tool seems to be the only option to install files external to the wheel/package.

from cookiecutter-python-app.

mdklatt avatar mdklatt commented on July 17, 2024

Commit ac01709 replaces setup.py with pyproject.toml, but the etc/ directory now has to be installed manually. The installation process depends on the installation target (virtualenv, Docker image, etc.), which is outside the scope of this template.

from cookiecutter-python-app.

mdklatt avatar mdklatt commented on July 17, 2024

The pyproject.toml file and related standards has improved the packaging and distribution of Python libraries, but has done nothing for applications (it has arguably made it worse). See, for example, this request for data_files support in Poetry for a discussion of the issues around installing external data files along with a Python application.

Installation is a such a multi-faceted problem that it cannot be captured in this template without making a lot of assumptions. So, the final decision about how to handle the etc/ directory during installation will be left to the user.

from cookiecutter-python-app.

mdklatt avatar mdklatt commented on July 17, 2024

Issue resolved by commit d5afdf6.

from cookiecutter-python-app.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.