Giter VIP home page Giter VIP logo

Comments (11)

solaluset avatar solaluset commented on July 18, 2024 1

Published as i18nice 🎉

from i18nice.

solaluset avatar solaluset commented on July 18, 2024

Hi

You're messing the ways of installing from git. Either of these two lines should work:
https://github.com/Krutyi-4el/python-i18n/archive/master.zip (without the git+!)

git+https://github.com/Krutyi-4el/python-i18n

I wasn't planning on publishing the package. It may be a good idea in the future, though.

from i18nice.

deajan avatar deajan commented on July 18, 2024

Indeed, I wasn't using the requirements file correctly.
Thanks for your help.

from i18nice.

deajan avatar deajan commented on July 18, 2024

Mind creating a tag meanwhile ?

from i18nice.

deajan avatar deajan commented on July 18, 2024

Just for the sake of sanity, using https://github.com/Krutyi-4el/python-i18n/archive/master.zip in requirements.txtwill end up with pkg_resources.extern.packaging.requirements.InvalidRequirement: Parse error at "'+https:/'": Expected string_end error.
The same applies when using the git+ form.

The syntax in requirements.txt needs to be:

python-i18n@https://github.com/Krutyi-4el/python-i18n/archive/master.zip

But then pypi package uploads will fail.
Unless you publish your package, one cannot use it in a requirements.txt file for both pypi and local setups.

from i18nice.

solaluset avatar solaluset commented on July 18, 2024

Looks like bizarre issue for me. However, I've never worked with PyPi.

from i18nice.

solaluset avatar solaluset commented on July 18, 2024

Btw, have you tried using commit hash or tag instead of branch name? Maybe PyPI doesn't allow branches to ensure dependency locking.

from i18nice.

deajan avatar deajan commented on July 18, 2024

Actually, it ends up with the following error message when trying to upload to PyPI

WARNING  Error during upload. Retry with the --verbose option for more details.
ERROR    HTTPError: 400 Bad Request from https://test.pypi.org/legacy/
         Invalid value for requires_dist. Error: Can't have direct dependency: 'python-i18n @ https://github.com/Krutyi-4el/python-i18n/archive/master.zip'

I've also tried following syntax as per PEP-0440 in requirements.txt:

python-i18n @ git+https://github.com/Krutyi-4el/[email protected]#8999a0d380be8a08beed785e46fbb31dfc03c605

Ends up the same. Reading PEP-0440, it states

Public index servers SHOULD NOT allow the use of direct references in uploaded distributions. Direct references are intended as a tool for software integrators rather than publishers.

It seems that twine just doesn't allow uploading packages to PyPI with direct references

I'm stuck for now. I only can directly bundle your python-i18n package directly into my app as workaround unless you can publish something on PyPI, even a python-i18n-v2 or so package.

from i18nice.

solaluset avatar solaluset commented on July 18, 2024

Hm, I see. I can also suggest another workaround: try adding my repository as a git submodule.

from i18nice.

deajan avatar deajan commented on July 18, 2024

Yeah... But multiplying different dependencies system doesn't seem healthy to me.
Any chance you're making a PyPI release ?

from i18nice.

deajan avatar deajan commented on July 18, 2024

Thank you for the time and effort you put into this ;)

from i18nice.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.