#๐Ÿ”’ pip install git+... Installing old version.

23 messages ยท Page 1 of 1 (latest)

rose scarab
#

Hi :),
i have created my first libary (https://pypi.org/project/power-decos/ / https://github.com/MrCode200/power_decos) .
Problem:
when using pip install power_decos or pip install git+https://github.com/MrCode200/power_decos.git it downloads a older version/wrong version.
The code is in git is up to date and has a feature (power_decorator.Cache) which the one when installing doesn't have.
Something i dont understand is that i published the first time my code to pypi with the version which had cache_decorator module but still when pip installing it uses the old version.

Thanks for your help, i really dont know what to do anymore.

Btw. if you find anything else i should change i appreciate if you tell me ๐Ÿ™‚ (as this is my first time publishing a libary)

GitHub

A libary of useful decorators. Contribute to MrCode200/power_decos development by creating an account on GitHub.

cedar crownBOT
#

@rose scarab

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

rose scarab
#

pip install git+... Installing old/wrong version.

#

The libary also contains good documentation in the readme.me file if you want a overview

tropic crater
#

I think if you run pip install git+//some-url, and the url doesn't specify a revision or a branch, then it'll grab whatever revision github thinks is the default

#

I just tried and got this ```
uv pip install git+https://github.com/MrCode200/power_decos.git โ”€โ•ฏ
Updated https://github.com/MrCode200/power_decos.git (c230bb8)
Resolved 1 package in 2.80s
Built power-decos @ git+https://github.com/MrCode200/power_decos.git@c230bb851f803565a581bab246da17ae892ebead
Prepared 1 package in 724ms
Installed 1 package in 1ms

  • power-decos==0.1.1 (from git+https://github.com/MrCode200/power_decos.git@c230bb851f803565a581bab246da17ae892ebead)
    ``` is c230bb851f803565a581bab246da17ae892ebead not what you expected? It's what shows on the github page
dim dock
#

it works fine? maybe you have an older version installed, and need to
use --upgrade?

rose scarab
dim dock
#
>>> from power_decos import *
>>> 
>>> 
#

works fine

rose scarab
dim dock
#

yes, it all works fine

rose scarab
#

i willcheck again

dim dock
#

it's checking out the right revision

rose scarab
#

do you have maybe other critic about how i made the package?

dim dock
#

not really

#

haven't looked at it in detail, but from what I saw, it didn't look weird/unusual or anything

rose scarab
cedar crownBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.