%global _empty_manifest_terminate_build 0 Name: python-huscy.projects Version: 1.6.0 Release: 1 Summary: Managing projects in a research context. License: AGPLv3+ URL: https://bitbucket.org/huscy/projects/ Source0: https://mirrors.aliyun.com/pypi/web/packages/c4/b1/02d9ef7820c40bb7b971b915dddfde3a7bfda918db60800a41f59c2f553d/huscy.projects-1.6.0.tar.gz BuildArch: noarch Requires: python3-Django Requires: python3-django-guardian Requires: python3-django-reversion Requires: python3-djangorestframework Requires: python3-drf-nested-routers Requires: python3-psycopg2-binary Requires: python3-tox Requires: python3-watchdog %description # huscy.projects ![PyPi Version](https://img.shields.io/pypi/v/huscy-projects.svg) ![PyPi Status](https://img.shields.io/pypi/status/huscy-projects) ![PyPI Downloads](https://img.shields.io/pypi/dm/huscy-projects) ![PyPI License](https://img.shields.io/pypi/l/huscy-projects?color=yellow) ![Python Versions](https://img.shields.io/pypi/pyversions/huscy-projects.svg) ![Django Versions](https://img.shields.io/pypi/djversions/huscy-projects) [![Coverage Status](https://coveralls.io/repos/bitbucket/huscy/projects/badge.svg?branch=master)](https://coveralls.io/bitbucket/huscy/projects?branch=master) ## Requirements - Python 3.8+ - A supported version of Django Tox tests on Django versions 3.2, 4.1 and 4.2. ## Installation To install `husy.projects` simply run: pip install huscy.projects Add `huscy.projects` and further required apps to `INSTALLED_APPS` in your settings module: ```python INSTALLED_APPS = ( ... 'guardian', 'rest_framework', 'huscy.projects', ) ``` Add Django Guardian ObjectPermissionBackend to AUTHENTICATION_BACKENDS ```python AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', 'guardian.backends.ObjectPermissionBackend', ) ``` Hook the urls from `huscy.projects` into your urls.py: ```python urlpatterns = [ ... path('/api/', include('huscy.projects.urls')), ] ``` Create `huscy.projects` database tables by running: python manage.py migrate ## Development Install PostgreSQL and create a database user called `huscy` and a database called `huscy`. sudo -u postgres createdb huscy sudo -u postgres createuser -d huscy sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE huscy TO huscy;" sudo -u postgres psql -c "ALTER USER huscy WITH PASSWORD '123';" Checking out the repository start your virtual environment (if necessary). Install all development and test dependencies: make install Create Database tables: make migrate Run tests to see if everything works fine: make test %package -n python3-huscy.projects Summary: Managing projects in a research context. Provides: python-huscy.projects BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-huscy.projects # huscy.projects ![PyPi Version](https://img.shields.io/pypi/v/huscy-projects.svg) ![PyPi Status](https://img.shields.io/pypi/status/huscy-projects) ![PyPI Downloads](https://img.shields.io/pypi/dm/huscy-projects) ![PyPI License](https://img.shields.io/pypi/l/huscy-projects?color=yellow) ![Python Versions](https://img.shields.io/pypi/pyversions/huscy-projects.svg) ![Django Versions](https://img.shields.io/pypi/djversions/huscy-projects) [![Coverage Status](https://coveralls.io/repos/bitbucket/huscy/projects/badge.svg?branch=master)](https://coveralls.io/bitbucket/huscy/projects?branch=master) ## Requirements - Python 3.8+ - A supported version of Django Tox tests on Django versions 3.2, 4.1 and 4.2. ## Installation To install `husy.projects` simply run: pip install huscy.projects Add `huscy.projects` and further required apps to `INSTALLED_APPS` in your settings module: ```python INSTALLED_APPS = ( ... 'guardian', 'rest_framework', 'huscy.projects', ) ``` Add Django Guardian ObjectPermissionBackend to AUTHENTICATION_BACKENDS ```python AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', 'guardian.backends.ObjectPermissionBackend', ) ``` Hook the urls from `huscy.projects` into your urls.py: ```python urlpatterns = [ ... path('/api/', include('huscy.projects.urls')), ] ``` Create `huscy.projects` database tables by running: python manage.py migrate ## Development Install PostgreSQL and create a database user called `huscy` and a database called `huscy`. sudo -u postgres createdb huscy sudo -u postgres createuser -d huscy sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE huscy TO huscy;" sudo -u postgres psql -c "ALTER USER huscy WITH PASSWORD '123';" Checking out the repository start your virtual environment (if necessary). Install all development and test dependencies: make install Create Database tables: make migrate Run tests to see if everything works fine: make test %package help Summary: Development documents and examples for huscy.projects Provides: python3-huscy.projects-doc %description help # huscy.projects ![PyPi Version](https://img.shields.io/pypi/v/huscy-projects.svg) ![PyPi Status](https://img.shields.io/pypi/status/huscy-projects) ![PyPI Downloads](https://img.shields.io/pypi/dm/huscy-projects) ![PyPI License](https://img.shields.io/pypi/l/huscy-projects?color=yellow) ![Python Versions](https://img.shields.io/pypi/pyversions/huscy-projects.svg) ![Django Versions](https://img.shields.io/pypi/djversions/huscy-projects) [![Coverage Status](https://coveralls.io/repos/bitbucket/huscy/projects/badge.svg?branch=master)](https://coveralls.io/bitbucket/huscy/projects?branch=master) ## Requirements - Python 3.8+ - A supported version of Django Tox tests on Django versions 3.2, 4.1 and 4.2. ## Installation To install `husy.projects` simply run: pip install huscy.projects Add `huscy.projects` and further required apps to `INSTALLED_APPS` in your settings module: ```python INSTALLED_APPS = ( ... 'guardian', 'rest_framework', 'huscy.projects', ) ``` Add Django Guardian ObjectPermissionBackend to AUTHENTICATION_BACKENDS ```python AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', 'guardian.backends.ObjectPermissionBackend', ) ``` Hook the urls from `huscy.projects` into your urls.py: ```python urlpatterns = [ ... path('/api/', include('huscy.projects.urls')), ] ``` Create `huscy.projects` database tables by running: python manage.py migrate ## Development Install PostgreSQL and create a database user called `huscy` and a database called `huscy`. sudo -u postgres createdb huscy sudo -u postgres createuser -d huscy sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE huscy TO huscy;" sudo -u postgres psql -c "ALTER USER huscy WITH PASSWORD '123';" Checking out the repository start your virtual environment (if necessary). Install all development and test dependencies: make install Create Database tables: make migrate Run tests to see if everything works fine: make test %prep %autosetup -n huscy.projects-1.6.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-huscy.projects -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Jun 08 2023 Python_Bot - 1.6.0-1 - Package Spec generated