Is there a PyPi source download link that always points to the lastest version?

2024/11/16 10:44:39

Say my latest version of a package is on PyPi and the source can be downloaded with this url:

https://pypi.python.org/packages/source/p/pydy/pydy-0.3.1.tar.gz

I'd really like to have a url that looks like:

https://pypi.python.org/packages/source/p/pydy/pydy-latest.tar.gz

which will always redirect to the latest version, in this case 0.3.1. Does this exist?

Answer

No, pypi provides no such links. Releases can have multiple download files (binaries for different Python versions, different distribution formats, etc), and that set of downloadable files can differ from version to version.

Use a decent installer tool (such as pip) and have it query pypi for you, then determine what is the latest version and what to best download for that version, instead.

For example, pip install -U will install the latest version for you, or upgrade an already installed version to the latest.

For a project page, just link to the PyPI page without a version:

https://pypi.python.org/pypi/pydy

and visitors are shown the currently visible release. Unless you state otherwise, old releases are automatically hidden when you add a new release.

https://en.xdnf.cn/q/71681.html

Related Q&A

Can this breadth-first search be made faster?

I have a data set which is a large unweighted cyclic graph The cycles occur in loops of about 5-6 paths. It consists of about 8000 nodes and each node has from 1-6 (usually about 4-5) connections. Im d…

How to remove rows of a DataFrame based off of data from another DataFrame?

Im new to pandas and Im trying to figure this scenario out: I have a sample DataFrame with two products. df = Product_Num Date Description Price 10 1-1-18 Fruit Snacks 2.9910 1-2-18 …

Amazon S3 Python S3Boto 403 Forbidden When Signature Has + sign

I am using Django and S3Boto and whenever a signature has a + sign in it, I get a 403 Forbidden. If there is no + sign in the signature, I get the resource just fine. What could be wrong here?UPDATE: …

List comparison of element

I have a question and it is a bit hard for me to explain so I will be using lots of examples to help you all understand and see if you could help me.Say I have two lists containing book names from best…

Partition pyspark dataframe based on the change in column value

I have a dataframe in pyspark. Say the has some columns a,b,c... I want to group the data into groups as the value of column changes. SayA B 1 x 1 y 0 x 0 y 0 x 1 y 1 x 1 yThere will be 3 grou…

Error group argument must be None for now in multiprocessing.pool

Below is my python script.import multiprocessing # We must import this explicitly, it is not imported by the top-level # multiprocessing module. import multiprocessing.pool import timefrom random impor…

Making the diamond square fractal algorithm infinite

Im trying to generate an infinite map, as such. Im doing this in Python, and I cant get the noise libraries to correctly work (they dont seem to ever find my VS2010, and doing it in raw Python would be…

How do I generate coverage xml report for a single package?

Im using nose and coverage to generate coverage reports. I only have one package right now, ae, so I specify to only cover that: nosetests -w tests/unit --with-xunit --with-coverage --cover-package=aeA…

Asynchronous URLfetch when we dont care about the result? [Python]

In some code Im writing for GAE I need to periodically perform a GET on a URL on another system, in essence pinging it and Im not terribly concerned if the request fails, times out or succeeds.As I bas…

Python: How to fill out form all at once with splinter/Browser?

Currently, I’m filling out the form on a site with the following:browser.fill(‘form[firstname]’, ‘Mabel’) browser.fill(‘form[email]’, ‘[email protected]’) browser.select(‘form[color]’, ‘yel…