From 873257380912b88e9f5089bcbe6ec12e5ecef795 Mon Sep 17 00:00:00 2001 From: Raul Infante-Sainz Date: Tue, 23 Apr 2019 20:47:27 +0100 Subject: Python package SymPy added into the template With this commit, we add `sympy' Python package into the template. This is a package to do symbolic mathematics. The motivation is that it is a prerequisite of `sip_tpv' Python package, which is useful to convert SIP distorsion coefficients into PV coefficients (in the context of astronomical images). However, the availability of `sympy' in the template will be useful for anyone interested in this package. --- .file-metadata | Bin 6631 -> 6628 bytes reproduce/software/bibtex/sympy.tex | 23 ++++++++++++++++++++++ reproduce/software/config/installation/TARGETS.mk | 2 +- reproduce/software/make/python.mk | 10 +++++----- 4 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 reproduce/software/bibtex/sympy.tex diff --git a/.file-metadata b/.file-metadata index 70f3520..7398354 100644 Binary files a/.file-metadata and b/.file-metadata differ diff --git a/reproduce/software/bibtex/sympy.tex b/reproduce/software/bibtex/sympy.tex new file mode 100644 index 0000000..07aa0e7 --- /dev/null +++ b/reproduce/software/bibtex/sympy.tex @@ -0,0 +1,23 @@ +%% Copyright (C) 2019 Raul Infante-Sainz +%% +%% Copying and distribution of this file, with or without modification, +%% are permitted in any medium without royalty provided the copyright +%% notice and this notice are preserved. This file is offered as-is, +%% without any warranty. + +@article{sympy, + title = {SymPy: symbolic computing in Python}, + author = {Meurer, Aaron and Smith, Christopher P. and Paprocki, Mateusz and \v{C}ert\'{i}k, Ond\v{r}ej and Kirpichev, Sergey B. and Rocklin, Matthew and Kumar, AMiT and Ivanov, Sergiu and Moore, Jason K. and Singh, Sartaj and Rathnayake, Thilina and Vig, Sean and Granger, Brian E. and Muller, Richard P. and Bonazzi, Francesco and Gupta, Harsh and Vats, Shivam and Johansson, Fredrik and Pedregosa, Fabian and Curry, Matthew J. and Terrel, Andy R. and Rou\v{c}ka, \v{S}t\v{e}p\'{a}n and Saboo, Ashutosh and Fernando, Isuru and Kulal, Sumith and Cimrman, Robert and Scopatz, Anthony}, + year = 2017, + month = jan, + keywords = {Python, Computer algebra system, Symbolics}, + abstract = { + SymPy is an open source computer algebra system written in pure Python. It is built with a focus on extensibility and ease of use, through both interactive and programmatic applications. These characteristics have led SymPy to become a popular symbolic library for the scientific Python ecosystem. This paper presents the architecture of SymPy, a description of its features, and a discussion of select submodules. The supplementary material provide additional examples and further outline details of the architecture and features of SymPy. + }, + volume = 3, + pages = {103}, + journal = {PeerJ CompSci}, + issn = {2376-5992}, + url = {https://doi.org/10.7717/peerj-cs.103}, + doi = {10.7717/peerj-cs.103} +} diff --git a/reproduce/software/config/installation/TARGETS.mk b/reproduce/software/config/installation/TARGETS.mk index 5aee765..f1a27a2 100644 --- a/reproduce/software/config/installation/TARGETS.mk +++ b/reproduce/software/config/installation/TARGETS.mk @@ -38,4 +38,4 @@ top-level-programs = gnuastro # Python libraries/modules. -top-level-python = astropy mpmath +top-level-python = astropy sympy diff --git a/reproduce/software/make/python.mk b/reproduce/software/make/python.mk index bdf5fe5..7a818cd 100644 --- a/reproduce/software/make/python.mk +++ b/reproduce/software/make/python.mk @@ -504,12 +504,12 @@ $(ipydir)/soupsieve: $(tdir)/soupsieve-$(soupsieve-version).tar.gz \ $(call pybuild, tar xf, $<, soupsieve-$(soupsieve-version), ,\ SoupSieve $(soupsieve-version)) -$(ipydir)/sympy: $(tdir)/sympy-$(sympy-version).tar.gz \ - $(ipydir)/mpmath \ +$(ipydir)/sympy: $(tdir)/sympy-$(sympy-version).tar.gz \ + $(ipydir)/mpmath \ $(ipydir)/setuptools - exit 1 - $(call pybuild, tar xf, $<, sympy-$(sympy-version), ,\ - SymPy $(sympy-version)) + $(call pybuild, tar xf, $<, sympy-$(sympy-version), ,) \ + && cp $(dtexdir)/sympy.tex $(ictdir)/ \ + && echo "SymPy $(sympy-version) \citep{sympy}" > $@ $(ipydir)/urllib3: $(tdir)/urllib3-$(urllib3-version).tar.gz \ $(ipydir)/setuptools -- cgit v1.2.1