-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update installation docs #154
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,7 @@ them. | |
|
||
dev_notes_spin | ||
dev_notes_database | ||
installation_locally | ||
|
||
.. toctree:: | ||
:maxdepth: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
Local installation | ||
================== | ||
|
||
.. _local-installation: | ||
|
||
When installing the ``dataregistry`` package locally yourself, it is | ||
recommended to work within your own Conda or Python virtual environment. | ||
|
||
Creating a Conda environment | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
You can make a new Conda environment via | ||
|
||
.. code-block:: bash | ||
|
||
module load conda/Mambaforge-22.11.1-4 | ||
conda create -p ./datareg_env psycopg2 | ||
|
||
where ``./datareg_env`` is the path where the environment will be installed | ||
(change this as required). To activate the environment do | ||
|
||
.. code-block:: bash | ||
|
||
conda activate <path to your env> | ||
|
||
Creating a Python venv | ||
~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
or, you can work within a Python virtual environment via | ||
|
||
.. code-block:: bash | ||
|
||
module load python/3.10 | ||
python3 -m venv ./datareg_env | ||
|
||
where ``./datareg_env`` is the path where the environment will be installed | ||
(change this as required). To activate the environment do | ||
|
||
.. code-block:: bash | ||
|
||
source <path to your env>/bin/activate | ||
|
||
Note the specific version of Python used above (``3.10``) is only an example, | ||
the ``dataregistry`` package is supported on Python versions ``>=3.9``. | ||
|
||
Installing the ``dataregistry`` package | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The easiest way to install the ``dataregistry`` package is via `PyPi | ||
<https://pypi.org/project/lsstdesc-dataregistry/>`__, i.e., | ||
|
||
.. code-block:: bash | ||
|
||
pip install lsstdesc-dataregistry | ||
|
||
Install from source | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
To install from source, first clone the GitHub repository | ||
|
||
.. code-block:: bash | ||
|
||
git clone https://github.com/LSSTDESC/dataregistry.git | ||
|
||
then, navigate to the ``dataregistry`` directory and install via *pip* using | ||
|
||
.. code-block:: bash | ||
|
||
python3 -m pip install . | ||
|
||
You can test to see if the ``dataregistry`` package has installed successfully | ||
by typing | ||
|
||
.. code-block:: bash | ||
|
||
python3 -c "import dataregistry; print(dataregistry.__version__)" | ||
|
||
If you see the current package version printed to the console, success! |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "1.0.1" | ||
__version__ = "1.0.2" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to add a note here (or somewhere) something like this:
Note:
reg_writer
cannot write to production (schemalsst_desc_production
). There is another more privileged account for that. If you need to register production entries, please consult one of the dataregistry admins. Bothreg_reader
andreg_writer
can write to the tutorial version of production (schematutorial_production
).