Codebase list python-rdata / 9a7d780
Initial packaging and upload. Steffen 2 years ago
9 changed file(s) with 145 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 python-rdata (0.5-1) unstable; urgency=medium
1
2 * Initial release (Closes: #998085)
3
4 -- Steffen Moeller <moeller@debian.org> Sat, 30 Oct 2021 00:49:40 +0200
0 Source: python-rdata
1 Section: python
2 Priority: optional
3 Maintainer: Debian Python Team <team+python@tracker.debian.org>
4 Uploaders: Steffen Moeller <moeller@debian.org>
5 Build-Depends: debhelper-compat (= 13),
6 dh-python,
7 python3-setuptools,
8 python3-all,
9 python3-pytest-runner <!nocheck>,
10 python3-pytest-cov <!nocheck>,
11 python3-numpy (>=1.14) <!nocheck>,
12 python3-xarray <!nocheck>
13 Standards-Version: 4.6.0
14 Homepage: https://github.com/vnmabus/rdata
15 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-rdata
16 Vcs-Git: https://salsa.debian.org/python-team/packages/python-rdata.git
17 Testsuite: autopkgtest-pkg-python
18 Rules-Requires-Root: no
19
20 Package: python3-rdata
21 Architecture: all
22 Depends: ${python3:Depends},
23 ${misc:Depends},
24 python3-numpy,
25 python3-xarray,
26 python3-pandas
27 Description: parses R dataset (.rda) files
28 The common way of reading an R dataset consists on two steps:
29 .
30 * First, the file is parsed using the function parse_file. This provides
31 a literal description of the file contents as a hierarchy of Python
32 objects representing the basic R objects. This step is unambiguous
33 and always the same.
34 * Then, each object must be converted to an appropriate Python
35 object. In this step there are several choices on which Python type
36 is the most appropriate as the conversion for a given R object. Thus,
37 we provide a default convert routine, which tries to select Python
38 objects that preserve most information of the original R object. For
39 custom R classes, it is also possible to specify conversion routines
40 to Python objects.
41 .
42 The basic convert routine only constructs a SimpleConverter objects and
43 calls its convert method. All arguments of convert are directly passed
44 to the SimpleConverter initialization method.
45 .
46 It is possible, although not trivial, to make a custom Converter object
47 to change the way in which the basic R objects are transformed to
48 Python objects. However, a more common situation is that one does not
49 want to change how basic R objects are converted, but instead wants
50 to provide conversions for specific R classes. This can be done by
51 passing a dictionary to the SimpleConverter initialization method,
52 containing as keys the names of R classes and as values, callables
53 that convert a R object of that class to a Python object. By default,
54 the dictionary used is DEFAULT_CLASS_MAP, which can convert commonly
55 used R classes such as data.frame and factor.
56
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: rdata
2 Upstream-Contact: Carlos Ramos Carreño <vnmabus@gmail.com>
3 Source: https://github.com/vnmabus/rdata/tags
4
5 Files: *
6 Copyright: 2018 Carlos Ramos Carreño <vnmabus@gmail.com>
7 License: Expat
8
9 Files: debian/*
10 Copyright: 2021 Steffen Moeller <moeller@debian.org>
11 License: Expat
12
13 License: Expat
14 Permission is hereby granted, free of charge, to any person obtaining a
15 copy of this software and associated documentation files (the "Software"),
16 to deal in the Software without restriction, including without limitation
17 the rights to use, copy, modify, merge, publish, distribute, sublicense,
18 and/or sell copies of the Software, and to permit persons to whom the
19 Software is furnished to do so, subject to the following conditions:
20 .
21 The above copyright notice and this permission notice shall be included
22 in all copies or substantial portions of the Software.
23 .
24 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
25 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0 #!/usr/bin/make -f
1 export DH_VERBOSE = 1
2
3 export PYBUILD_NAME=rdata
4
5 %:
6 dh $@ --with python3 --buildsystem=pybuild
7
8 override_dh_auto_test:
9 PYTHONPATH=$(CURDIR) pytest-3
10
11 override_dh_python3:
12 dh_python3
13 rm -rf debian/python3-rdata/usr/lib/python3/dist-packages/rdata-*egg-info
14
15 override_dh_auto_clean:
16 dh_auto_clean
17 rm -rf .eggs
0 # For more information on what jobs are run see:
1 # https://salsa.debian.org/salsa-ci-team/pipeline
2 #
3 # To enable the jobs, go to your repository (at salsa.debian.org)
4 # and click over Settings > CI/CD > Expand (in General pipelines).
5 # In "CI/CD configuration file" write debian/salsa-ci.yml and click
6 # in "Save Changes". The CI tests will run after the next commit.
7 ---
8 include:
9 - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
10 - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
0 3.0 (quilt)
0 # some very basic .rda files for testing purposes
1 # The respective contents are inspectable (and this repesentation recreateable)
2 # by loading these files in R or by using this Python module
3 python-rdata source: r-data-without-readme-source rdata/tests/data/test_complex.rda
4 python-rdata source: r-data-without-readme-source rdata/tests/data/test_dataframe.rda
5 python-rdata source: r-data-without-readme-source rdata/tests/data/test_empty_str.rda
6 python-rdata source: r-data-without-readme-source rdata/tests/data/test_emptyenv.rda
7 python-rdata source: r-data-without-readme-source rdata/tests/data/test_encodings.rda
8 python-rdata source: r-data-without-readme-source rdata/tests/data/test_environment.rda
9 python-rdata source: r-data-without-readme-source rdata/tests/data/test_expression.rda
10 python-rdata source: r-data-without-readme-source rdata/tests/data/test_list.rda
11 python-rdata source: r-data-without-readme-source rdata/tests/data/test_list_attrs.rda
12 python-rdata source: r-data-without-readme-source rdata/tests/data/test_logical.rda
13 python-rdata source: r-data-without-readme-source rdata/tests/data/test_matrix.rda
14 python-rdata source: r-data-without-readme-source rdata/tests/data/test_na_string.rda
15 python-rdata source: r-data-without-readme-source rdata/tests/data/test_s4.rda
16 python-rdata source: r-data-without-readme-source rdata/tests/data/test_ts.rda
17 python-rdata source: r-data-without-readme-source rdata/tests/data/test_vector.rda
0 extend-diff-ignore = "^[^/]*[.]egg-info/"
0 version=4
1 opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%<project>-$1.tar.gz%" \
2 https://github.com/vnmabus/rdata/tags (?:.*?/)?v?(\d[\d.]*)\.tar\.gz