Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commit26dccd7
committed
Streamline setup.py file reading
This is partly a refactoring, reducing logic duplication andslightly decreasing overall length of the code that reads valuesfrom files. However, it does make two small behavioral changes:- In addition to the VERSION file for which this was already the case, requirements files and the readme are also taken relative to the directory that contains the setup.py file, rather than relative to the current directory if different. Supporting reading the readme and dependencies realtive to a different directory doesn't seem intended, and could lead to confusion in some cases.- The VERSION file is now read entirely and whitespace stripped, rather than reading just the first line. The VERSION file should always contain exactly one line, and this logic is simpler.This changes code for the reading of metadata only. It does notmake any changes to the version stamping code.1 parent1b43166 commit26dccd7
1 file changed
+9
-11
lines changedLines changed: 9 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
12 |
| - | |
13 |
| - | |
| 13 | + | |
| 14 | + | |
14 | 15 |
| |
15 |
| - | |
16 |
| - | |
17 | 16 |
| |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
23 | 21 |
| |
24 | 22 |
| |
25 | 23 |
| |
| |||
50 | 48 |
| |
51 | 49 |
| |
52 | 50 |
| |
53 |
| - | |
| 51 | + | |
54 | 52 |
| |
55 | 53 |
| |
56 | 54 |
| |
| |||
66 | 64 |
| |
67 | 65 |
| |
68 | 66 |
| |
69 |
| - | |
| 67 | + | |
70 | 68 |
| |
71 | 69 |
| |
72 | 70 |
| |
|
0 commit comments
Comments
(0)