File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
- import os
2
+ from pathlib import Path
3
3
4
4
from setuptools import setup
5
5
6
-
7
- def read (* parts ):
8
- """Reads the content of the file located at path created from *parts*."""
9
- try :
10
- return open (os .path .join (* parts ), "r" , encoding = "utf-8" ).read ()
11
- except OSError :
12
- return ""
13
-
14
-
15
6
tests_require = []
16
- requirements = read ("requirements" , " main.txt" ).splitlines ()
7
+ requirements = Path ("requirements/ main.txt" ). read_text ( encoding = "UTF-8 " ).splitlines ()
17
8
extras_require = {
18
- "docs" : read ("requirements" , " docs.txt" ).splitlines (),
19
- "tests" : tests_require ,
9
+ "docs" : Path ("requirements/ docs.txt" ). read_text ( encoding = "UTF-8 " ).splitlines (),
10
+ "tests" : [ tests_require ] ,
20
11
}
21
12
22
13
setup (
You can’t perform that action at this time.
0 commit comments