Code Monkey home page Code Monkey logo

Comments (6)

sdispater avatar sdispater commented on June 5, 2024

That's strange. Do you have a ~/.pypirc file? And what is the url specified for pypi?

from poet.

JungWinter avatar JungWinter commented on June 5, 2024

Thanks for your reply!
I don't have ~./pypirc on my linux server and same on local window desktop.
Is it necessary to publish on pypi?

And what is "url for pypi"? I didn't set any url about pypi.

from poet.

sdispater avatar sdispater commented on June 5, 2024

Poet uses twine internally which uses the ~/.pypirc file to get information about remote repositories (like username, password and url).

If you don't have a ~/.pypirc file it will use a default config that seems to fail when registering the package (due to the url being used it seems).

Anyway, this will likely changed in future poet versions to not depend on the ~/.pypirc file and use its own config file with more sensible defaults.

For now, you could create the ~/.pypirc file with the following content:

[distutils]
index-servers =
    pypi

[pypi]
repository: https://pypi.python.org/pypi
username: you-user-name
password: your-password

username and password are optional.

from poet.

JungWinter avatar JungWinter commented on June 5, 2024

Thanks for the advice.
It solved 410 Client Error! 👍

Unfortunately, now I have another error.

[HTTPError]                                                                                                 
  401 Client Error: You must be identified to edit package information for url: https://pypi.python.org/pypi

Do you have any ideas?

+

$ cat poetry.toml 
[package]
name = "basic-poet-example"
version = "0.1.0"
description = "Basic example"
license = "MIT"
authors = [
    "jungwinter <[email protected]>"
]
readme = "README.rst"
homepage = "https://github.com/sdispater/poet"
keywords = ['packaging', 'poet']
include = ['basic_example/**/*', 'my_module.py']
python = ["^3.5"]

[dependencies]
requests = "^2.13"

[dev-dependencies]
pytest = "^3.0"

and

$ cat ~/.pypirc
[distutils]
index-servers =
    pypi

[pypi]
repository: https://pypi.python.org/pypi
username: jungwinter

from poet.

sdispater avatar sdispater commented on June 5, 2024

Do you have an account on pypi? Did you enter the right password?

from poet.

JungWinter avatar JungWinter commented on June 5, 2024

Oh, I confused my pypi password XD.
I could solve the problem!
Thanks for helping! 🍰

from poet.

Related Issues (20)

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.