Pokemon-Terminal/setup.py
2017-11-14 13:11:24 -05:00

72 lines
1.7 KiB
Python
Executable file

#!/usr/bin/env python3
import os
from setuptools import setup, find_packages
def find_data(relpath, folder):
dir_content = []
path = os.path.join(relpath, folder)
tree = [(dirname, filenames) for dirname, _, filenames in os.walk(path)
if filenames]
for root, files in tree:
path = os.path.relpath(root, relpath)
dir_content.extend(map(lambda x: os.path.join(path, x), files))
return dir_content
def package_data(relpath, folders):
all_files = []
for folder in folders:
all_files.extend(find_data(relpath, folder))
return all_files
setup(
name="pokemon-terminal",
version="1.1.0", # Copied from package.json
description="Pokemon terminal themes.",
long_description="""
Pokemon Terminal Themes.
493 unique Pokemon.
from Kanto, Johto, Hoenn and Sinnoh.
Change the Terminal Background & Desktop Wallpaper.
Supports ITerm2, Terminology & Tilix.""",
url="https://github.com/LazoCoder/Pokemon-Terminal",
author="LazoCoder",
author_email="",
license="GPLv3",
packages=find_packages(exclude=['tests']),
package_data={
"pokemonterminal": package_data("pokemonterminal", ["Data", "Images"]),
},
scripts=['pokemon', 'ichooseyou'],
keywords="pokemon terminal theme style pokemon-terminal",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: End Users/Desktop",
"Environment :: Console",
"Topic :: Utilities",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
python_requires=">=3.6"
)