2022-07-22 15:24:11 -04:00
|
|
|
from __future__ import print_function
|
|
|
|
|
|
|
|
from poetry.core.utils._compat import Path
|
|
|
|
from poetry.core.factory import Factory
|
|
|
|
from poetry.core.masonry.builders.sdist import SdistBuilder
|
|
|
|
|
|
|
|
|
|
|
|
def build_setup_py():
|
|
|
|
return SdistBuilder(Factory().create_poetry(Path(".").resolve())).build_setup()
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
print(build_setup_py().decode("utf8"))
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2022-07-23 15:09:59 -04:00
|
|
|
main()
|