forked from PyAr/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: get all required dependencies in setup.py from issue PyAr#105
Signed-off-by: HanslettTheDev <[email protected]>
- Loading branch information
1 parent
e08c9d1
commit aa2fb07
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import subprocess | ||
|
||
def get_dependecies() -> list: | ||
freeze = subprocess.Popen("pip freeze", shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() | ||
g = freeze[0].decode("utf-8").split("\r\n") | ||
dependencies = [">=".join(x.split("==")) for x in g] | ||
return dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
__copyright__ = "Copyright (C) 2008-2021 Mariano Reingart" | ||
|
||
from distutils.core import setup | ||
from get_dep import get_dependecies | ||
import glob | ||
import os | ||
import subprocess | ||
|
@@ -70,6 +71,7 @@ | |
author_email="[email protected]", | ||
url="https://github.com/reingart/pyafipws", | ||
license="LGPL-3.0-or-later", | ||
install_requires=get_dependecies(), | ||
options=opts, | ||
data_files=data_files, | ||
classifiers=[ | ||
|