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 11#!/usr/bin/env python
2- import os
2+ from pathlib import Path
33
44from setuptools import setup
55
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-
156tests_require = []
16- requirements = read ("requirements" , " main.txt" ).splitlines ()
7+ requirements = Path ("requirements/ main.txt" ). read_text ( encoding = "UTF-8 " ).splitlines ()
178extras_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 ] ,
2011}
2112
2213setup (
You can’t perform that action at this time.
0 commit comments