Skip to content

Commit

Permalink
Prepare for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkoehler committed Jan 12, 2023
1 parent 3b8bdfb commit 8f7b336
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 59 deletions.
File renamed without changes.
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,17 @@ To install the latest delevopment version, first clone this repository:
$ git clone https://github.com/richardkoehler/pte-stats
```

Then install with the command:
If you are using conda, simply run:

```bash
$ pip install .
$ conda env create -f env.yml
$ conda activate pte-stats
```

If you want to install pte-stats into an existing environment, type:

```bash
$ pip install -e .
```


Expand All @@ -56,9 +63,16 @@ For any minor additions or bugfixes, you may simply create a **pull request**.
For any major changes, make sure to open an **issue** first. When you then create a pull request, be sure to **link the pull request** to the open issue in order to close the issue automatically after merging.

### How to contribute
To contribute yourselves, you should fork this repository, and create your a development branch from your fork.
To contribute yourselves, you should fork this repository, and then create a development branch from your fork.

Then, inside your development branch run the commands:

```bash
$ conda env create -f env_dev.yml
$ conda activate pte-stats-dev
```

Then, inside your development branch run the command:
... or simply:

```bash
$ pip install -e .[dev]
Expand All @@ -71,9 +85,9 @@ PTE Stats is licensed under the [MIT license](license-url).

<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[python-shield]: https://img.shields.io/static/v1?label=Python&message=3.9|3.10&logoColor=black&labelColor=grey&color=blue
[python-shield]: https://img.shields.io/static/v1?label=Python&message=3.10&logoColor=black&labelColor=grey&color=blue
[python-url]: https://pypi.org/project/pte-stats/
[pypi-shield]: https://img.shields.io/static/v1?label=PyPi&message=v0.1.0&logoColor=black&labelColor=grey&color=blue
[pypi-shield]: https://img.shields.io/static/v1?label=PyPi&message=v0.2.0&logoColor=black&labelColor=grey&color=blue
[pypi-url]: https://pypi.org/project/pte-stats/
[tests-shield]: https://github.com/richardkoehler/pte-stats/actions/workflows/tests.yml/badge.svg
[tests-url]: https://github.com/richardkoehler/pte-stats/actions/workflows/tests.yml
Expand Down
11 changes: 3 additions & 8 deletions env.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: pte-stats
channels:
- conda-forge
- defaults
dependencies:
- joblib
- numba
- numpy
- pip
- python>=3.9
- scikit-image
- statsmodels

- python=3.10
- pip:
- -e .
24 changes: 0 additions & 24 deletions env_deploy.yml

This file was deleted.

16 changes: 2 additions & 14 deletions env_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,8 @@ name: pte-stats-dev
channels:
- defaults
dependencies:
- python>=3.9
- pip
- python=3.10
- pip:
# basic dependencies
- joblib
- numba
- numpy
- scikit-image
- statsmodels
# development dependencies
- black
- isort
- mypy
- pylint
- pytest
- pytest-cov
- -e .[dev]

9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["flit_core >=3.5,<4"]

[project]
authors = [
{name = "Richard Köhler"},
{name = "Richard M. Köhler"},
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
Expand All @@ -15,9 +15,9 @@ classifiers = [
description = "An open-source software package for statistics with time series."
dynamic = ["version"]
keywords = ["statistics", "timeseries", "eeg", "ieeg"]
license = {file = "LICENSE.txt"}
license = {file = "LICENSE"}
maintainers = [
{name = "Richard Köhler"},
{name = "Richard M. Köhler"},
]
name = "pte-stats"
readme = {file = "README.md", content-type = "text/markdown"}
Expand All @@ -31,9 +31,6 @@ dependencies = [
]

[project.optional-dependencies]
deploy = [
"flit",
]
dev = [
"black",
"isort",
Expand Down
2 changes: 1 addition & 1 deletion src/pte_stats/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""An open-source software package for statistics with time series. """

__version__ = "0.2.0.dev1"
__version__ = "0.2.0"

from .cluster import (
cluster_analysis_1d,
Expand Down

0 comments on commit 8f7b336

Please sign in to comment.