mirror of
https://github.com/Xevion/specs.git
synced 2025-12-06 15:16:37 -06:00
added setup information, terminal entrypoint and basic logging
setup
This commit is contained in:
44
setup.py
44
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",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import logging
|
||||
|
||||
log = logging.getLogger('specs')
|
||||
@@ -0,0 +1 @@
|
||||
from . import log
|
||||
15
specs/cmd.py
15
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')
|
||||
Reference in New Issue
Block a user