Skip to content

Commit 723d5e9

Browse files
committed
Update setup.py description
1 parent 965cbd5 commit 723d5e9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66

77
import json_to_models
88

9+
REPO = "bogdandm/json2python-models"
10+
CPU_N = multiprocessing.cpu_count()
11+
912
with open('requirements.txt') as f:
1013
required = f.read().splitlines()
1114
with 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

1819
class 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",

0 commit comments

Comments
 (0)