Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fedora - Come test a new release of pipenv, the Python development tool

#1
Come test a new release of pipenv, the Python development tool

<div><p><strong><a href="https://github.com/pypa/pipenv">Pipenv</a></strong>&nbsp;is a tool that helps Python developers maintain isolated virtual environments with specifacally defined set of dependencies to achieve reproducible development and deployment environments. It is similar to tools for different programming languages, such as bundler, composer, npm, cargo, yarn, etc.</p>
<p>A new version of pipenv, 2020.6.2, has been recently released. It is now available in Fedora 33 and rawhide. For older Fedoras, the maintainers decided to package it in <a href="https://copr.fedorainfracloud.org/coprs/g/python/pipenv/">COPR</a> to be tested first. So come try it out, before they push it into stable Fedora versions. The new version doesn’t bring any fancy new features, but after two years of development it fixes a lot of problems and does many things differently under the hood. What worked for you previously should continue to work, but might behave slightly differently.</p>
<h2>How to get it</h2>
<p>If you are already running Fedora 33 or rawhide, run <em>$ sudo dnf upgrade pipenv</em> or <em>$ sudo dnf install pipenv</em> and you’ll get the new version.</p>
<p>On Fedora 31 or Fedora 32, you’ll need to use a <a href="https://copr.fedorainfracloud.org/coprs/g/python/pipenv/">copr repository</a> until such time comes that the tested package will be updated in the official place. To enable the repository, run:</p>
<pre>$ sudo dnf copr enable @python/pipenv
</pre>
<p>Then to upgrade pipenv to the new version, run:</p>
<pre>$ sudo dnf upgrade pipenv
</pre>
<p>Or, if you haven’t installed it yet, install it via:</p>
<pre>$ sudo dnf install pipenv
</pre>
<p>In case you ever need to roll back to the officially maintained version, you can run:</p>
<pre>$ sudo dnf copr disable @python/pipenv<br />$ sudo dnf distro-sync pipenv</pre>
<p><em>COPR is not officially supported by Fedora infrastructure. Use packages at your own risk.</em></p>
<h2>How to use it</h2>
<p>If you already have projects managed by the older version of pipenv, you should be able to use the new version in its place without issues. Let us know if something breaks.</p>
<p>If you are not yet familiar with pipenv or want to start a new project, here is a quick guide:</p>
<p>Create a working directory:</p>
<pre>$ mkdir new-project &amp;&amp; cd new-project
</pre>
<p>Initialize pipenv with Python 3:</p>
<pre>$ pipenv --three
</pre>
<p>Install the packages you want, e.g.:</p>
<pre>$ pipenv install six
</pre>
<p>Generate a Pipfile.lock file:</p>
<pre>$ pipenv lock
</pre>
<p>Now you can commit the created Pipfile and Pipfile.lock files into your version control system (e.g. git) and others can use this command in the cloned repository to get the same environment:</p>
<pre>$ pipenv install
</pre>
<p>See <a href="https://pipenv.pypa.io/en/latest/install/">pipenv’s documentation</a> for more examples.</p>
<p><!-- /wp:paragraph --></p>
<h2>How to report problems</h2>
<p>If you encounter any problems with the new pipenv version, please <a href="https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&amp;component=pipenv">report any issues in Fedora’s Bugzilla</a>. The maintainers of the pipenv package in official Fedora repositories and in the copr repository are the same. Please indicate in the text that the report is regarding this new version.</p>
</div>


https://www.sickgaming.net/blog/2020/08/...ment-tool/
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016