Comments (4)
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.
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.
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.
Issue resolved by commit d5afdf6.
from cookiecutter-python-app.
Related Issues (13)
- deploy.py fails with --repo option for a local relative directory HOT 3
- Add "scripts-to-rule-them-all" for python package HOT 1
- Explicit `!param` tag resolution fails in config.load() HOT 1
- Add support for GitHub Actions HOT 1
- Migration from YAML to TOML for config files HOT 1
- Path to the config.yml file HOT 2
- config.toml "logging" property always being overwritten
- deprecated call to pytest.main() in test scripts HOT 1
- python setup.py install --user is failing (windows / Python 3.4) HOT 3
- Import not used HOT 1
- Use safe_load() to load YAML config files HOT 1
- app is not working out of the box HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookiecutter-python-app.