summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 03:36:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 03:36:57 +0000
commit8045a0dc388a942f6588bf0c984d041600e6c5bb (patch)
tree08445b7672e6bb6155af23d6feb00d91500d0c21
parent86f6eae00393c446a36bedd33c0d763bea036d44 (diff)
automatic import of python-snakefmtopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-snakefmt.spec271
-rw-r--r--sources1
3 files changed, 273 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..04b079b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/snakefmt-0.8.4.tar.gz
diff --git a/python-snakefmt.spec b/python-snakefmt.spec
new file mode 100644
index 0000000..32db033
--- /dev/null
+++ b/python-snakefmt.spec
@@ -0,0 +1,271 @@
+%global _empty_manifest_terminate_build 0
+Name: python-snakefmt
+Version: 0.8.4
+Release: 1
+Summary: The uncompromising Snakemake code formatter
+License: MIT
+URL: https://github.com/snakemake/snakefmt
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/36/9c/00be291ff608ca73cbc9662c1c59cddef20279298e0fb410ca1ec1875c99/snakefmt-0.8.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-black
+Requires: python3-click
+Requires: python3-importlib_metadata
+Requires: python3-toml
+
+%description
+name: Lint Code Base
+on:
+ push:
+ pull_request:
+ branches: [master]
+jobs:
+ build:
+ name: Lint Code Base
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@v2
+ - name: Lint Code Base
+ uses: github/super-linter@v3
+ env:
+ VALIDATE_ALL_CODEBASE: false
+ DEFAULT_BRANCH: master
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ VALIDATE_SNAKEMAKE_SNAKEFMT: true
+```
+Additional configuration parameters can be specified by creating `.github/linters/.snakefmt.toml`:
+```toml
+[tool.black]
+skip_string_normalization = true
+```
+For more information check the `super-linter` readme.
+## Plug Us
+If you can't get enough of badges, then feel free to show others you're using `snakefmt`
+in your project.
+[![Code style: snakefmt](https://img.shields.io/badge/code%20style-snakefmt-000000.svg)](https://github.com/snakemake/snakefmt)
+#### Markdown
+```md
+[![Code style: snakefmt](https://img.shields.io/badge/code%20style-snakefmt-000000.svg)](https://github.com/snakemake/snakefmt)
+```
+#### ReStructuredText
+```rst
+```
+## Changes
+See [`CHANGELOG.md`][changes].
+## Contributing
+See [CONTRIBUTING.md][contributing].
+## Cite
+[![DOI][doi-shield]][doi]
+```Bibtex
+@article{snakemake2021,
+ doi = {10.12688/f1000research.29032.2},
+ url = {https://doi.org/10.12688/f1000research.29032.2},
+ year = {2021},
+ month = apr,
+ publisher = {F1000 Research Ltd},
+ volume = {10},
+ pages = {33},
+ author = {Felix M\"{o}lder and Kim Philipp Jablonski and Brice Letcher and Michael B. Hall and Christopher H. Tomkins-Tinch and Vanessa Sochat and Jan Forster and Soohyun Lee and Sven O. Twardziok and Alexander Kanitz and Andreas Wilm and Manuel Holtgrewe and Sven Rahmann and Sven Nahnsen and Johannes K\"{o}ster},
+ title = {Sustainable data analysis with Snakemake},
+ journal = {F1000Research}
+}
+```
+[snakemake]: https://snakemake.readthedocs.io/
+[black]: https://black.readthedocs.io/en/stable/
+[black-config]: https://github.com/psf/black#pyprojecttoml
+[pyproject]: https://github.com/snakemake/snakefmt/blob/master/pyproject.toml
+[poetry]: https://python-poetry.org
+[contributing]: CONTRIBUTING.md
+[changes]: CHANGELOG.md
+[doi-shield]: https://img.shields.io/badge/DOI-10.12688%2Ff1000research.29032.2-brightgreen.svg
+[doi]: https://doi.org/10.12688/f1000research.29032.2
+
+%package -n python3-snakefmt
+Summary: The uncompromising Snakemake code formatter
+Provides: python-snakefmt
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-snakefmt
+name: Lint Code Base
+on:
+ push:
+ pull_request:
+ branches: [master]
+jobs:
+ build:
+ name: Lint Code Base
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@v2
+ - name: Lint Code Base
+ uses: github/super-linter@v3
+ env:
+ VALIDATE_ALL_CODEBASE: false
+ DEFAULT_BRANCH: master
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ VALIDATE_SNAKEMAKE_SNAKEFMT: true
+```
+Additional configuration parameters can be specified by creating `.github/linters/.snakefmt.toml`:
+```toml
+[tool.black]
+skip_string_normalization = true
+```
+For more information check the `super-linter` readme.
+## Plug Us
+If you can't get enough of badges, then feel free to show others you're using `snakefmt`
+in your project.
+[![Code style: snakefmt](https://img.shields.io/badge/code%20style-snakefmt-000000.svg)](https://github.com/snakemake/snakefmt)
+#### Markdown
+```md
+[![Code style: snakefmt](https://img.shields.io/badge/code%20style-snakefmt-000000.svg)](https://github.com/snakemake/snakefmt)
+```
+#### ReStructuredText
+```rst
+```
+## Changes
+See [`CHANGELOG.md`][changes].
+## Contributing
+See [CONTRIBUTING.md][contributing].
+## Cite
+[![DOI][doi-shield]][doi]
+```Bibtex
+@article{snakemake2021,
+ doi = {10.12688/f1000research.29032.2},
+ url = {https://doi.org/10.12688/f1000research.29032.2},
+ year = {2021},
+ month = apr,
+ publisher = {F1000 Research Ltd},
+ volume = {10},
+ pages = {33},
+ author = {Felix M\"{o}lder and Kim Philipp Jablonski and Brice Letcher and Michael B. Hall and Christopher H. Tomkins-Tinch and Vanessa Sochat and Jan Forster and Soohyun Lee and Sven O. Twardziok and Alexander Kanitz and Andreas Wilm and Manuel Holtgrewe and Sven Rahmann and Sven Nahnsen and Johannes K\"{o}ster},
+ title = {Sustainable data analysis with Snakemake},
+ journal = {F1000Research}
+}
+```
+[snakemake]: https://snakemake.readthedocs.io/
+[black]: https://black.readthedocs.io/en/stable/
+[black-config]: https://github.com/psf/black#pyprojecttoml
+[pyproject]: https://github.com/snakemake/snakefmt/blob/master/pyproject.toml
+[poetry]: https://python-poetry.org
+[contributing]: CONTRIBUTING.md
+[changes]: CHANGELOG.md
+[doi-shield]: https://img.shields.io/badge/DOI-10.12688%2Ff1000research.29032.2-brightgreen.svg
+[doi]: https://doi.org/10.12688/f1000research.29032.2
+
+%package help
+Summary: Development documents and examples for snakefmt
+Provides: python3-snakefmt-doc
+%description help
+name: Lint Code Base
+on:
+ push:
+ pull_request:
+ branches: [master]
+jobs:
+ build:
+ name: Lint Code Base
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@v2
+ - name: Lint Code Base
+ uses: github/super-linter@v3
+ env:
+ VALIDATE_ALL_CODEBASE: false
+ DEFAULT_BRANCH: master
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ VALIDATE_SNAKEMAKE_SNAKEFMT: true
+```
+Additional configuration parameters can be specified by creating `.github/linters/.snakefmt.toml`:
+```toml
+[tool.black]
+skip_string_normalization = true
+```
+For more information check the `super-linter` readme.
+## Plug Us
+If you can't get enough of badges, then feel free to show others you're using `snakefmt`
+in your project.
+[![Code style: snakefmt](https://img.shields.io/badge/code%20style-snakefmt-000000.svg)](https://github.com/snakemake/snakefmt)
+#### Markdown
+```md
+[![Code style: snakefmt](https://img.shields.io/badge/code%20style-snakefmt-000000.svg)](https://github.com/snakemake/snakefmt)
+```
+#### ReStructuredText
+```rst
+```
+## Changes
+See [`CHANGELOG.md`][changes].
+## Contributing
+See [CONTRIBUTING.md][contributing].
+## Cite
+[![DOI][doi-shield]][doi]
+```Bibtex
+@article{snakemake2021,
+ doi = {10.12688/f1000research.29032.2},
+ url = {https://doi.org/10.12688/f1000research.29032.2},
+ year = {2021},
+ month = apr,
+ publisher = {F1000 Research Ltd},
+ volume = {10},
+ pages = {33},
+ author = {Felix M\"{o}lder and Kim Philipp Jablonski and Brice Letcher and Michael B. Hall and Christopher H. Tomkins-Tinch and Vanessa Sochat and Jan Forster and Soohyun Lee and Sven O. Twardziok and Alexander Kanitz and Andreas Wilm and Manuel Holtgrewe and Sven Rahmann and Sven Nahnsen and Johannes K\"{o}ster},
+ title = {Sustainable data analysis with Snakemake},
+ journal = {F1000Research}
+}
+```
+[snakemake]: https://snakemake.readthedocs.io/
+[black]: https://black.readthedocs.io/en/stable/
+[black-config]: https://github.com/psf/black#pyprojecttoml
+[pyproject]: https://github.com/snakemake/snakefmt/blob/master/pyproject.toml
+[poetry]: https://python-poetry.org
+[contributing]: CONTRIBUTING.md
+[changes]: CHANGELOG.md
+[doi-shield]: https://img.shields.io/badge/DOI-10.12688%2Ff1000research.29032.2-brightgreen.svg
+[doi]: https://doi.org/10.12688/f1000research.29032.2
+
+%prep
+%autosetup -n snakefmt-0.8.4
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-snakefmt -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8f9fe67
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+240deb3e0082835e1ec338a049b6b406 snakefmt-0.8.4.tar.gz