Closed carlodef closed 5 years ago
I think there should be only a few minor conflicts with #196:
I just did a merge by hand with #196 and it is fairly easy. There are a few minor conflicts on .travis.yaml
and imports needs to be changed from s2plib
to s2p
in tests
folder.
This pull request reorganises the sources in order to make
s2p
installable withpip
. The main changes are:s2p
is now a python package (instead of a python module)s2plib
was renamed tos2p
s2p.py
has disappeared and its content is split amongs2p/__init__.py
(most of the code) ands2p/cli.py
(command line parsing code)s2p
withpip
, a CLI tool nameds2p
becomes available in the system PATHs2p_test.py
was moved totests/test_s2p.py
testdata
was moved totests/data
Python codes that depend on
s2p
should not be affected:import s2p
still works in the same way.Shell scripts running
python /path/to/your/clone/of/s2p/s2p.py
should be updated to run insteads2p
as a standalone command line tool.This pull request contains the changes of pull request #191.
EDIT: A source distribution of
s2p
corresponding to this branch's version is available on PyPI and can be installed withpip
: