summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:22:26 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:22:26 +0000
commit60d61e6627b74af3940597a08dc92ecbf06950cd (patch)
treebde344216dc542f1d5535038ca13ad145ebbdff7
parentb42b1030de8f211e519c5259487ab5a8586ad40c (diff)
automatic import of python-djangoldp-energiepartagee
-rw-r--r--.gitignore1
-rw-r--r--python-djangoldp-energiepartagee.spec231
-rw-r--r--sources1
3 files changed, 233 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1dec707 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/djangoldp_energiepartagee-0.0.61.tar.gz
diff --git a/python-djangoldp-energiepartagee.spec b/python-djangoldp-energiepartagee.spec
new file mode 100644
index 0000000..399ac77
--- /dev/null
+++ b/python-djangoldp-energiepartagee.spec
@@ -0,0 +1,231 @@
+%global _empty_manifest_terminate_build 0
+Name: python-djangoldp-energiepartagee
+Version: 0.0.61
+Release: 1
+Summary: Custom DjangoLDP based package for Energie Partagee
+License: MIT
+URL: https://pypi.org/project/djangoldp-energiepartagee/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6d/95/c40839dd877746716b0c9430d3b227757cc6d3ec6ed8732f3d7678a91709/djangoldp_energiepartagee-0.0.61.tar.gz
+BuildArch: noarch
+
+Requires: python3-djangoldp
+Requires: python3-reportlab
+Requires: python3-xhtml2pdf
+
+%description
+# djangoldp_energiepartagee
+
+## Installation
+
+How to install the project locally
+
+1- create virtual environement
+`py -m venv venv`
+
+2- activate venv
+`venv\Scripts\activate.bat`
+
+3- update pip & wheel
+`py -m pip install -U pip wheel`
+
+4- install sib-manager
+`py -m pip install -U sib-manager`
+
+5- launch the startproject command
+`sib startproject energiepartagee_server`
+
+6- install server
+ => go into energiepartagee_server folder
+`sib install server`
+
+7- create superuser
+`py manage.py createsuperuser`
+
+8- add virtual link with the djangoldp_energiepartagee package :
+`mklink /D [LINK] [TARGET]`
+`mklink /D [...]\energiepartage_server\djangoldp_energiepartagee [...]\djangoldp_energiepartagee\djangoldp_energiepartagee`
+=><!> [LINK] : Link to the "folder" where the target will be found
+
+9- add the package in the package.yml file
+
+10- run migration and migrate
+`py manage.py makemigrations djangoldp_energiepartagee` (for the first time, then `py manage.py makemigrations` will be enough in case ogf modifications of the package)
+`py manage.py migrate`
+
+11- runserver
+`py manage.py runserver`
+
+## Custom Commands
+
+With `djangoldp_energiepartagee` installed as an app, you will be able to run:
+
+```
+python manage.py create_annual_contributions
+```
+
+This command calculates the contribution for every actor in the database and creates a Contribution for each. The amount is calculated following an algorithm which can be found in the `Actor` model (`Actor.get_next_contribution_amount`). A contribution will not be added for any actors which have already paid a contribution in the same year. Use the `-F` option to override this, creating one contribution for every actor in the databae.
+
+
+
+%package -n python3-djangoldp-energiepartagee
+Summary: Custom DjangoLDP based package for Energie Partagee
+Provides: python-djangoldp-energiepartagee
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-djangoldp-energiepartagee
+# djangoldp_energiepartagee
+
+## Installation
+
+How to install the project locally
+
+1- create virtual environement
+`py -m venv venv`
+
+2- activate venv
+`venv\Scripts\activate.bat`
+
+3- update pip & wheel
+`py -m pip install -U pip wheel`
+
+4- install sib-manager
+`py -m pip install -U sib-manager`
+
+5- launch the startproject command
+`sib startproject energiepartagee_server`
+
+6- install server
+ => go into energiepartagee_server folder
+`sib install server`
+
+7- create superuser
+`py manage.py createsuperuser`
+
+8- add virtual link with the djangoldp_energiepartagee package :
+`mklink /D [LINK] [TARGET]`
+`mklink /D [...]\energiepartage_server\djangoldp_energiepartagee [...]\djangoldp_energiepartagee\djangoldp_energiepartagee`
+=><!> [LINK] : Link to the "folder" where the target will be found
+
+9- add the package in the package.yml file
+
+10- run migration and migrate
+`py manage.py makemigrations djangoldp_energiepartagee` (for the first time, then `py manage.py makemigrations` will be enough in case ogf modifications of the package)
+`py manage.py migrate`
+
+11- runserver
+`py manage.py runserver`
+
+## Custom Commands
+
+With `djangoldp_energiepartagee` installed as an app, you will be able to run:
+
+```
+python manage.py create_annual_contributions
+```
+
+This command calculates the contribution for every actor in the database and creates a Contribution for each. The amount is calculated following an algorithm which can be found in the `Actor` model (`Actor.get_next_contribution_amount`). A contribution will not be added for any actors which have already paid a contribution in the same year. Use the `-F` option to override this, creating one contribution for every actor in the databae.
+
+
+
+%package help
+Summary: Development documents and examples for djangoldp-energiepartagee
+Provides: python3-djangoldp-energiepartagee-doc
+%description help
+# djangoldp_energiepartagee
+
+## Installation
+
+How to install the project locally
+
+1- create virtual environement
+`py -m venv venv`
+
+2- activate venv
+`venv\Scripts\activate.bat`
+
+3- update pip & wheel
+`py -m pip install -U pip wheel`
+
+4- install sib-manager
+`py -m pip install -U sib-manager`
+
+5- launch the startproject command
+`sib startproject energiepartagee_server`
+
+6- install server
+ => go into energiepartagee_server folder
+`sib install server`
+
+7- create superuser
+`py manage.py createsuperuser`
+
+8- add virtual link with the djangoldp_energiepartagee package :
+`mklink /D [LINK] [TARGET]`
+`mklink /D [...]\energiepartage_server\djangoldp_energiepartagee [...]\djangoldp_energiepartagee\djangoldp_energiepartagee`
+=><!> [LINK] : Link to the "folder" where the target will be found
+
+9- add the package in the package.yml file
+
+10- run migration and migrate
+`py manage.py makemigrations djangoldp_energiepartagee` (for the first time, then `py manage.py makemigrations` will be enough in case ogf modifications of the package)
+`py manage.py migrate`
+
+11- runserver
+`py manage.py runserver`
+
+## Custom Commands
+
+With `djangoldp_energiepartagee` installed as an app, you will be able to run:
+
+```
+python manage.py create_annual_contributions
+```
+
+This command calculates the contribution for every actor in the database and creates a Contribution for each. The amount is calculated following an algorithm which can be found in the `Actor` model (`Actor.get_next_contribution_amount`). A contribution will not be added for any actors which have already paid a contribution in the same year. Use the `-F` option to override this, creating one contribution for every actor in the databae.
+
+
+
+%prep
+%autosetup -n djangoldp-energiepartagee-0.0.61
+
+%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-djangoldp-energiepartagee -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.61-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..95c10d8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d3b21d18db0eec72c2002a623ea9873c djangoldp_energiepartagee-0.0.61.tar.gz