Comments (4)
Ironically, I also noticed that if you pass the --verbose
flag to publish, you actually get less informations:
➜ pdm publish --no-build
Uploading ourpackage-4.9.0a0-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.0/145.0 kB • 00:00 • 504.2 MB/s
See /var/folders/js/42fyz4mx6hzddmngv9t7mj7m0000gn/T/pdm-publish-_lj550hi.log for detailed debug log.
[PublishError]: 400 Client Error: Bad Request for url: https://gitlab.ourcompany.com/api/v4/projects/435/packages/pypi
➜
➜ pdm publish --no-build --verbose
Uploading ourpackage-4.9.0a0-py3-none-any.whl
[PublishError]: 400 Client Error: Bad Request for url: https://gitlab.ourcompany.com/api/v4/projects/435/packages/pypi
➜
from pdm.
we do emit errors with response text under verbose mode. also write to a log file under normal verbosity. I am on mobile But you can check it in cli/commands/publish/init.py and you'll know I'm not lying
from pdm.
I made a mock service and did a quick test. Under normal mode:
❯ pdm publish -r http://localhost:8000/ --no-build
Username: sdfsd
Password:
Uploading marko-2.0.2-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.7/51.7 kB • 00:00 • 340.4 MB/s
See /var/folders/4d/r05n15jx1yv7yd4z7qrtmdm00000gn/T/pdm-publish-n84curhw.log for detailed debug log.
[PublishError]: 400 Client Error: Bad Request for url: http://localhost:8000/
The error can be seen in the log file.
And under debug mode(with -vv
):
❯ pdm publish -r http://localhost:8000/ --no-build -vv
Username: fdsf
Password:
Uploading marko-2.0.2-py3-none-any.whl
pdm.termui: Response from http://localhost:8000/:
400 Bad Request
pdm.termui: {"message":"Hello","error":"error"}
[PublishError]: 400 Client Error: Bad Request for url: http://localhost:8000/
from pdm.
OK. Would you merge a PR that make the server's answer displayed with verbose mode rather than debug mode? I think that's what an user would expect.
from pdm.
Related Issues (20)
- `pdm run` doesn't run a script, and doesn't list scripts using `[project.scripts]` HOT 2
- [DOCS] add references to maturin? HOT 1
- Support copying caching method, in addition to symlinking and hardlinking HOT 19
- PDM does not discover variables in .env files in external sources/repositories HOT 6
- Supporting adding `extra` annotations to the exported `requirements` file HOT 7
- `pdm init .` raises [PdmException]: Template pyproject.toml not found HOT 2
- Misleading `PackageWarning` when adding a package (`myst-nb==1.0.0`) with a version free dependency (`ipython`) whose `requires-python` range is not satisfied on the latest version HOT 4
- Installing Local Dependencies From Monorepo HOT 2
- 2.11.2: pdm always prints `INFO: Inside an active virtualenv` HOT 2
- Option to ignore `requires-python` for specific packages HOT 2
- Unable to update black in venv with pdm update --update-all , permission denied HOT 2
- Crash during pdm install with json.decoder.JSONDecodeError: Unterminated string ... HOT 2
- arbitrary git refs not supported in @ syntax HOT 1
- [Want help]Is it possible to use pdm with readthedocs? HOT 2
- Mercurial repo: lockfile should contain hash and not Mercurial "revision" HOT 2
- pdm list contains full license text
- Make venv.with_pip default to True HOT 3
- Environment variable substitution in `cmd` scripts HOT 5
- Allow generating pyproject.toml without the extra project boilerplate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdm.