Skip to content

Commit

Permalink
Release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkowalk committed Dec 6, 2024
1 parent 908f68b commit 40120d0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 5 deletions.
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/davidkowalk/fitting_toolkit)
![GitHub License](https://img.shields.io/github/license/davidkowalk/fitting_toolkit)
![University](https://img.shields.io/badge/Univeristy_of_Bonn-brown)
![Version](https://img.shields.io/badge/version-1.0.0-green)
![Version](https://img.shields.io/badge/version-1.0.1-green)
![GitHub Repo stars](https://img.shields.io/github/stars/davidkowalk/fitting_toolkit?style=flat&label=github%20stars)


Expand All @@ -19,6 +19,28 @@ Check out the `docs` folder for documentation and tutorials.

## Quick Introduction

### Installation

There are multiple ways to install this package. The easiest is via pip:
```
pip install fitting-toolkit
```
If you need a specific version (for example due to compatibillity issues) you can specify the version via `fitting-toolkit==version`, e.g:
```
pip install fitting-toolkit==1.0.1
```

**Alternative Methods**

You can also find the `fitting_toolkit.py` in the `src` folder and copy it into your project.

To build the project yourself and install it, make sure `setuptools` and `wheel` are installed, then run
```
python3 setup.py sdist bdist_wheel
pip install .\dist\fitting_toolkit-1.0.1-py3-none-any.whl --force-reinstall
pip show fitting-toolkit -v
```

### Requirements
This project requires the following modules along with their dependencies:
- numpy
Expand All @@ -27,14 +49,15 @@ This project requires the following modules along with their dependencies:

It is highly recommended that the user familiarizes themselves with the functionality of these modules first. A rudimentary understanding of `numpy` and `matplotlib.pyplot` is required.

If you install via pip the dependencies will automatically be installed. However if the project files are used directly you may want to install dependencies manually:

To install the dependencies, first a [virtual environment](https://docs.python.org/3/library/venv.html) should be created. `requirements.txt` lists all necessary packages. Run:
```
pip install -r requirements.txt
```

### Getting Started

To get started find the `fitting_toolkit.py` in the `src` folder and copy it into your project.
You can now import the relevant functions into your code:
```python
from fitting_toolkit import curve_fit, plot_fit
Expand Down
6 changes: 5 additions & 1 deletion docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ These instructions provide a basic introduction on how to use the toolkit and la

This section covers the use of the toolkit's functions as intended, which will cover most use cases.

To get started find the `fitting_toolkit.py` in the `src` folder and copy it into your project.
To get started install the package via
```
pip install fitting-toolkit
```
or copy `fitting_toolkit.py` into your working directory.
You can now import the relevant functions into your code:
```python
from fitting_toolkit import curve_fit, plot_fit
Expand Down
14 changes: 12 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from setuptools import setup
#run with python3 setup.py sdist bdist_wheel

with open("./README.md") as f:
description = f.read()
Expand All @@ -8,9 +9,18 @@

setup(
name = "fitting_toolkit",
version = "1.0.0",
version = "1.0.1",
package_dir={"": "src"},
packages=[""],
long_description=description,
install_requires = requirements
long_description_content_type="text/markdown",
install_requires = requirements,
project_urls = {
"Documentation": "https://github.com/davidkowalk/fitting_toolkit/blob/development/docs/manual.md",
"Source": "https://github.com/davidkowalk/fitting_toolkit/",
"Tracker": "https://github.com/davidkowalk/fitting_toolkit/issues"
},
license="MIT",
description="Easy and Flexible Curve Fitting",
url="https://github.com/davidkowalk/fitting_toolkit/"
)

0 comments on commit 40120d0

Please sign in to comment.