This commit is contained in:
sfigato 2019-01-11 18:19:05 +01:00 committed by blallo
parent 075ccef88e
commit a68eb9d967
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
3 changed files with 83 additions and 97 deletions

View File

@ -3,7 +3,7 @@ GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 29 June 2007
A bot to easen the daily routine with zucchetti virtual badge. A bot to easen the daily routine with zucchetti virtual badge.
Copyright (C) 2019 Leonardo Barcaroli Copyleft 2019
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by

View File

@ -40,23 +40,22 @@ import bot_z
# Add any Sphinx extension module names here, as strings. They can be # Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ["_templates"]
# The suffix of source filenames. # The suffix of source filenames.
source_suffix = '.rst' source_suffix = ".rst"
# The encoding of source files. # The encoding of source files.
# source_encoding = 'utf-8-sig' # source_encoding = 'utf-8-sig'
# The master toctree document. # The master toctree document.
master_doc = 'index' master_doc = "index"
# General information about the project. # General information about the project.
project = u'Bot_Z' project = u"Bot_Z"
copyright = u"2019, Leonardo Barcaroli"
# The version info for the project you're documenting, acts as replacement # The version info for the project you're documenting, acts as replacement
# for |version| and |release|, also used in various other places throughout # for |version| and |release|, also used in various other places throughout
@ -79,7 +78,7 @@ release = bot_z.__version__
# List of patterns, relative to source directory, that match files and # List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files. # directories to ignore when looking for source files.
exclude_patterns = ['_build'] exclude_patterns = ["_build"]
# The reST default role (used for this markup: `text`) to use for all # The reST default role (used for this markup: `text`) to use for all
# documents. # documents.
@ -97,7 +96,7 @@ exclude_patterns = ['_build']
# show_authors = False # show_authors = False
# The name of the Pygments (syntax highlighting) style to use. # The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx' pygments_style = "sphinx"
# A list of ignored prefixes for module index sorting. # A list of ignored prefixes for module index sorting.
# modindex_common_prefix = [] # modindex_common_prefix = []
@ -111,7 +110,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
html_theme = 'default' html_theme = "default"
# Theme options are theme-specific and customize the look and feel of a # Theme options are theme-specific and customize the look and feel of a
# theme further. For a list of options available for each theme, see the # theme further. For a list of options available for each theme, see the
@ -142,7 +141,7 @@ html_theme = 'default'
# here, relative to this directory. They are copied after the builtin # here, relative to this directory. They are copied after the builtin
# static files, so a file named "default.css" will overwrite the builtin # static files, so a file named "default.css" will overwrite the builtin
# "default.css". # "default.css".
html_static_path = ['_static'] html_static_path = ["_static"]
# If not '', a 'Last updated on:' timestamp is inserted at every page # If not '', a 'Last updated on:' timestamp is inserted at every page
# bottom, using the given strftime format. # bottom, using the given strftime format.
@ -188,7 +187,7 @@ html_static_path = ['_static']
# html_file_suffix = None # html_file_suffix = None
# Output file base name for HTML help builder. # Output file base name for HTML help builder.
htmlhelp_basename = 'bot_zdoc' htmlhelp_basename = "bot_zdoc"
# -- Options for LaTeX output ------------------------------------------ # -- Options for LaTeX output ------------------------------------------
@ -196,10 +195,8 @@ htmlhelp_basename = 'bot_zdoc'
latex_elements = { latex_elements = {
# The paper size ('letterpaper' or 'a4paper'). # The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper', #'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt'). # The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt', #'pointsize': '10pt',
# Additional stuff for the LaTeX preamble. # Additional stuff for the LaTeX preamble.
#'preamble': '', #'preamble': '',
} }
@ -208,9 +205,7 @@ latex_elements = {
# (source start file, target name, title, author, documentclass # (source start file, target name, title, author, documentclass
# [howto/manual]). # [howto/manual]).
latex_documents = [ latex_documents = [
('index', 'bot_z.tex', ("index", "bot_z.tex", u"Bot_Z Documentation", u"Leonardo Barcaroli", "manual")
u'Bot_Z Documentation',
u'Leonardo Barcaroli', 'manual'),
] ]
# The name of an image file (relative to this directory) to place at # The name of an image file (relative to this directory) to place at
@ -238,11 +233,7 @@ latex_documents = [
# One entry per manual page. List of tuples # One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [("index", "bot_z", u"Bot_Z Documentation", [u"Leonardo Barcaroli"], 1)]
('index', 'bot_z',
u'Bot_Z Documentation',
[u'Leonardo Barcaroli'], 1)
]
# If true, show URL addresses after external links. # If true, show URL addresses after external links.
# man_show_urls = False # man_show_urls = False
@ -254,12 +245,15 @@ man_pages = [
# (source start file, target name, title, author, # (source start file, target name, title, author,
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
('index', 'bot_z', (
u'Bot_Z Documentation', "index",
u'Leonardo Barcaroli', "bot_z",
'bot_z', u"Bot_Z Documentation",
'One line description of project.', u"Leonardo Barcaroli",
'Miscellaneous'), "bot_z",
"One line description of project.",
"Miscellaneous",
)
] ]
# Documents to append as an appendix to all manuals. # Documents to append as an appendix to all manuals.

View File

@ -5,14 +5,15 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
with open('README.rst') as readme_file: with open("README.rst") as readme_file:
readme = readme_file.read() readme = readme_file.read()
with open('HISTORY.rst') as history_file: with open("HISTORY.rst") as history_file:
history = history_file.read() history = history_file.read()
requirements = [ requirements = [
'Click>=6.0', "Click>=6.0",
"selenium>=3.141.0",
# TODO: put package requirements here # TODO: put package requirements here
] ]
@ -25,38 +26,29 @@ test_requirements = [
] ]
setup( setup(
name='bot_z', name="bot_z",
version='0.1.0', version="0.1.0",
description="A bot to easen the daily routine with zucchetti virtual badge.", description="A bot to easen the daily routine with zucchetti virtual badge.",
long_description=readme + '\n\n' + history, long_description=readme + "\n\n" + history,
author="Leonardo Barcaroli", author="Blallo",
author_email='leonardo.barcaroli@deustechnology.com', author_email="blallo@autistici.org",
url='https://github.com/lbarcaroli/bot_z', url="https://github.com/lbarcaroli/bot_z",
packages=find_packages(include=['bot_z']), packages=find_packages(include=["bot_z"]),
entry_points={ entry_points={"console_scripts": ["bot_z=bot_z.cli:main"]},
'console_scripts': [
'bot_z=bot_z.cli:main'
]
},
include_package_data=True, include_package_data=True,
install_requires=requirements, install_requires=requirements,
license="GNU General Public License v3", license="GNU General Public License v3",
zip_safe=False, zip_safe=False,
keywords='bot_z', keywords="bot_z",
classifiers=[ classifiers=[
'Development Status :: 2 - Pre-Alpha', "Development Status :: 2 - Pre-Alpha",
'Intended Audience :: Developers', "Intended Audience :: Developers",
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
'Natural Language :: English', "Natural Language :: English",
"Programming Language :: Python :: 2", "Programming Language :: Python :: 3",
'Programming Language :: Python :: 2.6', "Programming Language :: Python :: 3.7",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
], ],
test_suite='tests', test_suite="pytest",
tests_require=test_requirements, tests_require=test_requirements,
setup_requires=setup_requirements, setup_requires=setup_requirements,
) )