You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -37,42 +49,31 @@ If you use diffpy.distanceprinter in a scientific publication, we would like you
37
49
38
50
Installation
39
51
------------
40
-
``diffpy.distanceprinter`` is normally installed as part of the ``xpdfsuite`` software, so please refer to the
41
-
installation instructions detailed in the ``README.rst`` file of ``xpdfsuite`` `here <https://github.com/diffpy/diffpy.xpdfsuite/blob/main/README.rst>`_.
42
52
43
-
Independent Installation
44
-
------------------------
45
-
You can also install ``diffpy.distanceprinter`` independently for yourself.
46
-
47
-
Assuming you have a wheel file in the current working directory, in an active conda environment please type ::
To install this software from a Python wheel distribution format execute ::
67
+
The output should print the latest version displayed on the badges above.
62
68
63
-
pip install ./diffpy.distanceprinter-VERSION.whl
69
+
If the above does not work, you can use ``pip`` to download and install the latest release from
70
+
`Python Package Index <https://pypi.python.org>`_.
71
+
To install using ``pip`` into your ``diffpy.distanceprinter_env`` environment, type ::
64
72
65
-
If you are a developer, you can also install this package from sources. First, obtain the source archive
66
-
from `GitHub <https://github.com/diffpy/diffpy.distanceprinter/>`_.
67
-
Install the packages in ``./requirements/conda.txt`` and ``./requirements/tests.txt``
68
-
using the ``--file`` command ::
73
+
pip install diffpy.distanceprinter
69
74
70
-
conda activate distanceprinter-env
71
-
conda install --file ./requirements/conda.txt
72
-
conda install --file ./requirements/tests.txt
73
-
pip install -e . # assuming you are in the top level directory of the package
74
-
75
-
After installing the dependencies, ``cd`` into your ``diffpy.distanceprinter`` directory
75
+
If you prefer to install from sources, after installing the dependencies, obtain the source archive from
76
+
`GitHub <https://github.com/diffpy/diffpy.distanceprinter/>`_. Once installed, ``cd`` into your ``diffpy.distanceprinter`` directory
76
77
and run the following ::
77
78
78
79
pip install .
@@ -90,6 +91,38 @@ To view the basic usage and available commands, type ::
90
91
91
92
diffpy.distanceprinter -h
92
93
94
+
Support and Contribute
95
+
----------------------
96
+
97
+
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.distanceprinter/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.distanceprinter/pulls>`_.
98
+
99
+
Feel free to fork the project and contribute. To install diffpy.distanceprinter
100
+
in a development mode, with its sources being directly used by Python
101
+
rather than copied to a package directory, use the following in the root
102
+
directory ::
103
+
104
+
pip install -e .
105
+
106
+
To ensure code quality and to prevent accidental commits into the default branch, please set up the use of our pre-commit
107
+
hooks.
108
+
109
+
1. Install pre-commit in your working environment by running ``conda install pre-commit``.
110
+
111
+
2. Initialize pre-commit (one time only) ``pre-commit install``.
112
+
113
+
Thereafter your code will be linted by black and isort and checked against flake8 before you can commit.
114
+
If it fails by black or isort, just rerun and it should pass (black and isort will modify the files so should
115
+
pass after they are modified). If the flake8 test fails please see the error messages and fix them manually before
116
+
trying to commit again.
117
+
118
+
Improvements and fixes are always appreciated.
119
+
120
+
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.distanceprinter/blob/main/CODE-OF-CONDUCT.rst>`_.
121
+
122
+
Getting Started
123
+
---------------
124
+
125
+
You may consult our `online documentation <https://diffpy.github.io/diffpy.distanceprinter>`_ for tutorials and API references.
0 commit comments