certbot/certbot-nginx
Adrien Ferrand 0324d1740e Ensure relpath is executed on paths in the same drive (#7335)
On Windows you can have several drives (`C:`, `D:`, ...), that is the roughly (really roughly) equivalent of mount points, since each drive is usually associated to a specific physical partition.

So you can have paths like `C:\one\path`, `D:\another\path`.

In parallel, `os.path.relpath(path, start='.')` calculates the relative path between the given `path` and a `start` path (current directory if not provided). In recent versions of Python, `os.path.relpath` will fail if `path` and `start` are not on the same drive, because a relative path between two paths like `C:\one\path`, `D:\another\path` is not possible.

In saw unit tests failing because of this in two locations. This occurs when the certbot codebase that is tested is on a given drive (like `D:`) while the default temporary directory used by `tempfile` is on another drive (most of the time located in `C:` drive).

This PR fixes that.
2019-08-23 12:53:30 -07:00
..
certbot_nginx Ensure relpath is executed on paths in the same drive (#7335) 2019-08-23 12:53:30 -07:00
docs [Windows] Security model for files permissions - STEP 2 (#6895) 2019-04-12 13:32:51 -07:00
tests [Unix] Create a framework for certbot integration tests: PART 5-FINAL (#6989) 2019-05-14 13:56:32 -07:00
LICENSE.txt s/letsencrypt/certbot letsencrypt-nginx tests 2016-04-13 16:45:54 -07:00
local-oldest-requirements.txt Release 0.36.0 2019-07-11 12:31:51 -07:00
MANIFEST.in Move Nginx TLS configuration files into a specific folder (#7300) 2019-08-05 15:45:08 -07:00
README.rst s/Let's Encrypt/Certbot certbot-nginx 2016-04-13 16:49:30 -07:00
readthedocs.org.requirements.txt s/letsencrypt/certbot letsencrypt-nginx tests 2016-04-13 16:45:54 -07:00
setup.cfg Tell the world we're Python 3 compatible (#4568) 2017-04-28 16:06:45 -07:00
setup.py Bump version to 0.38.0 2019-08-07 10:35:13 -07:00

Nginx plugin for Certbot