summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-17 04:15:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-17 04:15:56 +0000
commit813ce5c3ca1a4dd06d89cc2775a9f4362e3cf7a8 (patch)
treed5c97dddd46e8acd50b8972c23967150fa212984
parentd5827774761c95c2d48c425f2033d55895eb0937 (diff)
automatic import of python-huscy-projects
-rw-r--r--.gitignore1
-rw-r--r--python-huscy-projects.spec344
-rw-r--r--sources1
3 files changed, 346 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..448ec4b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/huscy.projects-1.6.0.tar.gz
diff --git a/python-huscy-projects.spec b/python-huscy-projects.spec
new file mode 100644
index 0000000..cc31830
--- /dev/null
+++ b/python-huscy-projects.spec
@@ -0,0 +1,344 @@
+%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.nju.edu.cn/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
+* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.6.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1383809
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0a647fd628390ffa69df568f5a938134 huscy.projects-1.6.0.tar.gz