From 2339052f2b49abc4998433ee9bb7fa30cc5b46eeac398712e6e5821d615f2189 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 2 Jun 2020 06:17:42 +0000 Subject: [PATCH] Accepting request 810664 from home:mcepl:work Initial suggestion of new package for git-deps. OBS-URL: https://build.opensuse.org/request/show/810664 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/git-deps?expand=0&rev=1 --- .gitattributes | 23 ++++++ .gitignore | 1 + _service | 15 ++++ _servicedata | 4 + dont-use-st-markdown.patch | 68 +++++++++++++++++ git-deps-1.0.2+git.1559732444.7c75531.tar.xz | 3 + git-deps.changes | 30 ++++++++ git-deps.spec | 78 ++++++++++++++++++++ 8 files changed, 222 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 dont-use-st-markdown.patch create mode 100644 git-deps-1.0.2+git.1559732444.7c75531.tar.xz create mode 100644 git-deps.changes create mode 100644 git-deps.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..c4c23f9 --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + 1.0.2+git + https://github.com/aspiers/git-deps + git + .git* + enable + mcepl@cepl.eu + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..0104ec3 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/aspiers/git-deps + 7c7553151dda8f9abd4c1dc9f0aa8a4c05f65d9a \ No newline at end of file diff --git a/dont-use-st-markdown.patch b/dont-use-st-markdown.patch new file mode 100644 index 0000000..265b55c --- /dev/null +++ b/dont-use-st-markdown.patch @@ -0,0 +1,68 @@ +--- a/setup.py ++++ b/setup.py +@@ -8,21 +8,50 @@ + http://pyscaffold.readthedocs.org/ + """ + ++import os + import sys + from setuptools import setup + ++def read(fname): ++ with open(os.path.join(os.path.dirname(__file__), fname)) as inf: ++ return "\n" + inf.read().replace("\r\n", "\n") + + def setup_package(): + needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv) + sphinx = ['sphinx'] if needs_sphinx else [] + setup( ++ name = "git-deps", ++ description = "automatically detect dependencies between git commits", ++ author = "Adam Spiers", ++ author_email = "git@adamspiers.org", ++ license = "GPL-2+", ++ url = "https://github.com/aspiers/git-deps", ++ long_description = read("README.md"), ++ classifiers = [ ++ "Development Status :: 4 - Beta", ++ "Environment :: Console", ++ "Environment :: Web Environment", ++ "Framework :: Flask", ++ "Intended Audience :: Developers", ++ "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", ++ "Natural Language :: English", ++ "Operating System :: OS Independent", ++ "Programming Language :: Python", ++ "Topic :: Software Development :: Version Control", ++ "Topic :: Utilities" ++ ], ++ scripts = ["bin/git-fixup"], ++ # packages = "git_deps", ++ # data_files = "share/git_deps = share/gitfile-handler.desktop", + setup_requires=[ + 'six', +- 'pyscaffold>=2.5.10,<2.6a0', +- 'setuptools-markdown', + ] + sphinx, +- long_description_markdown_filename='README.md', +- use_pyscaffold=True ++ entry_points = { ++ "console_scripts" : [ ++ "git-deps = git_deps.cli:run", ++ "gitfile-handler = git_deps.handler:run" ++ ] ++ } + ) + + +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -45,7 +45,7 @@ if on_rtd: + # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. + extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', + 'sphinx.ext.autosummary', 'sphinx.ext.viewcode', 'sphinx.ext.coverage', +- 'sphinx.ext.doctest', 'sphinx.ext.ifconfig', 'sphinx.ext.pngmath', ++ 'sphinx.ext.doctest', 'sphinx.ext.ifconfig', 'sphinx.ext.imgmath', + 'sphinx.ext.napoleon'] + + # Add any paths that contain templates here, relative to this directory. diff --git a/git-deps-1.0.2+git.1559732444.7c75531.tar.xz b/git-deps-1.0.2+git.1559732444.7c75531.tar.xz new file mode 100644 index 0000000..ef3d2eb --- /dev/null +++ b/git-deps-1.0.2+git.1559732444.7c75531.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfddab6458cb09216f33079bed9cb9754f231617589054839acde0161e0cbdc3 +size 591372 diff --git a/git-deps.changes b/git-deps.changes new file mode 100644 index 0000000..fe6b585 --- /dev/null +++ b/git-deps.changes @@ -0,0 +1,30 @@ +------------------------------------------------------------------- +Mon Jun 1 17:25:50 UTC 2020 - Matej Cepl + +- Extend dont-use-st-markdown.patch to include full setup() + command instead of setup.cfg only. + +------------------------------------------------------------------- +Tue Feb 18 09:49:14 UTC 2020 - mcepl@cepl.eu + +- Update to version 1.0.2+git.1559732444.7c75531: + * add direct links to presentation videos + * add links to blog and Nashville presentation + * Fix link in readme to USE-CASES.md + * Don't crash with commit messages that aren't valid utf-8 + * Use unbuffered IO + * add Credits section + * split off use cases to separate file + * add missing sections to TOC + * make CONTRIBUTING.md link consistent with others + +------------------------------------------------------------------- +Thu Jun 4 07:32:47 UTC 2015 - bwiedemann@suse.com + +- add HTML parts + +------------------------------------------------------------------- +Thu Jun 4 04:40:14 UTC 2015 - bwiedemann@suse.com + +- initial package + diff --git a/git-deps.spec b/git-deps.spec new file mode 100644 index 0000000..5a5f5b3 --- /dev/null +++ b/git-deps.spec @@ -0,0 +1,78 @@ +# +# spec file for package git-deps +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: git-deps +Version: 1.0.2+git.1559732444.7c75531 +Release: 0 +Summary: Tool to analyze git deps +License: GPL-2.0-only +Group: Development/Tools/Version Control +URL: https://github.com/aspiers/git-deps +Source: %{name}-%{version}.tar.xz +Patch0: dont-use-st-markdown.patch +BuildRequires: python-rpm-macros +BuildRequires: fdupes +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module six} +BuildRequires: %{python_module pygit2} +Requires: python-pygit2 +Requires: python-Flask +BuildArch: noarch +%python_subpackages + +%description +Tool to analyze git dependencies + +file bugs at https://github.com/aspiers/git-deps/issues + +%package html +Summary: Tool to analyze git deps - HTML parts +#Requires: nodejs-browserify # broken/missing +Requires: npm +Requires: python-Flask + +%description html +Documentation for git-deps. + +%prep +%setup -q -n %{name}-%{version} +%autopatch -p1 + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%{_bindir}/git-deps +%{_bindir}/git-fixup +%{_bindir}/gitfile-handler +%{python_sitelib}/git_deps* +%license LICENSE.txt +%doc AUTHORS.rst CONTRIBUTING.md CHANGES.rst README.md USAGE.md +%doc HISTORY.md USE-CASES.md + +%files html +%doc docs + +%changelog