added setup information, terminal entrypoint and basic logging

setup
This commit is contained in:
Xevion
2019-11-09 18:34:53 -06:00
parent 9168da7986
commit 4319b1d871
4 changed files with 63 additions and 0 deletions

View File

@@ -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",
],
)

View File

@@ -0,0 +1,3 @@
import logging
log = logging.getLogger('specs')

View File

@@ -0,0 +1 @@
from . import log

View File

@@ -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')