diff options
Diffstat (limited to 'python-testtep37.spec')
| -rw-r--r-- | python-testtep37.spec | 246 |
1 files changed, 246 insertions, 0 deletions
diff --git a/python-testtep37.spec b/python-testtep37.spec new file mode 100644 index 0000000..bac26aa --- /dev/null +++ b/python-testtep37.spec @@ -0,0 +1,246 @@ +%global _empty_manifest_terminate_build 0 +Name: python-TestTEp37 +Version: 2021.11.dev0 +Release: 1 +Summary: Public library of all Token Engineering tools +License: MIT License +URL: http://github.com/longtailfinancial/ltf_library +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c7/7a/b2ca6f0578ad10b654eaaeac11024aca6330bbc0659d9dc94020a5fa77e0/TestTEp37-2021.11.dev0.tar.gz +BuildArch: noarch + +Requires: python3-pandas +Requires: python3-numpy +Requires: python3-plotly + +%description +## ltf library +This library is supposed to be a public library of all Token Engineering tools + +## Installation +```python +pip install ltf +``` + +## List of all packages +```python +import ltf +help(ltf) +``` + +## A few examples +```python +from ltf.bondingcurves import Sigmoid +# you can run basic version with default data +sbc = Sigmoid() +sbc.fig_builder().show() +``` + +> `output:` + + +*** + +> Note: You may need to use your own data + +``` +sbc = Sigmoid( + csv_path='INITIAL_VALUES.csv', + current_supply=16000000, + zoom=1 + ) +``` + + +> Note2: The format of the csv file should be as follows + +-|l|s|m|k|steps +-|-|-|-|-|- +0|l1|s1|m1|k1|steps +1|l2|s2|m2|k2|steps +2|l3|s3|m3|k3|steps +3|l4|s4|m4|k4|steps + +> Example: + +-|l|s|m|k|steps +-|-|-|-|-|- +0|20.8| 17 |2.10E+07 |57300 |1000 +1|2 |5 |5.00E+04 |5 |1000 +2|2 |5 |5.00E+05 |50 |1000 +3|6 |9 |5.00E+06 |2.00E+03 |1000 + + + + +%package -n python3-TestTEp37 +Summary: Public library of all Token Engineering tools +Provides: python-TestTEp37 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-TestTEp37 +## ltf library +This library is supposed to be a public library of all Token Engineering tools + +## Installation +```python +pip install ltf +``` + +## List of all packages +```python +import ltf +help(ltf) +``` + +## A few examples +```python +from ltf.bondingcurves import Sigmoid +# you can run basic version with default data +sbc = Sigmoid() +sbc.fig_builder().show() +``` + +> `output:` + + +*** + +> Note: You may need to use your own data + +``` +sbc = Sigmoid( + csv_path='INITIAL_VALUES.csv', + current_supply=16000000, + zoom=1 + ) +``` + + +> Note2: The format of the csv file should be as follows + +-|l|s|m|k|steps +-|-|-|-|-|- +0|l1|s1|m1|k1|steps +1|l2|s2|m2|k2|steps +2|l3|s3|m3|k3|steps +3|l4|s4|m4|k4|steps + +> Example: + +-|l|s|m|k|steps +-|-|-|-|-|- +0|20.8| 17 |2.10E+07 |57300 |1000 +1|2 |5 |5.00E+04 |5 |1000 +2|2 |5 |5.00E+05 |50 |1000 +3|6 |9 |5.00E+06 |2.00E+03 |1000 + + + + +%package help +Summary: Development documents and examples for TestTEp37 +Provides: python3-TestTEp37-doc +%description help +## ltf library +This library is supposed to be a public library of all Token Engineering tools + +## Installation +```python +pip install ltf +``` + +## List of all packages +```python +import ltf +help(ltf) +``` + +## A few examples +```python +from ltf.bondingcurves import Sigmoid +# you can run basic version with default data +sbc = Sigmoid() +sbc.fig_builder().show() +``` + +> `output:` + + +*** + +> Note: You may need to use your own data + +``` +sbc = Sigmoid( + csv_path='INITIAL_VALUES.csv', + current_supply=16000000, + zoom=1 + ) +``` + + +> Note2: The format of the csv file should be as follows + +-|l|s|m|k|steps +-|-|-|-|-|- +0|l1|s1|m1|k1|steps +1|l2|s2|m2|k2|steps +2|l3|s3|m3|k3|steps +3|l4|s4|m4|k4|steps + +> Example: + +-|l|s|m|k|steps +-|-|-|-|-|- +0|20.8| 17 |2.10E+07 |57300 |1000 +1|2 |5 |5.00E+04 |5 |1000 +2|2 |5 |5.00E+05 |50 |1000 +3|6 |9 |5.00E+06 |2.00E+03 |1000 + + + + +%prep +%autosetup -n TestTEp37-2021.11.dev0 + +%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-TestTEp37 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 2021.11.dev0-1 +- Package Spec generated |
