diff --git a/setup.py b/setup.py index e69de29..935b538 100644 --- a/setup.py +++ b/setup.py @@ -0,0 +1,44 @@ +import sys +import os +import io +from setuptools import find_packages, setup + +DEPENDENCIES = [ + 'click', + 'py-cpuinfo' +] + +EXCLUDE_FROM_PACKAGES = [] +CURDIR = sys.path[0] + +with open(os.path.join(CURDIR, 'README.md')) as file: + README = file.read() + +setup( + name="specs", + version="1.0.0", + author="Xevion", + author_email="xevion@xevion.dev", + description="", + long_description=README, + long_description_content_type="text/markdown", + url="https://github.com/xevion/specs", + packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), + include_package_data=True, + keywords=[], + scripts=[], + entry_points=''' + [console_scripts] + specs=sepcs.cli:cli + ''', + zip_safe=False, + install_requires=DEPENDENCIES, + python_requires=">=3.6", + # license and classifier list: + # https://pypi.org/pypi?%3Aaction=list_classifiers + license="License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + classifiers=[ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", + ], +) diff --git a/specs/__init__.py b/specs/__init__.py index e69de29..3726a79 100644 --- a/specs/__init__.py +++ b/specs/__init__.py @@ -0,0 +1,3 @@ +import logging + +log = logging.getLogger('specs') \ No newline at end of file diff --git a/specs/__main__.py b/specs/__main__.py index e69de29..39d1a5a 100644 --- a/specs/__main__.py +++ b/specs/__main__.py @@ -0,0 +1 @@ +from . import log \ No newline at end of file diff --git a/specs/cmd.py b/specs/cmd.py index e69de29..5094dc5 100644 --- a/specs/cmd.py +++ b/specs/cmd.py @@ -0,0 +1,15 @@ +import click +import cpuinfo + +from . import log + +log.info('') + +@click.group() +def cli(): + pass + +@cli.command() +@clic.option('-c', '--copy', default=False, show_default=True, help='Copy returned specs to the clipboard') +def run(): + log.info('specs.run') \ No newline at end of file