summaryrefslogtreecommitdiff
path: root/python-parlai.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-08 09:23:59 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-08 09:23:59 +0000
commitf6176c425cc975e134ed87d6b0bf5b352f53eee1 (patch)
treefe53476e6c2e91dc21bc7878b759cde1950a77fb /python-parlai.spec
parentc95fe3b236ded0c7ded60ad23edbb1b4c9c9303b (diff)
automatic import of python-parlaiopeneuler20.03
Diffstat (limited to 'python-parlai.spec')
-rw-r--r--python-parlai.spec120
1 files changed, 83 insertions, 37 deletions
diff --git a/python-parlai.spec b/python-parlai.spec
index a30abbc..ea435f5 100644
--- a/python-parlai.spec
+++ b/python-parlai.spec
@@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-parlai
-Version: 1.7.1
+Version: 1.7.2
Release: 1
Summary: Unified platform for dialogue research.
License: MIT License
URL: http://parl.ai/
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d7/15/6f3aab24dde27ab649a5fea4b1f4354267b27f1a83dd0e1095450ef29a90/parlai-1.7.1.tar.gz
+Source0: https://mirrors.aliyun.com/pypi/web/packages/b7/73/a20eac14b2e7386ff691db02550d956739aa2f2156447bd9f06b30360766/parlai-1.7.2.tar.gz
BuildArch: noarch
Requires: python3-coloredlogs
@@ -18,13 +18,13 @@ Requires: python3-flake8-bugbear
Requires: python3-flake8
Requires: python3-fuzzywuzzy
Requires: python3-google-cloud-storage
-Requires: python3-importlib-metadata
Requires: python3-iopath
Requires: python3-gitdb2
Requires: python3-GitPython
Requires: python3-hydra-core
Requires: python3-ipython
Requires: python3-torch
+Requires: python3-torchvision
Requires: python3-joblib
Requires: python3-nltk
Requires: python3-omegaconf
@@ -67,6 +67,7 @@ Requires: python3-ninja
Requires: python3-protobuf
Requires: python3-contractions
Requires: python3-fsspec
+Requires: python3-google-api-core
%description
[ParlAI](http://parl.ai) (pronounced “par-lay”) is a python framework for
@@ -92,24 +93,39 @@ check out [NEWS.md](https://github.com/facebookresearch/ParlAI/blob/main/NEWS.md
## Interactive Tutorial
For those who want to start with ParlAI now, you can try our [Colab Tutorial](https://colab.research.google.com/drive/1bRMvN0lGXaTF5fuTidgvlAl-Lb41F7AD#scrollTo=KtVz5dCUmFkN).
## Installing ParlAI
-ParlAI currently requires Python3.8+ and [Pytorch](https://pytorch.org) 1.6 or higher.
-Dependencies of the core modules are listed in [`requirements.txt`](https://github.com/facebookresearch/ParlAI/blob/main/requirements.txt). Some
-models included (in [`parlai/agents`](https://github.com/facebookresearch/ParlAI/tree/main/parlai/agents)) have additional requirements.
-We *strongly* recommend you install ParlAI in a [venv](https://docs.python.org/3/library/venv.html) or [conda](https://www.anaconda.com/) environment.
-We do not support Windows at this time, but many users [report success on Windows using Python 3.8](https://github.com/facebookresearch/ParlAI/issues/3989) and issues with Python 3.9. We are happy to accept patches that improve Windows support.
-**Standard Installation**
+### Operating System
+ParlAI should work as inteded under Linux or macOS. We do not support Windows at this time, but many users [report success on Windows using Python 3.8](https://github.com/facebookresearch/ParlAI/issues/3989) and issues with Python 3.9. We are happy to accept patches that improve Windows support.
+### Python Interpreter
+ParlAI currently requires Python3.8+.
+### Requirements
+ParlAI supports [Pytorch](https://pytorch.org) 1.6 or higher.
+All requirements of the core modules are listed in [`requirements.txt`](https://github.com/facebookresearch/ParlAI/blob/main/requirements.txt). However, some models included (in [`parlai/agents`](https://github.com/facebookresearch/ParlAI/tree/main/parlai/agents)) have additional requirements.
+## Virtual Environment
+We *strongly* recommend you install ParlAI in a virtual environment using [venv](https://docs.python.org/3/library/venv.html) or [conda](https://www.anaconda.com/).
+### End User Installation
If you want to use ParlAI without modifications, you can install it with:
```bash
-pip install parlai
+cd /path/to/your/parlai-app
+python3.8 -m venv venv
+venv/bin/pip install --upgrade pip setuptools wheel
+venv/bin/pip install parlai
```
-**Development Installation**
+### Developer Installation
Many users will want to modify some parts of ParlAI. To set up a development
environment, run the following commands to clone the repository and install
ParlAI:
```bash
git clone https://github.com/facebookresearch/ParlAI.git ~/ParlAI
-cd ~/ParlAI; python setup.py develop
+cd ~/ParlAI
+python3.8 -m venv venv
+venv/bin/pip install --upgrade pip setuptools wheel
+venv/bin/python setup.py develop
```
+> **Note**
+> Sometimes the install from source maynot work due to dependencies (specially in PyTorch related packaged).
+> In that case try building a fresh conda environment and running the similar to the following:
+> `conda install pytorch==2.0.0 torchvision torchaudio torchtext pytorch-cuda=11.8 -c pytorch -c nvidia`.
+> Check torch setup documentation for your CUDA and OS versions.
All needed data will be downloaded to `~/ParlAI/data`. If you need to clear out
the space used by these files, you can safely delete these directories and any
files needed will be downloaded again.
@@ -212,24 +228,39 @@ check out [NEWS.md](https://github.com/facebookresearch/ParlAI/blob/main/NEWS.md
## Interactive Tutorial
For those who want to start with ParlAI now, you can try our [Colab Tutorial](https://colab.research.google.com/drive/1bRMvN0lGXaTF5fuTidgvlAl-Lb41F7AD#scrollTo=KtVz5dCUmFkN).
## Installing ParlAI
-ParlAI currently requires Python3.8+ and [Pytorch](https://pytorch.org) 1.6 or higher.
-Dependencies of the core modules are listed in [`requirements.txt`](https://github.com/facebookresearch/ParlAI/blob/main/requirements.txt). Some
-models included (in [`parlai/agents`](https://github.com/facebookresearch/ParlAI/tree/main/parlai/agents)) have additional requirements.
-We *strongly* recommend you install ParlAI in a [venv](https://docs.python.org/3/library/venv.html) or [conda](https://www.anaconda.com/) environment.
-We do not support Windows at this time, but many users [report success on Windows using Python 3.8](https://github.com/facebookresearch/ParlAI/issues/3989) and issues with Python 3.9. We are happy to accept patches that improve Windows support.
-**Standard Installation**
+### Operating System
+ParlAI should work as inteded under Linux or macOS. We do not support Windows at this time, but many users [report success on Windows using Python 3.8](https://github.com/facebookresearch/ParlAI/issues/3989) and issues with Python 3.9. We are happy to accept patches that improve Windows support.
+### Python Interpreter
+ParlAI currently requires Python3.8+.
+### Requirements
+ParlAI supports [Pytorch](https://pytorch.org) 1.6 or higher.
+All requirements of the core modules are listed in [`requirements.txt`](https://github.com/facebookresearch/ParlAI/blob/main/requirements.txt). However, some models included (in [`parlai/agents`](https://github.com/facebookresearch/ParlAI/tree/main/parlai/agents)) have additional requirements.
+## Virtual Environment
+We *strongly* recommend you install ParlAI in a virtual environment using [venv](https://docs.python.org/3/library/venv.html) or [conda](https://www.anaconda.com/).
+### End User Installation
If you want to use ParlAI without modifications, you can install it with:
```bash
-pip install parlai
+cd /path/to/your/parlai-app
+python3.8 -m venv venv
+venv/bin/pip install --upgrade pip setuptools wheel
+venv/bin/pip install parlai
```
-**Development Installation**
+### Developer Installation
Many users will want to modify some parts of ParlAI. To set up a development
environment, run the following commands to clone the repository and install
ParlAI:
```bash
git clone https://github.com/facebookresearch/ParlAI.git ~/ParlAI
-cd ~/ParlAI; python setup.py develop
+cd ~/ParlAI
+python3.8 -m venv venv
+venv/bin/pip install --upgrade pip setuptools wheel
+venv/bin/python setup.py develop
```
+> **Note**
+> Sometimes the install from source maynot work due to dependencies (specially in PyTorch related packaged).
+> In that case try building a fresh conda environment and running the similar to the following:
+> `conda install pytorch==2.0.0 torchvision torchaudio torchtext pytorch-cuda=11.8 -c pytorch -c nvidia`.
+> Check torch setup documentation for your CUDA and OS versions.
All needed data will be downloaded to `~/ParlAI/data`. If you need to clear out
the space used by these files, you can safely delete these directories and any
files needed will be downloaded again.
@@ -329,24 +360,39 @@ check out [NEWS.md](https://github.com/facebookresearch/ParlAI/blob/main/NEWS.md
## Interactive Tutorial
For those who want to start with ParlAI now, you can try our [Colab Tutorial](https://colab.research.google.com/drive/1bRMvN0lGXaTF5fuTidgvlAl-Lb41F7AD#scrollTo=KtVz5dCUmFkN).
## Installing ParlAI
-ParlAI currently requires Python3.8+ and [Pytorch](https://pytorch.org) 1.6 or higher.
-Dependencies of the core modules are listed in [`requirements.txt`](https://github.com/facebookresearch/ParlAI/blob/main/requirements.txt). Some
-models included (in [`parlai/agents`](https://github.com/facebookresearch/ParlAI/tree/main/parlai/agents)) have additional requirements.
-We *strongly* recommend you install ParlAI in a [venv](https://docs.python.org/3/library/venv.html) or [conda](https://www.anaconda.com/) environment.
-We do not support Windows at this time, but many users [report success on Windows using Python 3.8](https://github.com/facebookresearch/ParlAI/issues/3989) and issues with Python 3.9. We are happy to accept patches that improve Windows support.
-**Standard Installation**
+### Operating System
+ParlAI should work as inteded under Linux or macOS. We do not support Windows at this time, but many users [report success on Windows using Python 3.8](https://github.com/facebookresearch/ParlAI/issues/3989) and issues with Python 3.9. We are happy to accept patches that improve Windows support.
+### Python Interpreter
+ParlAI currently requires Python3.8+.
+### Requirements
+ParlAI supports [Pytorch](https://pytorch.org) 1.6 or higher.
+All requirements of the core modules are listed in [`requirements.txt`](https://github.com/facebookresearch/ParlAI/blob/main/requirements.txt). However, some models included (in [`parlai/agents`](https://github.com/facebookresearch/ParlAI/tree/main/parlai/agents)) have additional requirements.
+## Virtual Environment
+We *strongly* recommend you install ParlAI in a virtual environment using [venv](https://docs.python.org/3/library/venv.html) or [conda](https://www.anaconda.com/).
+### End User Installation
If you want to use ParlAI without modifications, you can install it with:
```bash
-pip install parlai
+cd /path/to/your/parlai-app
+python3.8 -m venv venv
+venv/bin/pip install --upgrade pip setuptools wheel
+venv/bin/pip install parlai
```
-**Development Installation**
+### Developer Installation
Many users will want to modify some parts of ParlAI. To set up a development
environment, run the following commands to clone the repository and install
ParlAI:
```bash
git clone https://github.com/facebookresearch/ParlAI.git ~/ParlAI
-cd ~/ParlAI; python setup.py develop
+cd ~/ParlAI
+python3.8 -m venv venv
+venv/bin/pip install --upgrade pip setuptools wheel
+venv/bin/python setup.py develop
```
+> **Note**
+> Sometimes the install from source maynot work due to dependencies (specially in PyTorch related packaged).
+> In that case try building a fresh conda environment and running the similar to the following:
+> `conda install pytorch==2.0.0 torchvision torchaudio torchtext pytorch-cuda=11.8 -c pytorch -c nvidia`.
+> Check torch setup documentation for your CUDA and OS versions.
All needed data will be downloaded to `~/ParlAI/data`. If you need to clear out
the space used by these files, you can safely delete these directories and any
files needed will be downloaded again.
@@ -420,7 +466,7 @@ Please cite the [arXiv paper](https://arxiv.org/abs/1705.06476) if you use ParlA
ParlAI is MIT licensed. See the **[LICENSE](https://github.com/facebookresearch/ParlAI/blob/main/LICENSE)** file for details.
%prep
-%autosetup -n parlai-1.7.1
+%autosetup -n parlai-1.7.2
%build
%py3_build
@@ -434,20 +480,20 @@ 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
+ 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
+ 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
+ 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
+ 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
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
@@ -460,5 +506,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.1-1
+* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.2-1
- Package Spec generated