dh-virtualenv | Python virtualenvs in Debian packages

 by   spotify Python Version: 1.2.2 License: GPL-2.0

kandi X-RAY | dh-virtualenv Summary

kandi X-RAY | dh-virtualenv Summary

dh-virtualenv is a Python library typically used in Jupyter, Debian applications. dh-virtualenv has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has medium support. You can download it from GitHub.

dh-virtualenv is a tool that aims to combine Debian packaging with self-contained virtualenv based Python deployments. The idea behind dh-virtualenv is to be able to combine the power of Debian packaging with the sandboxed nature of virtualenvs. In addition to this, using virtualenv enables installing requirements via Python Package Index instead of relying on the operating system provided Python packages. The only limiting factor is that you have to run the same Python interpreter as the operating system. For complete online documentation including installation instructions, see the online documentation.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              dh-virtualenv has a medium active ecosystem.
              It has 1562 star(s) with 190 fork(s). There are 43 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 31 open issues and 171 have been closed. On average issues are closed in 129 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of dh-virtualenv is 1.2.2

            kandi-Quality Quality

              dh-virtualenv has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              dh-virtualenv is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              dh-virtualenv releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              dh-virtualenv saves you 508 person hours of effort in developing the same functionality from scratch.
              It has 1199 lines of code, 86 functions and 11 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed dh-virtualenv and discovered the below as its top functions. This is intended to give you an instant insight into dh-virtualenv implemented functionality, and help decide if they suit your requirements.
            • Saves the project
            • Save autoscript files
            • Save the installed subsvars
            • Save the rtupdate config files
            Get all kandi verified functions for this library.

            dh-virtualenv Key Features

            No Key Features are available at this moment for dh-virtualenv.

            dh-virtualenv Examples and Code Snippets

            copy iconCopy
            --- a/debian/changelog
            +++ b/debian/changelog
            @@ -1,3 +1,9 @@
            +dh-virtualenv (1.1-1~~dev1) unstable; urgency=medium
            +
            +  * Non-maintainer upload.
            +
            + -- Juergen Hermann   Wed, 20 Jun 2018 10:22:32 +0000
            +
             dh-virtualenv (1.0-1) unstable; urgency=medi  
            copy iconCopy
            git clone https://github.com/1and1/debianized-sentry.git
            cd debianized-sentry/
            # or "pip download --no-deps --no-binary :all: debianized-sentry" and unpack the archive
            
            sudo apt-get install build-essential debhelper devscripts equivs
            
            # Extra steps o  
            dh-pipenv,Getting Started
            Pythondot img3Lines of Code : 5dot img3no licencesLicense : No License
            copy iconCopy
            override_dh_virtualenv:
                dh_virtualenv \
                    --preinstall pipenv==9.0.1 \
                    --preinstall dh-pipenv==0.1.1 \
                    --pip-tool dh-pipenv
              

            Community Discussions

            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 dh-virtualenv

            You can download it from GitHub.
            You can use dh-virtualenv 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

            If you execute the following commands in your clone of the repository, a virtualenv with all necessary tools is created. invoke docs then builds the documentation into doc/_build/. To start a watchdog that auto-rebuilds documentation and reloads the opened browser tab on any change, call invoke docs -w -b (stop the watchdog using the -k option).
            Find more information at:

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

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/spotify/dh-virtualenv.git

          • CLI

            gh repo clone spotify/dh-virtualenv

          • sshUrl

            git@github.com:spotify/dh-virtualenv.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