Hello community, here is the log from the commit of package python-md2workflow for openSUSE:Factory checked in at 2019-08-05 10:40:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-md2workflow (Old) and /work/SRC/openSUSE:Factory/.python-md2workflow.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-md2workflow" Mon Aug 5 10:40:33 2019 rev:2 rq:720618 version:1.4.8 Changes: -------- --- /work/SRC/openSUSE:Factory/python-md2workflow/python-md2workflow.changes 2019-07-17 13:21:13.695608184 +0200 +++ /work/SRC/openSUSE:Factory/.python-md2workflow.new.4126/python-md2workflow.changes 2019-08-05 10:41:05.339300853 +0200 @@ -1,0 +2,10 @@ +Fri Aug 2 12:46:17 UTC 2019 - Lubos Kocman <[email protected]> + +- Update to 1.4.8 + * Fixes wrong indendation in jirabackend + * Fixes NameError raised on while reading input from user on + python3 + * Fix incorrect reference to relation in update + * Add requires on python-jira + +------------------------------------------------------------------- Old: ---- md2workflow-1.4.5.tar.gz New: ---- md2workflow-1.4.8.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-md2workflow.spec ++++++ --- /var/tmp/diff_new_pack.MRdmhU/_old 2019-08-05 10:41:05.847300795 +0200 +++ /var/tmp/diff_new_pack.MRdmhU/_new 2019-08-05 10:41:05.851300794 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-md2workflow -Version: 1.4.5 +Version: 1.4.8 Release: 0 Summary: Create a JIRA or other Workflow from markdown files License: GPL-3.0-only @@ -30,6 +30,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-jira Requires: python-md2workflow-common Requires(post): update-alternatives Requires(postun): update-alternatives ++++++ md2workflow-1.4.5.tar.gz -> md2workflow-1.4.8.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/md2workflow-1.4.5/PKG-INFO new/md2workflow-1.4.8/PKG-INFO --- old/md2workflow-1.4.5/PKG-INFO 2019-07-15 17:21:39.000000000 +0200 +++ new/md2workflow-1.4.8/PKG-INFO 2019-08-02 14:15:21.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: md2workflow -Version: 1.4.5 +Version: 1.4.8 Summary: Create a JIRA or other Workflow from markdown files. Home-page: https://github.com/lkocman/md2workflow.git Author: Lubos Kocman diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/md2workflow-1.4.5/README.md new/md2workflow-1.4.8/README.md --- old/md2workflow-1.4.5/README.md 2019-07-12 01:23:25.000000000 +0200 +++ new/md2workflow-1.4.8/README.md 2019-07-29 15:54:28.000000000 +0200 @@ -3,22 +3,28 @@ Markdown To Workflow. A tool which can convert typically "VCS managed" mardown checklist into e.g. a linked structure of Jira Epics. Tool can not only create checklists, but also update them! -## Get the tool and data - -**Tool requires python-jira** +## Getting the tool +### openSUSE / SLE +You can install latest python3-md2workfow or python2-md2workflow rpms from lkocman's home project** +``` +> osc -A https://api.opensuse.org repourls home:lkocman:sle-release-management +https://download.opensuse.org/repositories/home:/lkocman:/sle-release-management/openSUSE_Tumbleweed/home:lkocman:sle-release-management.repo +https://download.opensuse.org/repositories/home:/lkocman:/sle-release-management/openSUSE_Leap_15.1/home:lkocman:sle-release-management.repo +https://download.opensuse.org/repositories/home:/lkocman:/sle-release-management/SLE_15_SP1/home:lkocman:sle-release-management.repo +> sudo zypper ar --refresh $ONE_OF_URLS_ABOVE +> sudo zypper install python3-md2workflow # or python2-md2workflow ``` -setup.py install # if you use virtualenv - -# Install Dependencies on openSUSE -zypper install python2-jira python3-jira # based on your system +### pip -# Install Dependencies on Fedora -yum install python2-jira python3-jira +Please use virtualenv!!! -# Get tool from git -git clone https://github.com/lkocman/md2workflow.git +``` +> pip install md2workflow +Collecting md2workflow + Downloading https://files.pythonhosted.org/packages/cf/ca/b73a9f5a8bb1bf6debbfd21441ec2c3cce35745ab342b9e53c5d78b0c872/md2workflow-1.4.5-py3-none-any.whl +Collecting jira (from md2workflow) ``` ## How does it work? @@ -112,6 +118,55 @@ * config resources from setup.py +Example Environment config +``` + +[global] +# currently the only one supported +backend = jira + +[jira] +server = https://jira.example.com +# cert is path to cert or None for insecure connection +# cert = Path/to/cert +auth = basic +# A jira project where issues will be created +project = EXAMPLE + + +# These may differ per server, or at least SubTask +mapping_JiraSubTask = Sub-Task +mapping_JiraTask = Task +mapping_JiraBasedWorkflow = Epic +# Field where the Epic Name will be set (same as summary) +mapping_EpicName = Epic Name +# Field where the Epic Name should be queried +mapping_EpicNameQuery = Epic Link +# Ability to override assignee field +mapping_Assignee = Worker +# Where to set [project] name. A must have for updates +mapping_ProjectName = Product +# This should be a giturl of the markdown files themselves. Used for relative links within markdown files +relative_link_topurl = https://github.com/lkocman/md2workflow/blob/master/example +update_states = Open, Backlog +epic_update_states = Open, Backlog, In Progress + +[logging] +level = INFO + +[TaskRelations] +relations = Blocks, Depends On, Implements, Implemented by +inbound = Implemented by, Depends On + +[JiraTaskRelations] +# TaskRelation as in TaskRelations to the actual Jira value as it might differ per instance +Blocks = Blocks +Depends On = Blocks +Implements = Implements +Implemented by = Implements +``` + + ### Project config Project config (an .ini file) which defines the workflow by combining data from linked markdown files. @@ -179,10 +234,16 @@ ### Hello World This is a Local dry-run of example config (using backend=generic) -Consider this a Hello World in md2workfow +Consider this a Hello World in md2workfow. + +Please be aware that the path to my_project.conf will vary based on how did you get tool. ``` +# For git checkout bin/md2workflow --env config/local.conf example/my_project.conf # or simply --env local + +# For rpm or pip installation (in case that --prefix for pip is /usr) +md2workflow --env local /usr/share/md2workflow/example/my_project.conf ``` ### Creating or updating checklist in Jira diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/md2workflow-1.4.5/md2workflow/backend/jirabackend.py new/md2workflow-1.4.8/md2workflow/backend/jirabackend.py --- old/md2workflow-1.4.5/md2workflow/backend/jirabackend.py 2019-07-14 14:19:42.000000000 +0200 +++ new/md2workflow-1.4.8/md2workflow/backend/jirabackend.py 2019-08-02 14:13:25.000000000 +0200 @@ -353,8 +353,8 @@ if self.action == CliAction.UPDATE: if not relation.source._issue or not relation.target._issue: - self.relation.source.fetch_myself() - self.relation.target.fetch_myself() + relation.source.fetch_myself() + relation.target.fetch_myself() # Double check on update, perhaps fetch_myself returned None if not relation.source._issue or not relation.target._issue: @@ -412,8 +412,10 @@ if "user" in self.environment["jira"]: user = self.environment["jira"]["user"] else: - user = raw_input("JIRA user for %s: " % server) - + try: + user = raw_input("JIRA user for %s: " % server) + except NameError: + user = input("JIRA user for %s: " % server) password = None if "password" in self.environment["jira"]: password = self.environment["jira"]["password"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/md2workflow-1.4.5/md2workflow.egg-info/PKG-INFO new/md2workflow-1.4.8/md2workflow.egg-info/PKG-INFO --- old/md2workflow-1.4.5/md2workflow.egg-info/PKG-INFO 2019-07-15 17:21:39.000000000 +0200 +++ new/md2workflow-1.4.8/md2workflow.egg-info/PKG-INFO 2019-08-02 14:15:21.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: md2workflow -Version: 1.4.5 +Version: 1.4.8 Summary: Create a JIRA or other Workflow from markdown files. Home-page: https://github.com/lkocman/md2workflow.git Author: Lubos Kocman diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/md2workflow-1.4.5/setup.py new/md2workflow-1.4.8/setup.py --- old/md2workflow-1.4.5/setup.py 2019-07-15 17:16:36.000000000 +0200 +++ new/md2workflow-1.4.8/setup.py 2019-08-02 14:14:24.000000000 +0200 @@ -9,7 +9,7 @@ name="md2workflow", description="Create a JIRA or other Workflow from markdown files.", long_description="Create a JIRA or other Workflow from markdown files.", - version="1.4.5", + version="1.4.8", license="GPLv3", author="Lubos Kocman", author_email="[email protected]",
