diff options
Diffstat (limited to 'python-jiraone.spec')
| -rw-r--r-- | python-jiraone.spec | 271 |
1 files changed, 271 insertions, 0 deletions
diff --git a/python-jiraone.spec b/python-jiraone.spec new file mode 100644 index 0000000..503c810 --- /dev/null +++ b/python-jiraone.spec @@ -0,0 +1,271 @@ +%global _empty_manifest_terminate_build 0 +Name: python-jiraone +Version: 0.7.5 +Release: 1 +Summary: A REST API Implementation to Jira Cloud APIs for creating reports and for performing other Jira queries. +License: MIT License +URL: https://jiraone.readthedocs.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/46/68/244602cc1c6252516709b8fd06933714c7e52cadafc39b098961ed28ab25/jiraone-0.7.5.tar.gz +BuildArch: noarch + +Requires: python3-requests + +%description +[](https://www.codacy.com/gh/princenyeche/jiraone/dashboard?utm_source=github.com&utm_medium=referral&utm_content=princenyeche/jiraone&utm_campaign=Badge_Grade) +[](https://pepy.tech/project/jiraone) +[](https://badge.fury.io/py/jiraone) + + +[](https://snyk.io/advisor/python/jiraone) +[](https://app.travis-ci.com/princenyeche/jiraone) +[](https://github.com/psf/black) + +# Jira one +A REST API Implementation to Jira Cloud APIs for creating reports and for performing other Jira queries. + +## Configurations +Install using `pip`. You have to be on python >= 3.6.x in order to utilize this script. +* Download python and install on your device by visiting [python.org](https://python.org/downloads) +* Run the below command either using a virtual environment or from your python alias +```bash +pip install jiraone +``` +OR +```bash +python3 -m pip install jiraone +``` + +## Classes, functions and methods +Jiraone comes with various classes, functions and methods. Aliases as well, are used to represent +links to classes and functions. The major ones to take note of are the ones shown on the directory link below. + +For further knowledge on how to use the classes, methods or functions. Open the jiraone package and read the docstring on the +aforementioned methods or functions above to get further information. + +If you're connecting to Jira server or datacenter, you will need to change the API endpoint to point to server instances. To do that, simply change +the attribute `LOGIN.api = False` this helps to use the endpoint `/rest/api/latest` which is compatible for Jira server or datacenter. + +```python +from jiraone import LOGIN + +data = "username", "password", "https://server.jiraserver.com" +LOGIN.api = False +LOGIN(*data) +``` + +The above login method applies only when you need to access a Jira server or datacenter type instances. The above has little or no effect on cloud instance and will work normally. + +# Directory +* [Using the API](https://jiraone.readthedocs.io/en/latest/api.html) + * [endpoint](https://jiraone.readthedocs.io/en/latest/api.html#endpoint) + * [LOGIN](https://jiraone.readthedocs.io/en/latest/api.html#login) + * [echo](https://jiraone.readthedocs.io/en/latest/api.html#id4) + * [add_log](https://jiraone.readthedocs.io/en/latest/api.html#id5) + * [file_writer](https://jiraone.readthedocs.io/en/latest/api.html#id6) + * [file_reader](https://jiraone.readthedocs.io/en/latest/api.html#id7) + * [path_builder](https://jiraone.readthedocs.io/en/latest/api.html#id8) + * [For](https://jiraone.readthedocs.io/en/latest/api.html#id9) + * [replacement_placeholder](https://jiraone.readthedocs.io/en/latest/api.html#id10) + * [field](https://jiraone.readthedocs.io/en/latest/api.html#id11) + * [comment](https://jiraone.readthedocs.io/en/latest/api.html#id12) + * [manage](https://jiraone.readthedocs.io/en/latest/api.html#id13) + * [Other Variables](https://jiraone.readthedocs.io/en/latest/api.html#id14) +* [Basic report usage](https://jiraone.readthedocs.io/en/latest/report.html) + * [USER API](https://jiraone.readthedocs.io/en/latest/report.html#user-api) + * [PROJECT API](https://jiraone.readthedocs.io/en/latest/report.html#project-api) + * [Module API](https://jiraone.readthedocs.io/en/latest/report.html#module-api) + * [Support](https://jiraone.readthedocs.io/en/latest/report.html#support) + + + + +%package -n python3-jiraone +Summary: A REST API Implementation to Jira Cloud APIs for creating reports and for performing other Jira queries. +Provides: python-jiraone +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-jiraone +[](https://www.codacy.com/gh/princenyeche/jiraone/dashboard?utm_source=github.com&utm_medium=referral&utm_content=princenyeche/jiraone&utm_campaign=Badge_Grade) +[](https://pepy.tech/project/jiraone) +[](https://badge.fury.io/py/jiraone) + + +[](https://snyk.io/advisor/python/jiraone) +[](https://app.travis-ci.com/princenyeche/jiraone) +[](https://github.com/psf/black) + +# Jira one +A REST API Implementation to Jira Cloud APIs for creating reports and for performing other Jira queries. + +## Configurations +Install using `pip`. You have to be on python >= 3.6.x in order to utilize this script. +* Download python and install on your device by visiting [python.org](https://python.org/downloads) +* Run the below command either using a virtual environment or from your python alias +```bash +pip install jiraone +``` +OR +```bash +python3 -m pip install jiraone +``` + +## Classes, functions and methods +Jiraone comes with various classes, functions and methods. Aliases as well, are used to represent +links to classes and functions. The major ones to take note of are the ones shown on the directory link below. + +For further knowledge on how to use the classes, methods or functions. Open the jiraone package and read the docstring on the +aforementioned methods or functions above to get further information. + +If you're connecting to Jira server or datacenter, you will need to change the API endpoint to point to server instances. To do that, simply change +the attribute `LOGIN.api = False` this helps to use the endpoint `/rest/api/latest` which is compatible for Jira server or datacenter. + +```python +from jiraone import LOGIN + +data = "username", "password", "https://server.jiraserver.com" +LOGIN.api = False +LOGIN(*data) +``` + +The above login method applies only when you need to access a Jira server or datacenter type instances. The above has little or no effect on cloud instance and will work normally. + +# Directory +* [Using the API](https://jiraone.readthedocs.io/en/latest/api.html) + * [endpoint](https://jiraone.readthedocs.io/en/latest/api.html#endpoint) + * [LOGIN](https://jiraone.readthedocs.io/en/latest/api.html#login) + * [echo](https://jiraone.readthedocs.io/en/latest/api.html#id4) + * [add_log](https://jiraone.readthedocs.io/en/latest/api.html#id5) + * [file_writer](https://jiraone.readthedocs.io/en/latest/api.html#id6) + * [file_reader](https://jiraone.readthedocs.io/en/latest/api.html#id7) + * [path_builder](https://jiraone.readthedocs.io/en/latest/api.html#id8) + * [For](https://jiraone.readthedocs.io/en/latest/api.html#id9) + * [replacement_placeholder](https://jiraone.readthedocs.io/en/latest/api.html#id10) + * [field](https://jiraone.readthedocs.io/en/latest/api.html#id11) + * [comment](https://jiraone.readthedocs.io/en/latest/api.html#id12) + * [manage](https://jiraone.readthedocs.io/en/latest/api.html#id13) + * [Other Variables](https://jiraone.readthedocs.io/en/latest/api.html#id14) +* [Basic report usage](https://jiraone.readthedocs.io/en/latest/report.html) + * [USER API](https://jiraone.readthedocs.io/en/latest/report.html#user-api) + * [PROJECT API](https://jiraone.readthedocs.io/en/latest/report.html#project-api) + * [Module API](https://jiraone.readthedocs.io/en/latest/report.html#module-api) + * [Support](https://jiraone.readthedocs.io/en/latest/report.html#support) + + + + +%package help +Summary: Development documents and examples for jiraone +Provides: python3-jiraone-doc +%description help +[](https://www.codacy.com/gh/princenyeche/jiraone/dashboard?utm_source=github.com&utm_medium=referral&utm_content=princenyeche/jiraone&utm_campaign=Badge_Grade) +[](https://pepy.tech/project/jiraone) +[](https://badge.fury.io/py/jiraone) + + +[](https://snyk.io/advisor/python/jiraone) +[](https://app.travis-ci.com/princenyeche/jiraone) +[](https://github.com/psf/black) + +# Jira one +A REST API Implementation to Jira Cloud APIs for creating reports and for performing other Jira queries. + +## Configurations +Install using `pip`. You have to be on python >= 3.6.x in order to utilize this script. +* Download python and install on your device by visiting [python.org](https://python.org/downloads) +* Run the below command either using a virtual environment or from your python alias +```bash +pip install jiraone +``` +OR +```bash +python3 -m pip install jiraone +``` + +## Classes, functions and methods +Jiraone comes with various classes, functions and methods. Aliases as well, are used to represent +links to classes and functions. The major ones to take note of are the ones shown on the directory link below. + +For further knowledge on how to use the classes, methods or functions. Open the jiraone package and read the docstring on the +aforementioned methods or functions above to get further information. + +If you're connecting to Jira server or datacenter, you will need to change the API endpoint to point to server instances. To do that, simply change +the attribute `LOGIN.api = False` this helps to use the endpoint `/rest/api/latest` which is compatible for Jira server or datacenter. + +```python +from jiraone import LOGIN + +data = "username", "password", "https://server.jiraserver.com" +LOGIN.api = False +LOGIN(*data) +``` + +The above login method applies only when you need to access a Jira server or datacenter type instances. The above has little or no effect on cloud instance and will work normally. + +# Directory +* [Using the API](https://jiraone.readthedocs.io/en/latest/api.html) + * [endpoint](https://jiraone.readthedocs.io/en/latest/api.html#endpoint) + * [LOGIN](https://jiraone.readthedocs.io/en/latest/api.html#login) + * [echo](https://jiraone.readthedocs.io/en/latest/api.html#id4) + * [add_log](https://jiraone.readthedocs.io/en/latest/api.html#id5) + * [file_writer](https://jiraone.readthedocs.io/en/latest/api.html#id6) + * [file_reader](https://jiraone.readthedocs.io/en/latest/api.html#id7) + * [path_builder](https://jiraone.readthedocs.io/en/latest/api.html#id8) + * [For](https://jiraone.readthedocs.io/en/latest/api.html#id9) + * [replacement_placeholder](https://jiraone.readthedocs.io/en/latest/api.html#id10) + * [field](https://jiraone.readthedocs.io/en/latest/api.html#id11) + * [comment](https://jiraone.readthedocs.io/en/latest/api.html#id12) + * [manage](https://jiraone.readthedocs.io/en/latest/api.html#id13) + * [Other Variables](https://jiraone.readthedocs.io/en/latest/api.html#id14) +* [Basic report usage](https://jiraone.readthedocs.io/en/latest/report.html) + * [USER API](https://jiraone.readthedocs.io/en/latest/report.html#user-api) + * [PROJECT API](https://jiraone.readthedocs.io/en/latest/report.html#project-api) + * [Module API](https://jiraone.readthedocs.io/en/latest/report.html#module-api) + * [Support](https://jiraone.readthedocs.io/en/latest/report.html#support) + + + + +%prep +%autosetup -n jiraone-0.7.5 + +%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-jiraone -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.5-1 +- Package Spec generated |
