Exemple #1
0
src_dir = os.path.dirname(__file__)
if src_dir:
    os.chdir(src_dir)

license = "BSD License"

name = "JNJ"
p_name = "_JNJ"

with open("__init__.py", encoding="utf-8") as f:
    version = str(ast.literal_eval(_version_re.search(f.read()).group(1)))

packages = [p_name] + list(".".join((p_name, p)) for p in find_packages())
Q = fs_find.Filter
data_dirs = ["email", "html", "httpd_config"] + fs_find.directories(
    ".", filter=fs_find.Filter(include=Q.IN("-I18N", "locale"))
)
data_files = list(
    itertools.chain(
        ["LICENSE", "README.rst", "setup.py"],
        fs_find.file_iter(".", filter=Q(include=Q.equal("babel.cfg"))),
        fs_find.file_iter(*data_dirs),
    )
)


class Test_Command(Command):
    user_options = []

    def initialize_options(self):
        pass