File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 66
77import json_to_models
88
9+ REPO = "bogdandm/json2python-models"
10+ CPU_N = multiprocessing .cpu_count ()
11+
912with open ('requirements.txt' ) as f :
1013 required = f .read ().splitlines ()
1114with open ('README.md' ) as f :
1215 long_description = f .read ()
13-
14- URL = "https://github.com/bogdandm/json2python-models"
15- CPU_N = multiprocessing .cpu_count ()
16+ long_description .replace ("/etc" , f"https://raw.githubusercontent.com/{ REPO } /master/etc" )
1617
1718
1819class PyTest (TestCommand ):
@@ -36,7 +37,7 @@ def run_tests(self):
3637 name = "json2python-models" ,
3738 version = json_to_models .__version__ ,
3839 python_requires = ">=3.7" ,
39- url = URL ,
40+ url = f"https://github.com/ { REPO } " ,
4041 author = "bogdandm (Bogdan Kalashnikov)" ,
4142 author_email = "bogdan.dm1995@yandex.ru" ,
4243 description = "Python models (attrs, dataclasses or custom) generator from JSON data with typing module support" ,
You can’t perform that action at this time.
0 commit comments