stdeb | produce Debian packages from Python packages | Build Tool library

 by   astraw Python Version: 0.10.0 License: MIT

kandi X-RAY | stdeb Summary

kandi X-RAY | stdeb Summary

stdeb is a Python library typically used in Utilities, Build Tool applications. stdeb has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install stdeb' or download it from GitHub, PyPI.

produce Debian packages from Python packages
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              stdeb has a low active ecosystem.
              It has 464 star(s) with 100 fork(s). There are 25 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 30 open issues and 76 have been closed. On average issues are closed in 1500 days. There are 9 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of stdeb is 0.10.0

            kandi-Quality Quality

              stdeb has 0 bugs and 0 code smells.

            kandi-Security Security

              stdeb has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              stdeb code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              stdeb is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              stdeb releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              It has 2180 lines of code, 52 functions and 23 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed stdeb and discovered the below as its top functions. This is intended to give you an instant insight into stdeb implemented functionality, and help decide if they suit your requirements.
            • Run distutils
            • Apply a patch command
            • Expand a sdist file
            • Expand a tarball
            • Run the build command
            • Build a source tarball
            • Gets the debinfo from the distribution
            • Build dpkg buildpackage
            • Get the source tarball of a package
            • Find the tar archive for a given package
            • Wrapper around callable
            • Compute the md5sum of a file
            • Create a dictionary of default configuration defaults
            • Convert a Debian name to a Debian source name
            • Convert a name to Debian - style name
            • Send XMLrpc request
            • Parse a response
            • Build the URL
            • Run the docker build
            • Parse a single value from the config
            • Parse configuration values from a section
            Get all kandi verified functions for this library.

            stdeb Key Features

            No Key Features are available at this moment for stdeb.

            stdeb Examples and Code Snippets

            No Code Snippets are available at this moment for stdeb.

            Community Discussions

            QUESTION

            Debian package install Dependency from Git?
            Asked 2020-Sep-16 at 22:40

            I have a Python Package that requires another package to be installed. That package can be downloaded from someone else's github page. I need to turn my package into a .deb file. I am currently doing this using stdeb. Is it possible to make it so when my deb file is installing, it will also download the files from the git and do a "pip install ." on their setup.py?

            ...

            ANSWER

            Answered 2020-Sep-16 at 22:40

            Debian packages are supposed to be self contained. You don't know that when the package is installed that the remote Git server will exist and that it will contain the contents that you want (e.g., they could have been deleted or replaced with malicious contents). You don't even necessarily know that you'll have a network connection at that time.

            Even if, in your environment, you do know that, Debian packages don't expect that, so the files you download via Git and generate by using pip won't be removed by your package, leaving cruft on the user's system. That means that future package installs might break due to this leftover cruft, leading to hard-to-debug errors.

            It is possible to do by using a postinst script, but definitely not a good idea. You'll want to package your dependency in another Debian package or use the existing package from the developer's page instead.

            Source https://stackoverflow.com/questions/63919995

            QUESTION

            How to create a deb package for a python project without setup.py
            Asked 2020-Aug-07 at 22:10

            Any documentation I've found about this topic mentions that the "only" requirement to build a deb package is to have a correct setup.py (and requirements.txt). For instance in dh-virtualenv tutorial, stdeb documentation and the Debian's library style guide for python.

            But nowadays new (amazing) tools like poetry allow to develop (and upload to PyPI) python projects without any setup.py (this file and several others including requirements.txt are all replaced by pyproject.toml). I believe flit allows this too.

            I have developed a python project managed by poetry and would like to package it for Ubuntu/Debian. I guess, as a workaround I can still write a setup.py file that would take its values from pyproject.toml and a requirements.txt file (written by hand using values from poetry.lock).

            But, is there a way to do this without any setup.py file?

            ...

            ANSWER

            Answered 2020-Aug-07 at 22:10

            setuptools, and the setup.py file that it requires, has been the de-facto packaging standard in python for the longest time. The new package managers you mention were enabled by the introduction of PEP 517 and PEP 518 (or read this for a high-level description on the topic), which provide a standardized way of specifying the build backend without the need of a setup.py (and the ensuing hen-egg problem where you already need setuptools to correctly parse it).

            Anyway, it's all still very fresh, and the linux packaging community hasn't caught up yet. I found no recent discussion regarding debian packages, but the rpm side sums it up neatly over here.

            So, the short answer is to just wait a while, and google debian packaging pep517 support every now and then.

            Until then, you can use dephell to generate the setup.py for you as a workaround:

            Source https://stackoverflow.com/questions/63304163

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install stdeb

            You can install using 'pip install stdeb' or download it from GitHub, PyPI.
            You can use stdeb like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install stdeb

          • CLONE
          • HTTPS

            https://github.com/astraw/stdeb.git

          • CLI

            gh repo clone astraw/stdeb

          • sshUrl

            git@github.com:astraw/stdeb.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link