SHA256
1
0
forked from pool/git-deps

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
This commit is contained in:
Martin Pluskal 2020-06-02 06:17:42 +00:00 committed by Git OBS Bridge
commit 2339052f2b
8 changed files with 222 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="versionprefix">1.0.2+git</param>
<param name="url">https://github.com/aspiers/git-deps</param>
<param name="scm">git</param>
<param name="exclude">.git*</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">mcepl@cepl.eu</param>
</service>
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version"/>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/aspiers/git-deps</param>
<param name="changesrevision">7c7553151dda8f9abd4c1dc9f0aa8a4c05f65d9a</param></service></servicedata>

View File

@ -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.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bfddab6458cb09216f33079bed9cb9754f231617589054839acde0161e0cbdc3
size 591372

30
git-deps.changes Normal file
View File

@ -0,0 +1,30 @@
-------------------------------------------------------------------
Mon Jun 1 17:25:50 UTC 2020 - Matej Cepl <mcepl@suse.com>
- 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

78
git-deps.spec Normal file
View File

@ -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