pyyaml icon indicating copy to clipboard operation
pyyaml copied to clipboard

Feature/unify readme

Open rachmadaniHaryono opened this issue 6 years ago • 12 comments

fix #171

rachmadaniHaryono avatar Jun 28 '18 13:06 rachmadaniHaryono

hi, i just made the edit as you suggested

i left the original installation instruction, to let user know the different way to install it

e: just let me know if it should be deleted

rachmadaniHaryono avatar Jun 29 '18 10:06 rachmadaniHaryono

@ingydotnet this PR is ready, please merge it before next release as it will dramatically improve how PYPI page looks.

webknjaz avatar Jul 03 '18 12:07 webknjaz

@webknjaz will do for the 4.2 release. Cheers.

ingydotnet avatar Jul 05 '18 16:07 ingydotnet

@ingydotnet bump

webknjaz avatar Nov 04 '18 19:11 webknjaz

FYI that as of pip 20.x, pip install pyyaml --install-option=--without-libyaml errors out ("error: option --without-libyaml not recognized") whereas --global-option=--without-libyaml succeeds.

I'm not sure why, but suspect it has to do with some outdated stuff in setup.py that pip does not respect.

bsolomon1124 avatar May 28 '20 03:05 bsolomon1124

~~maybe this is the cause~~

Deprecate passing install-location-related options via --install-option.

https://pip.pypa.io/en/stable/news/#id50

https://github.com/pypa/pip/issues/7309 i will change the pr and add the edit as @bsolomon1124 suggested ~~this week~~

e: done.

i kept the install-option doc for pip < 20.0

e2: wrong guess

rachmadaniHaryono avatar May 28 '20 05:05 rachmadaniHaryono

Summary of documentation-related issues that can probably be addressed at once:

  • https://github.com/yaml/pyyaml/issues/171
  • https://github.com/yaml/pyyaml/pull/223
  • https://github.com/yaml/pyyaml/pull/327
  • https://github.com/yaml/pyyaml/pull/326
  • https://github.com/yaml/pyyaml/issues/356
  • https://github.com/yaml/pyyaml/issues/133

bsolomon1124 avatar May 28 '20 17:05 bsolomon1124

Yeah, that's one of the reasons I've not tried to attack a full setuptools cutover or any more ambitious refactoring of the packaging/install stuff- we either need to kill all the ancient custom arg stuff and lean more fully on the standard knobs provided by modern packaging infra for extension build control, or figure out sane ways to do it on setuptools.

Relevant: https://twitter.com/codewithanthony/status/1265697485780955137?s=19 ;)

nitzmahone avatar May 28 '20 17:05 nitzmahone

@nitzmahone

Yeah, that's one of the reasons I've not tried to attack a full setuptools cutover or any more ambitious refactoring of the packaging/install stuff

I don't blame you, especially since PEP 517 is still provisional.

I assume you're alluding to the --install-option issue with that comment? My two cents is that a complete rewrite of setup.py (or move towards pyproject.toml altogether) to address that and drop the distutils/sys.modules black magic is just not worth it right now. There are a lot of open PRs and issues (this one being a good example) that are already made-to-order and produce a positive change to pyyaml as-is.

bsolomon1124 avatar May 28 '20 18:05 bsolomon1124

Yeah, I'm actually reasonably confident that absent any legacy concerns, we could have a nice clean modern setup experience, but that screws everyone eg, running older stock Ubuntu LTS releases with old bundled pip (and other things) that would just fail completely (or worse, in subtly weird ways).

I feel like this project has a large accumulation of tech debt- most of the code and layout is ancient and creaky, but still works quite well for what it does. My interest and involvement in it is purely selfish and mostly defensive ("don't break Ansible"), so I have a hard time getting excited about big projects or sweeping changes that will destabilize it for myself and others, especially if the time taken to fix/restabilize those things detracts from my primary project...

nitzmahone avatar May 28 '20 21:05 nitzmahone

Should probably confirm the specific version of pip where the --install-option versus --global-option changed. I'm not certain if it's pip 19, pip 20, or something else.

Edit: I think this is because the custom Distribution in setup.py uses global_options.

i just tested with pip 19.0 and the same error happened, so it mean my guess that it is caused by pip 20.0 is wrong i will remove install-option and use global-option only.

Summary of documentation-related issues that can probably be addressed at once:

  • #171, is the actual cause of this pr
  • #223, i added the change on readme but not on announcement.msg. but if needed i will merge that pr to this
  • #326, if this pr is merged i can add/edit link to this
  • #356, this should be directed to 133
  • #133, this depend if 326 is merged

i just noticed about #327. if pyyaml dev want to use markdown than rst, i will remove rst related pr on this and contribute to 327.

rachmadaniHaryono avatar May 29 '20 00:05 rachmadaniHaryono

at the end i use markdown and move all the change from readme.rst to main readme.md

the change is simpler than before

reference on setup.py change https://packaging.python.org/guides/making-a-pypi-friendly-readme/#including-your-readme-in-your-package-s-metadata

on that page the example use pathlib but i still use codecs as suggested above

i also notice this

Merging is blocked
The base branch requires all commits to be signed

if required i will close the pr and create a new one

rachmadaniHaryono avatar Nov 23 '21 02:11 rachmadaniHaryono