(optional) Step #3: Create a safe environment to build your project My code looks like this:Ĭookiecutter created the Debian package and a considerable amount of the boilerplate needed to create the Debian package. You can get an excellent template by using cookiecutter.Īfter launching cookiecutter and answering the questions. Part of the complexity of building a Debian package is dealing with the boiler-plate of files that you need to create. └── tests.py Step #2: Get cookiecutter and the dh-virtualev: It has a requirements file but not a setup.py. The code is not structured as a package (in the Python sense). My sudoku solver application is an accumulation of technologies that I wanted to learn at the time. To learn to use dh-virtualenv I decided to package an old project with a certain complexity. The best tutorial that I found is the following from P圓g. You can find tutorials to create packages for compiled languages, but for Python is hard to find. I must say, that the documentation to create a. I always wanted to create a Debian package. Specifically, I found that Spotify created dh-virtualenv as a tool to simplify the process of creating Debian packages for their python projects. deb files to distribute their applications to production. The solution:ĭoing my research, I found that some enterprises are building. Part of the problem is that despite Python’s popularity, there is no official way of doing this. What is the appropriate way to deploy it to production servers? The application uses Python 3.5, but has some newer external dependencies. I wrote a Python application that is supposed to run on Debian 9/10.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |