Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appveyor.yml unnecessarily complicated #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

AvdN
Copy link

@AvdN AvdN commented Sep 26, 2016

Most string scalars (but not all) are double quoted scalars, making the file less readable.

YAML allows any string through backslashes within double quotes, but also requires backslashes and double quotes to be escaped. The example can be made much more readable
by using non-quoted scalar strings, or single quoted ones (in case the scalar starts with a % or can be interpreted as an integer.

This was originally proposed as change for the user guide (pypa/packaging.python.org#221 (comment))

(Depending on how the program that loads the file handles the value for PYTHON_ARCH, the quotes around those values could be removed as well, assuming the program transparently converts from integer to string internally if necessary. )

In the appveyor.yml most string scalars (but not all) were double quoted scalars. YAML allows any string through backslashes within double quotes, but also requires backslashes and double quotes to be escaped. The example can be made much more readable
by using non-quoted scalar strings, or single quoted ones (in case the scalar starts with a `%` or can be interpreted as an integer.

This was originally proposed as change for the user guide (pypa/packaging.python.org#221 (comment))

(Depending on how the program that loads the file handles the value for `PYTHON_ARCH`, the quotes around those values could be removed  as well, assuming the program transparently converts from integer to string internally if necessary. )
@jayvdb
Copy link
Contributor

jayvdb commented Jul 3, 2018

Unfortunately this wasnt merged at the time, and now needs a rebase.

Also can you test if it works without quotes around PYTHON_ARCH.
It is only used at

InstallPython $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON

@AvdN
Copy link
Author

AvdN commented Jul 3, 2018

I am not sure how I can test the PYTHON_ARCH, I have not seen the code that actually reads the YAML and sets the environment variables before invoking install.ps1. It could be that all scalars are loaded as strings, but I have no idea where that is done, nor how to test that.

cclauss added a commit to cclauss/python-appveyor-demo that referenced this pull request Jan 26, 2019
Drop Python 2.6 which reached its end of life more than five years ago and 3.4 which will reach its end of life in less than 50 days.  https://devguide.python.org/#status-of-python-branches

Also implements some of the good ideas from ogrisel#41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants