Skip to content
Open
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
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
include requirements.txt
include extra-requirements.txt
include environment.yml
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,39 @@ We kindly ask you to cite these articles in case you use this software package f

## Installation
`dcTMD` is available on **PyPI** and **conda-forge**.
#### Install with pip

#### From PyPI
```bash
pip install dcTMD
```
PyPI project page: [https://pypi.org/project/dcTMD/](https://pypi.org/project/dcTMD/)
#### Install with conda

#### From conda-forge
```bash
conda install conda-forge::dctmd
```
Conda-forge package page:
[https://anaconda.org/conda-forge/dcTMD](https://anaconda.org/conda-forge/dcTMD)
#### Install from GitHub

#### From GitHub
```bash
python3 -m pip install git+ssh://git@github.com/moldyn/dcTMD.git
```

### Local development environment
The runtime dependencies are listed in [requirements.txt](requirements.txt) and [environment.yml](environment.yml). For a local checkout, install them with:

```bash
python3 -m pip install -r requirements.txt
```

For conda users, create the environment with:

```bash
conda env create -f environment.yml
conda activate dcTMD
```

## Usage
Check out the documentation for an overview over all modules as well as the tutorials.

Expand Down
16 changes: 16 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Development environment for dcTMD.
# conda env create -f environment.yml
# conda activate dcTMD
name: dcTMD
channels:
- conda-forge
dependencies:
- python>=3.9
- numpy>=1.21.0
- scipy
- scikit-learn
- beartype>=0.10.4
- tqdm
- click>=7.0.0
- matplotlib>=3.7
- pip
9 changes: 9 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Runtime dependencies of dcTMD.
# Install with: python3 -m pip install -r requirements.txt
numpy>=1.21.0
scipy
scikit-learn
beartype>=0.10.4
tqdm
click>=7.0.0
matplotlib>=3.7
22 changes: 12 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
from setuptools import setup, find_packages


def get_requirements(path):
"""Parse runtime requirements file."""
with open(path) as depfile:
return [
line.strip()
for line in depfile
if line.strip() and not line.startswith('#')
]


def get_extra_requirements(path, add_all=True):
"""Parse extra-requirements file."""
with open(path) as depfile:
Expand Down Expand Up @@ -70,16 +80,8 @@ def get_extra_requirements(path, add_all=True):
packages=find_packages(where='src'),
include_package_data=True,
python_requires='>=3.9',
install_requires=[
'numpy>=1.21.0',
'scikit-learn',
'beartype>=0.10.4',
'scipy',
'tqdm',
'click>=7.0.0',
'matplotlib>=3.7',
],
extras_require=get_extra_requirements('extra-requirements.txt'),
install_requires=get_requirements(HERE / 'requirements.txt'),
extras_require=get_extra_requirements(HERE / 'extra-requirements.txt'),
entry_points={
'console_scripts': [
'dcTMD = dcTMD.__main__:main',
Expand Down