dh-virtualenv | Python virtualenvs in Debian packages
kandi X-RAY | dh-virtualenv Summary
kandi X-RAY | dh-virtualenv Summary
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
Top functions reviewed by kandi - BETA
- Saves the project
- Save autoscript files
- Save the installed subsvars
- Save the rtupdate config files
dh-virtualenv Key Features
dh-virtualenv Examples and Code Snippets
--- 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
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
override_dh_virtualenv:
dh_virtualenv \
--preinstall pipenv==9.0.1 \
--preinstall dh-pipenv==0.1.1 \
--pip-tool dh-pipenv
Community Discussions
Trending Discussions on dh-virtualenv
QUESTION
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:10setuptools
, 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:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dh-virtualenv
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
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page