Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several changes to help with packaging. #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

Empty file added reporttools/__init__.py
Empty file.
7 changes: 4 additions & 3 deletions bugzilla_report.py → reporttools/bugzilla_report.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env python
import datetime

from helpers import *
from personal_config import *
import sys

from reporttolls.helpers import *
from reporttolls.personal_config import *


temp = sys.stdout
sys.stdout = open(f'report_{PRODUCT}_status', 'w')
print("<html><body>")
Expand Down
3 changes: 2 additions & 1 deletion config.py → reporttools/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import bugzilla
from personal_config import *

from reporttools.personal_config import *

# [CHANGE NEEDED] Add the relevant information for you report
PRODUCT = 'OCS'
Expand Down
File renamed without changes.
23 changes: 12 additions & 11 deletions helpers.py → reporttools/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import copy
import smtplib
import ssl
from config import *

from reporttools.config import *

from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
Expand All @@ -14,16 +15,16 @@

BASE_QUERY = {
"bug_status": None,
"f3" : "OP",
"f4" : "product",
"f6" : "CP",
"f8" : "flagtypes.name",
"j3" : "OR",
"o4" : "equals",
"o8" : "anywordssubstr",
"query_format" : "advanced",
"v4" : BUGZILLA_PRODUCT,
"v8" : ""
"f3": "OP",
"f4": "product",
"f6": "CP",
"f8": "flagtypes.name",
"j3": "OR",
"o4": "equals",
"o8": "anywordssubstr",
"query_format": "advanced",
"v4": BUGZILLA_PRODUCT,
"v8": ""
}


Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/usr/bin/env python
import google_api as gapi
from helpers import *
import datetime
import google_api as gapi

from reporttools.helpers import *


now = datetime.datetime.now()
g = gapi.GoogleSpreadSheetAPI(
f'{PRODUCT} QE - Quality Dashboard', "Release Readiness Criteria"
)


g.update_sheet(1, 1, f'Last update: {now.strftime("%Y-%m-%d %H:%M")}')

qe_backlog = len(get_qe_backlog())
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--editable .
30 changes: 30 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""A setuptools-based script for installing Bugzilla Report Tools."""
from setuptools import find_packages, setup

setup(
name='Bugzilla Report Tools',
author='Raz Tamir',
author_email='[email protected]',
version='0.0.1',
packages=find_packages(include=['reporttools', 'reporttools.*']),
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3.7',
],
install_requires=[
'gspread',
'oauth2client',
'python-bugzilla',
],

include_package_data=True,
license='GPLv3',
description=(
'Create a Quality dashboard for your product and send'
' (weekly) reports with bug status.'),
package_data={'': ['LICENSE']},
url='https://github.com/RazTamir/bugzilla-reports-tool',
)