diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:08:57 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:08:57 +0000 |
| commit | 1a3d8b8d8e14a9699cd6def32c512196fe48de86 (patch) | |
| tree | 39773b9766df7ff89f360588ee1ffd17d2dcb22e /python-openmdao.spec | |
| parent | 6a767dfc9ea35033bd1cfce0e097cc6ed0f6556d (diff) | |
automatic import of python-openmdao
Diffstat (limited to 'python-openmdao.spec')
| -rw-r--r-- | python-openmdao.spec | 570 |
1 files changed, 570 insertions, 0 deletions
diff --git a/python-openmdao.spec b/python-openmdao.spec new file mode 100644 index 0000000..772a5ca --- /dev/null +++ b/python-openmdao.spec @@ -0,0 +1,570 @@ +%global _empty_manifest_terminate_build 0 +Name: python-openmdao +Version: 3.26.0 +Release: 1 +Summary: OpenMDAO framework infrastructure +License: Apache License, Version 2.0 +URL: http://openmdao.org +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b2/a3/f8ced71ecace7abb99ec10a576d3a04f0a0c11e786a9ee9ae8176cdf58f0/openmdao-3.26.0.tar.gz +BuildArch: noarch + + +%description +[![GitHub Actions Test Badge][17]][18] +[![Coveralls Badge][13]][14] +[![PyPI version][10]][11] +[![PyPI Monthly Downloads][12]][11] + +# [OpenMDAO][0] + +OpenMDAO is an open-source high-performance computing platform for +systems analysis and multidisciplinary optimization, written in Python. +It enables you to decompose your models, making them easier to build and +maintain, while still solving them in a tightly coupled manner with +efficient parallel numerical methods. + +The OpenMDAO project is primarily focused on supporting gradient-based +optimization with analytic derivatives to allow you to explore large +design spaces with hundreds or thousands of design variables, but the +framework also has a number of parallel computing features that can +work with gradient-free optimization, mixed-integer nonlinear +programming, and traditional design space exploration. + +If you are using OpenMDAO, please [cite][20] us! + +## Documentation + +Documentation for the latest version can be found [here][2]. + +Documentation archives for prior versions can be found [here][3]. + +## Important Notice + +While the API is relatively stable, **OpenMDAO** remains in active development. +There will be periodic changes to the API. +User's are encouraged to pin their version of OpenMDAO to a recent release and +update periodically. + +## Install OpenMDAO + +You have two options for installing **OpenMDAO**, (1) from the +[Python Package Index (PyPI)][1], and (2) from the [GitHub repository][4]. + +**OpenMDAO** includes several optional sets of dependencies including: +`test` for installing the developer tools (e.g., testing, coverage), +`docs` for building the documentation and +`visualization` for some extra visualization tools. +Specifying `all` will include all of the optional dependencies. + +### Install from [PyPI][1] + +This is the easiest way to install **OpenMDAO**. To install only the runtime +dependencies: + + pip install openmdao + +To install all the optional dependencies: + + pip install openmdao[all] + +### Install from a Cloned Repository + +This allows you to install **OpenMDAO** from a local copy of the source code. + + git clone http://github.com/OpenMDAO/OpenMDAO + pip install OpenMDAO + +If you would like to make changes to **OpenMDAO** it is recommended you +install it in *[editable][16]* mode (i.e., development mode) by adding the `-e` +flag when calling `pip`, this way any changes you make to the source code will +be included when you import **OpenMDAO** in *Python*. You will also want to +install the packages necessary for running **OpenMDAO**'s tests and documentation +generator. You can install everything needed for development by running: + + pip install -e OpenMDAO[all] + +## OpenMDAO Versions + +**OpenMDAO 3.x.y** represents the current, supported version. It requires Python 3.7 +or later and is maintained [here][4]. To upgrade to the latest release, run: + + pip install --upgrade openmdao + +**OpenMDAO 2.10.x** was the last version to support Python 2.x and is no longer supported. +To install this older release, run: + + pip install "openmdao<3" + +**OpenMDAO 1.7.4** was an earlier version of OpenMDAO and is also no longer supported. +The code repository is now named **OpenMDAO1**, and has moved [here][5]. To install it, run: + + pip install "openmdao<2" + +The legacy **OpenMDAO v0.x** (versions 0.13.0 and older) of the +**OpenMDAO-Framework** are [here][6]. + +## Test OpenMDAO + +Users are encouraged to run the unit tests to ensure **OpenMDAO** is performing +correctly. In order to do so, you must install the testing dependencies. + +1. Install **OpenMDAO** and its testing dependencies: + + `pip install openmdao[test]` + + > Alternatively, you can clone the repository, as explained + [here](#install-from-a-cloned-repository), and install the development + dependencies as described [here](#install-the-developer-dependencies). + +2. Run tests: + + `testflo openmdao -n 1` + +3. If everything works correctly, you should see a message stating that there +were zero failures. If the tests produce failures, you are encouraged to report +them as an [issue][7]. If so, please make sure you include your system spec, +and include the error message. + + > If tests fail, please include your system information, you can obtain + that by running the following commands in *python* and copying the results + produced by the last line. + + import platform, sys + + info = platform.uname() + (info.system, info.version), (info.machine, info.processor), sys.version + + > Which should produce a result similar to: + + (('Windows', '10.0.17134'), + ('AMD64', 'Intel64 Family 6 Model 94 Stepping 3, GenuineIntel'), + '3.6.6 | packaged by conda-forge | (default, Jul 26 2018, 11:48:23) ...') + +## Build the Documentation for OpenMDAO + +Documentation for the latest version can always be found [here][2], but if you would like to build a local copy you can find instructions to do so [here][19]. + +[0]: http://openmdao.org/ "OpenMDAO" +[1]: https://pypi.org/project/openmdao/ "OpenMDAO @PyPI" + +[2]: http://openmdao.org/newdocs/versions/latest "Latest Docs" +[3]: http://openmdao.org/docs "Archived Docs" + +[4]: https://github.com/OpenMDAO/OpenMDAO "OpenMDAO Git Repo" +[5]: https://github.com/OpenMDAO/OpenMDAO1 "OpenMDAO 1.x Git Repo" +[6]: https://github.com/OpenMDAO/OpenMDAO-Framework "OpenMDAO Framework Git Repo" + +[7]: https://github.com/OpenMDAO/OpenMDAO/issues/new "Make New OpenMDAO Issue" + +[8]: https://help.github.com/articles/changing-a-remote-s-url/ "Update Git Remote URL" + +[10]: https://badge.fury.io/py/openmdao.svg "PyPI Version" +[11]: https://badge.fury.io/py/openmdao "OpenMDAO @PyPI" + +[12]: https://img.shields.io/pypi/dm/openmdao "PyPI Monthly Downloads" + +[13]: https://coveralls.io/repos/github/OpenMDAO/OpenMDAO/badge.svg?branch=master "Coverage Badge" +[14]: https://coveralls.io/github/OpenMDAO/OpenMDAO?branch=master "OpenMDAO @Coveralls" + +[15]: https://en.wikipedia.org/wiki/Software_release_life_cycle#Beta "Wikipedia Beta" + +[16]: https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode "Pip Editable Mode" + +[17]: https://github.com/OpenMDAO/OpenMDAO/actions/workflows/openmdao_test_workflow.yml/badge.svg "Github Actions Badge" +[18]: https://github.com/OpenMDAO/OpenMDAO/actions "Github Actions" + +[19]: http://openmdao.org/newdocs/versions/latest/other_useful_docs/developer_docs/doc_build.html + +[20]: https://openmdao.org/newdocs/versions/latest/other/citing.html + + +%package -n python3-openmdao +Summary: OpenMDAO framework infrastructure +Provides: python-openmdao +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-openmdao +[![GitHub Actions Test Badge][17]][18] +[![Coveralls Badge][13]][14] +[![PyPI version][10]][11] +[![PyPI Monthly Downloads][12]][11] + +# [OpenMDAO][0] + +OpenMDAO is an open-source high-performance computing platform for +systems analysis and multidisciplinary optimization, written in Python. +It enables you to decompose your models, making them easier to build and +maintain, while still solving them in a tightly coupled manner with +efficient parallel numerical methods. + +The OpenMDAO project is primarily focused on supporting gradient-based +optimization with analytic derivatives to allow you to explore large +design spaces with hundreds or thousands of design variables, but the +framework also has a number of parallel computing features that can +work with gradient-free optimization, mixed-integer nonlinear +programming, and traditional design space exploration. + +If you are using OpenMDAO, please [cite][20] us! + +## Documentation + +Documentation for the latest version can be found [here][2]. + +Documentation archives for prior versions can be found [here][3]. + +## Important Notice + +While the API is relatively stable, **OpenMDAO** remains in active development. +There will be periodic changes to the API. +User's are encouraged to pin their version of OpenMDAO to a recent release and +update periodically. + +## Install OpenMDAO + +You have two options for installing **OpenMDAO**, (1) from the +[Python Package Index (PyPI)][1], and (2) from the [GitHub repository][4]. + +**OpenMDAO** includes several optional sets of dependencies including: +`test` for installing the developer tools (e.g., testing, coverage), +`docs` for building the documentation and +`visualization` for some extra visualization tools. +Specifying `all` will include all of the optional dependencies. + +### Install from [PyPI][1] + +This is the easiest way to install **OpenMDAO**. To install only the runtime +dependencies: + + pip install openmdao + +To install all the optional dependencies: + + pip install openmdao[all] + +### Install from a Cloned Repository + +This allows you to install **OpenMDAO** from a local copy of the source code. + + git clone http://github.com/OpenMDAO/OpenMDAO + pip install OpenMDAO + +If you would like to make changes to **OpenMDAO** it is recommended you +install it in *[editable][16]* mode (i.e., development mode) by adding the `-e` +flag when calling `pip`, this way any changes you make to the source code will +be included when you import **OpenMDAO** in *Python*. You will also want to +install the packages necessary for running **OpenMDAO**'s tests and documentation +generator. You can install everything needed for development by running: + + pip install -e OpenMDAO[all] + +## OpenMDAO Versions + +**OpenMDAO 3.x.y** represents the current, supported version. It requires Python 3.7 +or later and is maintained [here][4]. To upgrade to the latest release, run: + + pip install --upgrade openmdao + +**OpenMDAO 2.10.x** was the last version to support Python 2.x and is no longer supported. +To install this older release, run: + + pip install "openmdao<3" + +**OpenMDAO 1.7.4** was an earlier version of OpenMDAO and is also no longer supported. +The code repository is now named **OpenMDAO1**, and has moved [here][5]. To install it, run: + + pip install "openmdao<2" + +The legacy **OpenMDAO v0.x** (versions 0.13.0 and older) of the +**OpenMDAO-Framework** are [here][6]. + +## Test OpenMDAO + +Users are encouraged to run the unit tests to ensure **OpenMDAO** is performing +correctly. In order to do so, you must install the testing dependencies. + +1. Install **OpenMDAO** and its testing dependencies: + + `pip install openmdao[test]` + + > Alternatively, you can clone the repository, as explained + [here](#install-from-a-cloned-repository), and install the development + dependencies as described [here](#install-the-developer-dependencies). + +2. Run tests: + + `testflo openmdao -n 1` + +3. If everything works correctly, you should see a message stating that there +were zero failures. If the tests produce failures, you are encouraged to report +them as an [issue][7]. If so, please make sure you include your system spec, +and include the error message. + + > If tests fail, please include your system information, you can obtain + that by running the following commands in *python* and copying the results + produced by the last line. + + import platform, sys + + info = platform.uname() + (info.system, info.version), (info.machine, info.processor), sys.version + + > Which should produce a result similar to: + + (('Windows', '10.0.17134'), + ('AMD64', 'Intel64 Family 6 Model 94 Stepping 3, GenuineIntel'), + '3.6.6 | packaged by conda-forge | (default, Jul 26 2018, 11:48:23) ...') + +## Build the Documentation for OpenMDAO + +Documentation for the latest version can always be found [here][2], but if you would like to build a local copy you can find instructions to do so [here][19]. + +[0]: http://openmdao.org/ "OpenMDAO" +[1]: https://pypi.org/project/openmdao/ "OpenMDAO @PyPI" + +[2]: http://openmdao.org/newdocs/versions/latest "Latest Docs" +[3]: http://openmdao.org/docs "Archived Docs" + +[4]: https://github.com/OpenMDAO/OpenMDAO "OpenMDAO Git Repo" +[5]: https://github.com/OpenMDAO/OpenMDAO1 "OpenMDAO 1.x Git Repo" +[6]: https://github.com/OpenMDAO/OpenMDAO-Framework "OpenMDAO Framework Git Repo" + +[7]: https://github.com/OpenMDAO/OpenMDAO/issues/new "Make New OpenMDAO Issue" + +[8]: https://help.github.com/articles/changing-a-remote-s-url/ "Update Git Remote URL" + +[10]: https://badge.fury.io/py/openmdao.svg "PyPI Version" +[11]: https://badge.fury.io/py/openmdao "OpenMDAO @PyPI" + +[12]: https://img.shields.io/pypi/dm/openmdao "PyPI Monthly Downloads" + +[13]: https://coveralls.io/repos/github/OpenMDAO/OpenMDAO/badge.svg?branch=master "Coverage Badge" +[14]: https://coveralls.io/github/OpenMDAO/OpenMDAO?branch=master "OpenMDAO @Coveralls" + +[15]: https://en.wikipedia.org/wiki/Software_release_life_cycle#Beta "Wikipedia Beta" + +[16]: https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode "Pip Editable Mode" + +[17]: https://github.com/OpenMDAO/OpenMDAO/actions/workflows/openmdao_test_workflow.yml/badge.svg "Github Actions Badge" +[18]: https://github.com/OpenMDAO/OpenMDAO/actions "Github Actions" + +[19]: http://openmdao.org/newdocs/versions/latest/other_useful_docs/developer_docs/doc_build.html + +[20]: https://openmdao.org/newdocs/versions/latest/other/citing.html + + +%package help +Summary: Development documents and examples for openmdao +Provides: python3-openmdao-doc +%description help +[![GitHub Actions Test Badge][17]][18] +[![Coveralls Badge][13]][14] +[![PyPI version][10]][11] +[![PyPI Monthly Downloads][12]][11] + +# [OpenMDAO][0] + +OpenMDAO is an open-source high-performance computing platform for +systems analysis and multidisciplinary optimization, written in Python. +It enables you to decompose your models, making them easier to build and +maintain, while still solving them in a tightly coupled manner with +efficient parallel numerical methods. + +The OpenMDAO project is primarily focused on supporting gradient-based +optimization with analytic derivatives to allow you to explore large +design spaces with hundreds or thousands of design variables, but the +framework also has a number of parallel computing features that can +work with gradient-free optimization, mixed-integer nonlinear +programming, and traditional design space exploration. + +If you are using OpenMDAO, please [cite][20] us! + +## Documentation + +Documentation for the latest version can be found [here][2]. + +Documentation archives for prior versions can be found [here][3]. + +## Important Notice + +While the API is relatively stable, **OpenMDAO** remains in active development. +There will be periodic changes to the API. +User's are encouraged to pin their version of OpenMDAO to a recent release and +update periodically. + +## Install OpenMDAO + +You have two options for installing **OpenMDAO**, (1) from the +[Python Package Index (PyPI)][1], and (2) from the [GitHub repository][4]. + +**OpenMDAO** includes several optional sets of dependencies including: +`test` for installing the developer tools (e.g., testing, coverage), +`docs` for building the documentation and +`visualization` for some extra visualization tools. +Specifying `all` will include all of the optional dependencies. + +### Install from [PyPI][1] + +This is the easiest way to install **OpenMDAO**. To install only the runtime +dependencies: + + pip install openmdao + +To install all the optional dependencies: + + pip install openmdao[all] + +### Install from a Cloned Repository + +This allows you to install **OpenMDAO** from a local copy of the source code. + + git clone http://github.com/OpenMDAO/OpenMDAO + pip install OpenMDAO + +If you would like to make changes to **OpenMDAO** it is recommended you +install it in *[editable][16]* mode (i.e., development mode) by adding the `-e` +flag when calling `pip`, this way any changes you make to the source code will +be included when you import **OpenMDAO** in *Python*. You will also want to +install the packages necessary for running **OpenMDAO**'s tests and documentation +generator. You can install everything needed for development by running: + + pip install -e OpenMDAO[all] + +## OpenMDAO Versions + +**OpenMDAO 3.x.y** represents the current, supported version. It requires Python 3.7 +or later and is maintained [here][4]. To upgrade to the latest release, run: + + pip install --upgrade openmdao + +**OpenMDAO 2.10.x** was the last version to support Python 2.x and is no longer supported. +To install this older release, run: + + pip install "openmdao<3" + +**OpenMDAO 1.7.4** was an earlier version of OpenMDAO and is also no longer supported. +The code repository is now named **OpenMDAO1**, and has moved [here][5]. To install it, run: + + pip install "openmdao<2" + +The legacy **OpenMDAO v0.x** (versions 0.13.0 and older) of the +**OpenMDAO-Framework** are [here][6]. + +## Test OpenMDAO + +Users are encouraged to run the unit tests to ensure **OpenMDAO** is performing +correctly. In order to do so, you must install the testing dependencies. + +1. Install **OpenMDAO** and its testing dependencies: + + `pip install openmdao[test]` + + > Alternatively, you can clone the repository, as explained + [here](#install-from-a-cloned-repository), and install the development + dependencies as described [here](#install-the-developer-dependencies). + +2. Run tests: + + `testflo openmdao -n 1` + +3. If everything works correctly, you should see a message stating that there +were zero failures. If the tests produce failures, you are encouraged to report +them as an [issue][7]. If so, please make sure you include your system spec, +and include the error message. + + > If tests fail, please include your system information, you can obtain + that by running the following commands in *python* and copying the results + produced by the last line. + + import platform, sys + + info = platform.uname() + (info.system, info.version), (info.machine, info.processor), sys.version + + > Which should produce a result similar to: + + (('Windows', '10.0.17134'), + ('AMD64', 'Intel64 Family 6 Model 94 Stepping 3, GenuineIntel'), + '3.6.6 | packaged by conda-forge | (default, Jul 26 2018, 11:48:23) ...') + +## Build the Documentation for OpenMDAO + +Documentation for the latest version can always be found [here][2], but if you would like to build a local copy you can find instructions to do so [here][19]. + +[0]: http://openmdao.org/ "OpenMDAO" +[1]: https://pypi.org/project/openmdao/ "OpenMDAO @PyPI" + +[2]: http://openmdao.org/newdocs/versions/latest "Latest Docs" +[3]: http://openmdao.org/docs "Archived Docs" + +[4]: https://github.com/OpenMDAO/OpenMDAO "OpenMDAO Git Repo" +[5]: https://github.com/OpenMDAO/OpenMDAO1 "OpenMDAO 1.x Git Repo" +[6]: https://github.com/OpenMDAO/OpenMDAO-Framework "OpenMDAO Framework Git Repo" + +[7]: https://github.com/OpenMDAO/OpenMDAO/issues/new "Make New OpenMDAO Issue" + +[8]: https://help.github.com/articles/changing-a-remote-s-url/ "Update Git Remote URL" + +[10]: https://badge.fury.io/py/openmdao.svg "PyPI Version" +[11]: https://badge.fury.io/py/openmdao "OpenMDAO @PyPI" + +[12]: https://img.shields.io/pypi/dm/openmdao "PyPI Monthly Downloads" + +[13]: https://coveralls.io/repos/github/OpenMDAO/OpenMDAO/badge.svg?branch=master "Coverage Badge" +[14]: https://coveralls.io/github/OpenMDAO/OpenMDAO?branch=master "OpenMDAO @Coveralls" + +[15]: https://en.wikipedia.org/wiki/Software_release_life_cycle#Beta "Wikipedia Beta" + +[16]: https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode "Pip Editable Mode" + +[17]: https://github.com/OpenMDAO/OpenMDAO/actions/workflows/openmdao_test_workflow.yml/badge.svg "Github Actions Badge" +[18]: https://github.com/OpenMDAO/OpenMDAO/actions "Github Actions" + +[19]: http://openmdao.org/newdocs/versions/latest/other_useful_docs/developer_docs/doc_build.html + +[20]: https://openmdao.org/newdocs/versions/latest/other/citing.html + + +%prep +%autosetup -n openmdao-3.26.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-openmdao -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 3.26.0-1 +- Package Spec generated |
