summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2019-11-06 02:42:58 +0800
committerUniversebenzene2019-11-06 02:42:58 +0800
commit3862fda90d5c34f914b7f639d9d9e036ba85143a (patch)
treec2a79fa550af483030440d2d7063c7b13617ae16
downloadaur-3862fda90d5c34f914b7f639d9d9e036ba85143a.tar.gz
Initial import 0.2.1
-rw-r--r--.SRCINFO26
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD37
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3482aece274
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = python-einsteinpy
+ pkgdesc = Python package for General Relativity
+ pkgver = 0.2.1
+ pkgrel = 1
+ url = https://einsteinpy.org/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ checkdepends = python-pytest
+ checkdepends = python-matplotlib
+ checkdepends = python-astropy
+ checkdepends = python-sympy
+ checkdepends = python-plotly
+ makedepends = python-setuptools
+ source = https://files.pythonhosted.org/packages/source/e/einsteinpy/einsteinpy-0.2.1.tar.gz
+ md5sums = 24f0ba1b00781fc3bd2cf8fa082e22ca
+
+pkgname = python-einsteinpy
+ depends = python>=3.5
+ depends = python-astropy
+ depends = python-matplotlib
+ depends = python-plotly>=4.0
+ depends = python-sympy>=1.1
+ optdepends = python-numba: For accelerating the code
+ optdepends = python-einsteinpy-doc: Documentation for EinsteinPy
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..0d6e3b36c63
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+src
+pkg
+*.src.tar.gz
+*.tar.gz
+*.tar.bz2
+*.part
+*.pkg.tar.xz
+*.log
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..563ee6f8f1a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Astro Benzene <universebenzene at sina dot com>
+pkgbase=python-einsteinpy
+_pyname=${pkgbase#python-}
+pkgname=("python-${_pyname}")
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="Python package for General Relativity"
+arch=('i686' 'x86_64')
+url="https://einsteinpy.org/"
+license=('MIT')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-matplotlib' 'python-astropy' 'python-sympy' 'python-plotly')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
+md5sums=('24f0ba1b00781fc3bd2cf8fa082e22ca')
+
+build() {
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ python setup.py build
+}
+
+check() {
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ python setup.py test
+}
+
+package_python-einsteinpy() {
+ depends=('python>=3.5' 'python-astropy' 'python-matplotlib' 'python-plotly>=4.0' 'python-sympy>=1.1')
+ optdepends=('python-numba: For accelerating the code'
+ 'python-einsteinpy-doc: Documentation for EinsteinPy')
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" COPYING
+ install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+}