diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 00:12:58 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 00:12:58 +0000 |
commit | f0bc195fb7610754b149e9689dc69649f350544b (patch) | |
tree | dee4462e94d4d829b0820f5bba58e413ddfdbf07 | |
parent | 71daffa0d186d84e33baed9017af73d94e20cd26 (diff) |
automatic import of python-nlp
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-nlp.spec | 244 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 246 insertions, 0 deletions
@@ -0,0 +1 @@ +/nlp-0.4.0.tar.gz diff --git a/python-nlp.spec b/python-nlp.spec new file mode 100644 index 0000000..382a03c --- /dev/null +++ b/python-nlp.spec @@ -0,0 +1,244 @@ +%global _empty_manifest_terminate_build 0 +Name: python-nlp +Version: 0.4.0 +Release: 1 +Summary: HuggingFace/NLP is an open library of NLP datasets. +License: Apache 2.0 +URL: https://github.com/huggingface/nlp +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fe/61/73576d622a55c86197516855b82bdddba227046eb7d3a4f480bd11ac8200/nlp-0.4.0.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-pyarrow +Requires: python3-dill +Requires: python3-pandas +Requires: python3-requests +Requires: python3-tqdm +Requires: python3-filelock +Requires: python3-xxhash +Requires: python3-dataclasses +Requires: python3-apache-beam +Requires: python3-apache-beam +Requires: python3-absl-py +Requires: python3-bs4 +Requires: python3-elasticsearch +Requires: python3-faiss-cpu +Requires: python3-langdetect +Requires: python3-mwparserfromhell +Requires: python3-nltk +Requires: python3-pytest +Requires: python3-pytest-xdist +Requires: python3-tensorflow +Requires: python3-torch +Requires: python3-tldextract +Requires: python3-zstandard +Requires: python3-black +Requires: python3-isort +Requires: python3-flake8 +Requires: python3-recommonmark +Requires: python3-sphinx +Requires: python3-sphinx-markdown-tables +Requires: python3-sphinx-rtd-theme +Requires: python3-sphinx-copybutton +Requires: python3-black +Requires: python3-isort +Requires: python3-flake8 +Requires: python3-tensorflow +Requires: python3-tensorflow-gpu +Requires: python3-apache-beam +Requires: python3-absl-py +Requires: python3-bs4 +Requires: python3-elasticsearch +Requires: python3-faiss-cpu +Requires: python3-langdetect +Requires: python3-mwparserfromhell +Requires: python3-nltk +Requires: python3-pytest +Requires: python3-pytest-xdist +Requires: python3-tensorflow +Requires: python3-torch +Requires: python3-tldextract +Requires: python3-zstandard +Requires: python3-torch + +%description +Simple check list for release from AllenNLP repo: https://github.com/allenai/allennlp/blob/master/setup.py + +To create the package for pypi. + +1. Change the version in __init__.py, setup.py as well as docs/source/conf.py. + +2. Commit these changes with the message: "Release: VERSION" + +3. Add a tag in git to mark the release: "git tag VERSION -m'Adds tag VERSION for pypi' " + Push the tag to git: git push --tags origin master + +4. Build both the sources and the wheel. Do not change anything in setup.py between + creating the wheel and the source distribution (obviously). + + For the wheel, run: "python setup.py bdist_wheel" in the top level directory. + (this will build a wheel for the python version you use to build it). + + For the sources, run: "python setup.py sdist" + You should now have a /dist directory with both .whl and .tar.gz source versions. + +5. Check that everything looks correct by uploading the package to the pypi test server: + + twine upload dist/* -r pypitest + (pypi suggest using twine as other methods upload files via plaintext.) + You may have to specify the repository url, use the following command then: + twine upload dist/* -r pypitest --repository-url=https://test.pypi.org/legacy/ + + Check that you can install it in a virtualenv by running: + pip install -i https://testpypi.python.org/pypi nlp + +6. Upload the final version to actual pypi: + twine upload dist/* -r pypi + +7. Copy the release notes from RELEASE.md to the tag in github once everything is looking hunky-dory. + +8. Update the documentation commit in .circleci/deploy.sh for the accurate documentation to be displayed + +9. Update README.md to redirect to correct documentation. + + + + +%package -n python3-nlp +Summary: HuggingFace/NLP is an open library of NLP datasets. +Provides: python-nlp +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-nlp +Simple check list for release from AllenNLP repo: https://github.com/allenai/allennlp/blob/master/setup.py + +To create the package for pypi. + +1. Change the version in __init__.py, setup.py as well as docs/source/conf.py. + +2. Commit these changes with the message: "Release: VERSION" + +3. Add a tag in git to mark the release: "git tag VERSION -m'Adds tag VERSION for pypi' " + Push the tag to git: git push --tags origin master + +4. Build both the sources and the wheel. Do not change anything in setup.py between + creating the wheel and the source distribution (obviously). + + For the wheel, run: "python setup.py bdist_wheel" in the top level directory. + (this will build a wheel for the python version you use to build it). + + For the sources, run: "python setup.py sdist" + You should now have a /dist directory with both .whl and .tar.gz source versions. + +5. Check that everything looks correct by uploading the package to the pypi test server: + + twine upload dist/* -r pypitest + (pypi suggest using twine as other methods upload files via plaintext.) + You may have to specify the repository url, use the following command then: + twine upload dist/* -r pypitest --repository-url=https://test.pypi.org/legacy/ + + Check that you can install it in a virtualenv by running: + pip install -i https://testpypi.python.org/pypi nlp + +6. Upload the final version to actual pypi: + twine upload dist/* -r pypi + +7. Copy the release notes from RELEASE.md to the tag in github once everything is looking hunky-dory. + +8. Update the documentation commit in .circleci/deploy.sh for the accurate documentation to be displayed + +9. Update README.md to redirect to correct documentation. + + + + +%package help +Summary: Development documents and examples for nlp +Provides: python3-nlp-doc +%description help +Simple check list for release from AllenNLP repo: https://github.com/allenai/allennlp/blob/master/setup.py + +To create the package for pypi. + +1. Change the version in __init__.py, setup.py as well as docs/source/conf.py. + +2. Commit these changes with the message: "Release: VERSION" + +3. Add a tag in git to mark the release: "git tag VERSION -m'Adds tag VERSION for pypi' " + Push the tag to git: git push --tags origin master + +4. Build both the sources and the wheel. Do not change anything in setup.py between + creating the wheel and the source distribution (obviously). + + For the wheel, run: "python setup.py bdist_wheel" in the top level directory. + (this will build a wheel for the python version you use to build it). + + For the sources, run: "python setup.py sdist" + You should now have a /dist directory with both .whl and .tar.gz source versions. + +5. Check that everything looks correct by uploading the package to the pypi test server: + + twine upload dist/* -r pypitest + (pypi suggest using twine as other methods upload files via plaintext.) + You may have to specify the repository url, use the following command then: + twine upload dist/* -r pypitest --repository-url=https://test.pypi.org/legacy/ + + Check that you can install it in a virtualenv by running: + pip install -i https://testpypi.python.org/pypi nlp + +6. Upload the final version to actual pypi: + twine upload dist/* -r pypi + +7. Copy the release notes from RELEASE.md to the tag in github once everything is looking hunky-dory. + +8. Update the documentation commit in .circleci/deploy.sh for the accurate documentation to be displayed + +9. Update README.md to redirect to correct documentation. + + + + +%prep +%autosetup -n nlp-0.4.0 + +%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-nlp -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1 +- Package Spec generated @@ -0,0 +1 @@ +d577ad265d088735c1670f04e01571ca nlp-0.4.0.tar.gz |