diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 15:51:17 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 15:51:17 +0000 |
commit | e710b1b40108cb41a869118bcf4062c7bc23ec42 (patch) | |
tree | 0215c62b65ac5dc075d39e65175df033e5f940e8 | |
parent | 58f4ecd208348c5f87ecb2d51faa1d61f7935aff (diff) |
automatic import of python-pyscaffold
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyscaffold.spec | 210 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 212 insertions, 0 deletions
@@ -0,0 +1 @@ +/PyScaffold-4.4.tar.gz diff --git a/python-pyscaffold.spec b/python-pyscaffold.spec new file mode 100644 index 0000000..4e8af67 --- /dev/null +++ b/python-pyscaffold.spec @@ -0,0 +1,210 @@ +%global _empty_manifest_terminate_build 0 +Name: python-PyScaffold +Version: 4.4 +Release: 1 +Summary: Template tool for putting up the scaffold of a Python project +License: MIT +URL: https://github.com/pyscaffold/pyscaffold/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/31/79/e920afe747025dca97076393fc53c499f4e833b2e2bbb14293363596f101/PyScaffold-4.4.tar.gz +BuildArch: noarch + +Requires: python3-platformdirs +Requires: python3-configupdater +Requires: python3-setuptools +Requires: python3-setuptools-scm +Requires: python3-tomlkit +Requires: python3-packaging +Requires: python3-importlib-metadata +Requires: python3-colorama +Requires: python3-pyscaffoldext-markdown +Requires: python3-pyscaffoldext-custom-extension +Requires: python3-pyscaffoldext-dsproject +Requires: python3-pyscaffoldext-django +Requires: python3-pyscaffoldext-cookiecutter +Requires: python3-pyscaffoldext-travis +Requires: python3-virtualenv +Requires: python3-pre-commit +Requires: python3-pyscaffoldext-dsproject +Requires: python3-pyscaffoldext-markdown +Requires: python3-setuptools +Requires: python3-setuptools-scm[toml] +Requires: python3-wheel +Requires: python3-build +Requires: python3-tomlkit +Requires: python3-certifi +Requires: python3-tox +Requires: python3-pre-commit +Requires: python3-sphinx +Requires: python3-flake8 +Requires: python3-virtualenv +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-pytest-shutil +Requires: python3-pytest-virtualenv +Requires: python3-pytest-fixture-config +Requires: python3-pytest-xdist +Requires: python3-pytest-randomly + +%description +Just pick your favourite installation method:: + ## Good old pip + # (make sure it is up-to-date: pip install -U pip setuptools) + pip install pyscaffold + ## Conda for the datascience fans + conda install -c conda-forge pyscaffold + ## Or even pipx for the virtualenv aficionados + pipx install pyscaffold +If you want to install all PyScaffold's *extensions* you can even:: + pip install pyscaffold[all] +(More details of each method are available in the `installation docs`_) +After the installation, a new ``putup`` command will be available and you can just type:: + putup my_project +This will create a new folder called ``my_project`` containing a perfect *project +template* with everything you need for some serious coding. +After ``cd``-ing into your new project and creating (or activating) an `isolated +development environment`_ (with virtualenv_, conda_ or your preferred tool), +you can do the usual `editable install`_:: + pip install -e . +… all set and ready to go! +We also recommend using tox_, so you can take advantage of the automation tasks +we have setup for you, like:: + tox -e build # to build your package distribution + tox -e publish # to test your project uploads correctly in test.pypi.org + tox -e publish -- --repository pypi # to release your package to PyPI + tox -av # to list all the tasks available +The following figure demonstrates the usage of ``putup`` with the new experimental +interactive mode for setting up a simple project. +It uses the `--cirrus` flag to add CI support (via `Cirrus CI`_), and +tox_ to run automated project tasks like building a package file for +distribution (or publishing). +Type ``putup -h`` to learn about more configuration options. PyScaffold assumes +that you have Git_ installed and set up on your PC, +meaning at least your name and email are configured. +The project template provides you with following features: + +%package -n python3-PyScaffold +Summary: Template tool for putting up the scaffold of a Python project +Provides: python-PyScaffold +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-PyScaffold +Just pick your favourite installation method:: + ## Good old pip + # (make sure it is up-to-date: pip install -U pip setuptools) + pip install pyscaffold + ## Conda for the datascience fans + conda install -c conda-forge pyscaffold + ## Or even pipx for the virtualenv aficionados + pipx install pyscaffold +If you want to install all PyScaffold's *extensions* you can even:: + pip install pyscaffold[all] +(More details of each method are available in the `installation docs`_) +After the installation, a new ``putup`` command will be available and you can just type:: + putup my_project +This will create a new folder called ``my_project`` containing a perfect *project +template* with everything you need for some serious coding. +After ``cd``-ing into your new project and creating (or activating) an `isolated +development environment`_ (with virtualenv_, conda_ or your preferred tool), +you can do the usual `editable install`_:: + pip install -e . +… all set and ready to go! +We also recommend using tox_, so you can take advantage of the automation tasks +we have setup for you, like:: + tox -e build # to build your package distribution + tox -e publish # to test your project uploads correctly in test.pypi.org + tox -e publish -- --repository pypi # to release your package to PyPI + tox -av # to list all the tasks available +The following figure demonstrates the usage of ``putup`` with the new experimental +interactive mode for setting up a simple project. +It uses the `--cirrus` flag to add CI support (via `Cirrus CI`_), and +tox_ to run automated project tasks like building a package file for +distribution (or publishing). +Type ``putup -h`` to learn about more configuration options. PyScaffold assumes +that you have Git_ installed and set up on your PC, +meaning at least your name and email are configured. +The project template provides you with following features: + +%package help +Summary: Development documents and examples for PyScaffold +Provides: python3-PyScaffold-doc +%description help +Just pick your favourite installation method:: + ## Good old pip + # (make sure it is up-to-date: pip install -U pip setuptools) + pip install pyscaffold + ## Conda for the datascience fans + conda install -c conda-forge pyscaffold + ## Or even pipx for the virtualenv aficionados + pipx install pyscaffold +If you want to install all PyScaffold's *extensions* you can even:: + pip install pyscaffold[all] +(More details of each method are available in the `installation docs`_) +After the installation, a new ``putup`` command will be available and you can just type:: + putup my_project +This will create a new folder called ``my_project`` containing a perfect *project +template* with everything you need for some serious coding. +After ``cd``-ing into your new project and creating (or activating) an `isolated +development environment`_ (with virtualenv_, conda_ or your preferred tool), +you can do the usual `editable install`_:: + pip install -e . +… all set and ready to go! +We also recommend using tox_, so you can take advantage of the automation tasks +we have setup for you, like:: + tox -e build # to build your package distribution + tox -e publish # to test your project uploads correctly in test.pypi.org + tox -e publish -- --repository pypi # to release your package to PyPI + tox -av # to list all the tasks available +The following figure demonstrates the usage of ``putup`` with the new experimental +interactive mode for setting up a simple project. +It uses the `--cirrus` flag to add CI support (via `Cirrus CI`_), and +tox_ to run automated project tasks like building a package file for +distribution (or publishing). +Type ``putup -h`` to learn about more configuration options. PyScaffold assumes +that you have Git_ installed and set up on your PC, +meaning at least your name and email are configured. +The project template provides you with following features: + +%prep +%autosetup -n PyScaffold-4.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-PyScaffold -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 4.4-1 +- Package Spec generated @@ -0,0 +1 @@ +1b08492627598a7a2900e0e6ba0a775e PyScaffold-4.4.tar.gz |