Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from clinssen/v2.3.1-docs
Cleanup and Docker image (release version 2.3.2)
- Loading branch information
Showing
15 changed files
with
15,566 additions
and
15,610 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,4 @@ include MANIFEST.in | |
include MANIFEST | ||
include COPYING | ||
|
||
include testing/src/sf/sf.i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Checklist for releasing a new version on PyPI | ||
--------------------------------------------- | ||
|
||
- Adapt the version numbers in ``pygsl/_version.py`` and ``setup.cfg`` | ||
|
||
- Build the wheels | ||
|
||
.. code-block:: sh | ||
python setup.py sdist | ||
- Do a test upload | ||
|
||
.. code-block:: sh | ||
twine upload --repository testpypi dist/* | ||
- Try to install it from a docker image | ||
|
||
.. code-block:: sh | ||
python3 -m pip install --index-url https://test.pypi.org/simple/ pygsl | ||
- Clone the repository and run the tests via pytest | ||
|
||
- Happy? Push to non-testing repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM ubuntu:focal | ||
LABEL maintainer="https://github.com/pygsl/pygsl" | ||
|
||
ENV TERM=xterm \ | ||
TZ=Europe/Berlin \ | ||
DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
build-essential libtool automake autotools-dev \ | ||
nano \ | ||
swig \ | ||
libgsl-dev \ | ||
python3-dev \ | ||
python3-ipython \ | ||
python3-matplotlib \ | ||
python3-numpy \ | ||
python3-pip \ | ||
python3-scipy \ | ||
python3-setuptools \ | ||
cmake wget git curl && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \ | ||
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10 | ||
|
||
RUN python3 -m pip install --upgrade pip setuptools wheel pytest | ||
#RUN python3 -m pip install --index-url https://test.pypi.org/simple/ pygsl | ||
RUN python3 -m pip install pygsl | ||
|
||
# add user 'user' | ||
RUN adduser --disabled-login --gecos 'USER' --home /home/user user && \ | ||
chown user:user /home/user | ||
|
||
# copy entrypoint to user home folder | ||
COPY entrypoint.sh /home/user | ||
RUN chown user:user /home/user/entrypoint.sh && \ | ||
chmod +x /home/user/entrypoint.sh | ||
|
||
WORKDIR /home/user | ||
USER user | ||
ENTRYPOINT ["/home/user/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
/bin/bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = "2.3.1" | ||
version = "2.3.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
%module sf | ||
|
||
#include <pygsl/pygsl_features_config.h> | ||
%ignore gsl_sf_angle_restrict_pos_e; // use a double * for input and output. not properly recognized. | ||
// use gsl_sf_angle_restricted_pos_err_e complies to the usual interface | ||
%ignore gsl_sf_result_smash_e; // the only one to use a const pointer as input. Not recognized by the tool. | ||
|
||
|
||
%include <gsl/gsl_sf_result.h> | ||
|
||
//Deprecated functions | ||
%ignore gsl_sf_coupling_6j_INCORRECT_e; | ||
%ignore gsl_sf_coupling_6j_INCORRECT; | ||
|
||
// Not a direct map | ||
%ignore gsl_sf_polar_to_rect; | ||
%ignore gsl_sf_rect_to_polar; | ||
|
||
// Functions returning arrays are not mapped currently. | ||
|
||
%ignore gsl_sf_gegenpoly_array; | ||
|
||
|
||
%include <gsl/gsl_sf_airy.h> | ||
|
||
%ignore gsl_sf_bessel_sequence_Jnu_e; | ||
%ignore gsl_sf_bessel_Jn_array; | ||
%ignore gsl_sf_bessel_Yn_array; | ||
%ignore gsl_sf_bessel_In_array; | ||
%ignore gsl_sf_bessel_In_scaled_array; | ||
%ignore gsl_sf_bessel_Kn_array; | ||
%ignore gsl_sf_bessel_Kn_scaled_array; | ||
%ignore gsl_sf_bessel_jl_array; | ||
%ignore gsl_sf_bessel_jl_steed_array; | ||
%ignore gsl_sf_bessel_yl_array; | ||
%ignore gsl_sf_bessel_il_scaled_array; | ||
%ignore gsl_sf_bessel_kl_scaled_array; | ||
%include <gsl/gsl_sf_bessel.h> | ||
%include <gsl/gsl_sf_clausen.h> | ||
|
||
%ignore gsl_sf_coulomb_wave_F_array; | ||
%ignore gsl_sf_coulomb_wave_FG_array; | ||
%ignore gsl_sf_coulomb_wave_FGp_array; | ||
%ignore gsl_sf_coulomb_wave_sphF_array; | ||
%ignore gsl_sf_coulomb_CL_array; | ||
%include <gsl/gsl_sf_coulomb.h> | ||
|
||
%include <gsl/gsl_sf_coupling.h> | ||
%include <gsl/gsl_sf_dawson.h> | ||
%include <gsl/gsl_sf_debye.h> | ||
%include <gsl/gsl_sf_dilog.h> | ||
%include <gsl/gsl_sf_elementary.h> | ||
%include <gsl/gsl_sf_ellint.h> | ||
%include <gsl/gsl_sf_elljac.h> | ||
%include <gsl/gsl_sf_erf.h> | ||
%include <gsl/gsl_sf_exp.h> | ||
%include <gsl/gsl_sf_expint.h> | ||
%include <gsl/gsl_sf_fermi_dirac.h> | ||
%include <gsl/gsl_sf_gamma.h> | ||
%include <gsl/gsl_sf_gegenbauer.h> | ||
%include <gsl/gsl_sf_hyperg.h> | ||
%include <gsl/gsl_sf_laguerre.h> | ||
%include <gsl/gsl_sf_lambert.h> | ||
|
||
|
||
%ignore gsl_sf_legendre_Pl_array; | ||
%ignore gsl_sf_legendre_Pl_deriv_array; | ||
%ignore gsl_sf_legendre_Plm_array; | ||
%ignore gsl_sf_legendre_Plm_deriv_array; | ||
%ignore gsl_sf_legendre_sphPlm_array; | ||
%ignore gsl_sf_legendre_sphPlm_deriv_array; | ||
%ignore gsl_sf_legendre_array_size; | ||
%ignore gsl_sf_legendre_H3d_array; | ||
%ignore gsl_sf_legendre_array; | ||
%ignore gsl_sf_legendre_array_e; | ||
%ignore gsl_sf_legendre_deriv_array_e; | ||
%ignore gsl_sf_legendre_deriv_array; | ||
%ignore gsl_sf_legendre_deriv_alt_array; | ||
%ignore gsl_sf_legendre_deriv_alt_array_e; | ||
%ignore gsl_sf_legendre_deriv2_array; | ||
%ignore gsl_sf_legendre_deriv2_array_e; | ||
%ignore gsl_sf_legendre_deriv2_alt_array; | ||
%ignore gsl_sf_legendre_deriv2_alt_array_e; | ||
%ignore gsl_sf_legendre_array_n; | ||
%ignore gsl_sf_legendre_array_index; | ||
%ignore gsl_sf_legendre_nlm; | ||
%include <gsl/gsl_sf_legendre.h> | ||
%include <gsl/gsl_sf_log.h> | ||
|
||
/* */ | ||
#ifdef _PYGSL_GSL_HAS_SF_MATHIEU | ||
%ignore gsl_sf_mathieu_ce_array; | ||
%ignore gsl_sf_mathieu_se_array; | ||
%ignore gsl_sf_mathieu_Mc_array; | ||
%ignore gsl_sf_mathieu_Ms_array; | ||
%ignore gsl_sf_mathieu_a_array; | ||
%ignore gsl_sf_mathieu_b_array; | ||
%ignore gsl_sf_mathieu_workspace; | ||
%ignore gsl_sf_mathieu_free; | ||
%ignore gsl_sf_mathieu_alloc; | ||
%ignore gsl_sf_mathieu_a_coeff; | ||
%ignore gsl_sf_mathieu_b_coeff; | ||
|
||
%include <gsl/gsl_sf_mathieu.h> | ||
#endif | ||
|
||
/* */ | ||
%include <gsl/gsl_sf_pow_int.h> | ||
%include <gsl/gsl_sf_psi.h> | ||
%include <gsl/gsl_sf_synchrotron.h> | ||
%include <gsl/gsl_sf_transport.h> | ||
%include <gsl/gsl_sf_trig.h> | ||
%include <gsl/gsl_sf_zeta.h> | ||
|
||
|
||
|
||
// Complex Functions are wrapped manually. | ||
//%ignore gsl_sf_complex_dilog_e; // polar to rect | ||
//%ignore gsl_sf_lngamma_complex_e; // rect to polar | ||
//%ignore gsl_sf_complex_log_e; // rect to polar | ||
//%ignore gsl_sf_complex_sin_e; // rect to rect | ||
//%ignore gsl_sf_complex_cos_e; // rect to rect | ||
//%ignore gsl_sf_complex_logsin_e; | ||
|
||
|
||
|
||
#define INLINE_DECL | ||
%include <gsl/gsl_complex_math.h> | ||
//%ignore gsl_complex_sqrt_real; | ||
//%ignore gsl_complex_polar; | ||
//%ignore gsl_complex_polar; | ||
|
||
%ignore gsl_coerce_float; | ||
%ignore gsl_coerce_long_double; | ||
%include <gsl/gsl_sys.h> | ||
%ignore gsl_coerce_float; |
Oops, something went wrong.