Giter VIP home page Giter VIP logo

django-template's People

Contributors

bandirom avatar bilousvladyslav avatar mikhail-gorelov avatar romanri85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

django-template's Issues

Deprecated attribute in compose files

According to compose file specification, the version attribute become deprecated and should not be included in Compose file implementations.

Here is an example of affected code:

version: "3.7"

x-variables: &variables
  ENV_STAGE: local

services:
  web:
  ...

Pull request with all version attributes removed is attached.
#32

Project structure and configuration upgrades

According to modern best practices and PEP-517, Python projects should contain pyproject.toml file at the root of project, which contains build system requirements and configuration for other tools, like linters, tests and etc. Also, defining setup.cfg is a good way to create declarative config and specify all dependencies and metadata.
The usage of both pyproject.toml and setup.cfg simplifies project building and installation in editable mode for different environments using extras options.

Also, it is a best practice to separate tests code and source code using different directories art the root. In such case, it's easy to store and use different types of tests (e2e, integration, unit, etc.) at one place.

In addition to these project structure upgrades, packages installation to to specific directory and copying this content to /usr/bin/ of final layer of image could lead to misbehaviour of entrypoints of installed packages. In order to build python packages in one layer and install them in final, pip wheel should be used to create binaries of dependencies and pip install --no-index --find-links=<wheels_path> to install that binaries in final layer.

Pull request with all suggested enhancements and fixes is attached: #34

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.