diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 12a02fa600f20a1597a303ccf49f725f1c116cff..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# python-vulture - -#### Description -Find dead code - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index d2c9f04a03eae4a3799a894ee01b9ca803977bea..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# python-vulture - -#### 介绍 -Find dead code - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/python-vulture.spec b/python-vulture.spec new file mode 100644 index 0000000000000000000000000000000000000000..897a298e0109e8ae026ee834bbe767e697355b53 --- /dev/null +++ b/python-vulture.spec @@ -0,0 +1,59 @@ +Name: python-vulture +Version: 2.3 +Release: 1 +Summary: Find dead code + +License: MIT +URL: https://github.com/jendrikseipp/vulture +Source0: %{url}/archive/v%{version}/vulture-%{version}.tar.gz +BuildArch: noarch + +%description +Vulture finds unused classes, functions and variables in your code. \ +This helps you cleanup and find errors in your programs. If you run it \ +on both your library and test suite you can find untested code. \ +Due to Python’s dynamic nature, static code analyzers like vulture \ +are likely to miss some dead code. Also, code that is only called \ +implicitly may be reported as unused. Nonetheless, vulture can be a \ +very helpful tool for higher code quality. + + +%package -n python3-vulture +Summary: %{summary} +%{?python_provide:%python_provide python3-vulture} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-cov) +%description -n python3-vulture +%{common_desc} + +%prep +%autosetup -n vulture-%{version} +sed -i '1{/^#!/d}' vulture/*.py + +%build +%py3_build + +%install +%py3_install +mv %{buildroot}%{_bindir}/vulture %{buildroot}%{_bindir}/vulture-%{python3_version} +ln -s %{_bindir}/vulture-%{python3_version} %{buildroot}/%{_bindir}/vulture-3 +ln -s %{_bindir}/vulture-%{python3_version} %{buildroot}/%{_bindir}/vulture + + +%files -n python3-vulture +%doc CHANGELOG.md README.md +%license LICENSE.txt +%{_bindir}/vulture +%{_bindir}/vulture-3 +%{_bindir}/vulture-%{python3_version} +%{python3_sitelib}/vulture/__pycache__ +%{python3_sitelib}/vulture/ +%{python3_sitelib}/vulture-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Thu Jul 22 2021 zhangyixuan - 2.3-1 +- Initial package import + diff --git a/vulture-2.3.tar.gz b/vulture-2.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..aab9fcb8204a22792b32416df34603ad7f47332f Binary files /dev/null and b/vulture-2.3.tar.gz differ