Skip to content

Pip Upgrade #55

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

Merged
merged 6 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ mamba create --name domhmm
mamba activate domhmm
```

#### Installing with PyPI

DomHMM can be installed directly with pip

```
pip install domhmm
```

#### Installing directly from the repository without cloning

If you want to install the latest version of DomHMM directly from the repository (either from the `main` branch or any other branch), you can use the following command:
Expand Down
36 changes: 19 additions & 17 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@ Installation
=============
Installation can be done in two different ways

.. note::
DomHMM is planning to be published also in PyPI. Which means in future, it can be directly install via pip and can be usable without any further actions

GitHub Repository
------------------

Clone DomHMM's repository and change directory to project directory

.. code-block::

git clone https://github.com/BioMemPhys-FAU/domhmm
cd domhmm

Environment Creation
---------------------
Expand All @@ -28,16 +16,30 @@ If you don't have any Python environment, you can create a conda environment by

``conda create`` command creates a conda environment named *domhmm* and ``conda activate`` command starts environment in your terminal. Whenever you close your terminal, you need to use activate command again to restart environment.

After conda environment creation, you can install dependencies via

Installation with PyPI
-----------------------

For installation, you can directly use pip in project directory.

.. code-block:: console

pip install -e .
pip install domhmm

Installation via pip
---------------------

For direct installation, you can directly use pip in project directory.
Installation for Development
------------------------------

This type of installation can be use when pip is not usable, change in source code or contributing DomHMM.

Clone DomHMM's repository and change directory to project directory

.. code-block::

git clone https://github.com/BioMemPhys-FAU/domhmm
cd domhmm

Install dependencies and DomHMM's current version via pip command

.. code-block:: console

Expand Down
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = [
"setuptools >= 40.9.0",
"setuptools >= 61.0",
"wheel",
]
build-backend = "setuptools.build_meta"
Expand Down Expand Up @@ -55,3 +55,10 @@ minversion = "6.0"
testpaths = [
"domhmm/tests",
]

[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "domhmm/_version.py"
versionfile_build = "domhmm/_version.py"
tag_prefix = ""
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# Which Python importable modules should be included when your package is installed
# Handled automatically by setuptools. Use 'exclude' to prevent some specific
# subpackage(s) from being added, if needed
packages=find_packages(),
packages=find_packages() + ['domhmm.tests.data'],

# Optional include package data to ship with your package
# Customize MANIFEST.in if the general case does not suit your needs
Expand Down
Loading