File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
3
3
# Read the long description from README.md
4
- with open ("README.md" , "r" , encoding = "utf-8" ) as fh :
5
- long_description = fh .read ()
4
+ try :
5
+ with open ("README.md" , "r" , encoding = "utf-8" ) as fh :
6
+ long_description = fh .read ()
7
+ except FileNotFoundError :
8
+ long_description = (
9
+ "A simple command-line tool to count lines in files by extension. "
10
+ "See the documentation for more details."
11
+ )
6
12
7
13
# Read the list of requirements from requirements.txt
8
- with open ("requirements.txt" , "r" , encoding = "utf-8" ) as fh :
9
- requirements = fh .read ().splitlines ()
14
+ try :
15
+ with open ("requirements.txt" , "r" , encoding = "utf-8" ) as fh :
16
+ requirements = fh .read ().splitlines ()
17
+ except FileNotFoundError :
18
+ requirements = ["tabulate==0.9.0" ]
10
19
11
20
setup (
12
21
name = "extliner" ,
You can’t perform that action at this time.
0 commit comments