pyflybygen/tmp.py
Waylon Walker 7c7877795f
Some checks failed
Release / release (push) Failing after 22s
0.1.0 add support for .gitignore and --relative-imports (#1)
* ignore .gitignore

* remove relative imports

* remove tmp

* rename template string

* rename template string

* format with black

* changelog

* Bump version: 0.0.0.dev1 → 0.0.0.dev2

* bump version

* Bump version: 0.1.0 → 0.2.0.dev0

* Bump version: 0.2.0.dev0 → 0.2.0.dev1

---------

Co-authored-by: autobump <autobump@users.noreply.github.com>
2023-03-14 08:15:19 -05:00

19 lines
432 B
Python

from pathlib import Path
from .pyflybygen import pyflybygen
statements = """
from __future__ import (absolute_import,
division)
import os
import collections, itertools
from math import *
from gzip import open as gzip_open
from subprocess import check_output, Popen
"""
imports = more_itertools.flatten(
[get_imports(p.read_text()) for p in Path(".").glob("**/*.py")]
)
print("\n".join(set(imports)))