Skip to content

Commit

Permalink
v0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lindemann09 committed Jun 29, 2021
1 parent c57f2d6 commit 4b5a43d
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ build:
install:
python3 setup.py install

publish:
publish_test:
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

publish:
twine check dist/*
twine upload dist/*

clean:
@rm -rf build \
dist \
Expand Down
34 changes: 20 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
Data Integrity Fingerprint (Python implementation)
===================================================
DIF Reference Implementation in Python
======================================

![GitHub](https://img.shields.io/pypi/l/dataintegrityfingerprint?style=flat)
[![PyPI](https://img.shields.io/pypi/v/dataintegrityfingerprint?style=flat)](https://pypi.org/project/dataintegrityfingerprint/)

**Data Integrity Fingerprints (DIF)**
* **GUI and command line tool**
* **Python library**

Documentation Data Integrity Fingerprint: http://expyriment.github.io/DIF

---

*Released under the MIT License*

Oliver Lindemann ([email protected]) & Florian Krause ([email protected])

Documentation Data Integrity Fingerprint: http://expyriment.github.io/DIF
---

Python implementation: https://github.com/expyriment/dataintegrityfingerprint-python

## Install

Install
-------

```
python -m pip install --index-url https://test.pypi.org/simple/ dataintegrityfingerprint
python -m pip install dataintegrityfingerprint
```


Run DIF GUI
-----------
## Usage DIF tools
### GUI

```
python -m dataintegrityfingerprint -G
Expand All @@ -32,8 +40,7 @@ dataintegrityfingerprint -G
```


DIF Command line interface
--------------------------
### Command line interface

```
python -m dataintegrityfingerprint
Expand All @@ -45,8 +52,7 @@ or if installed via pip:
dataintegrityfingerprint
```

DIF Python library
-------------------
## DIF Python library

```
from dataintegrityfingerprint import DataIntegrityFingerprint
Expand Down
4 changes: 3 additions & 1 deletion dataintegrityfingerprint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

__version__ = '0.6.1'

PACKAGE_NAME = "dataintegrityfingerprint"

from sys import version_info as _vi
if _vi.major< 3:
raise RuntimeError("Dataintegretyfinger requires Python 3 or larger.")
raise RuntimeError("{} requires Python 3 or larger.".format(PACKAGE_NAME))

from .dif import DataIntegrityFingerprint
26 changes: 11 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,13 @@
from setuptools import setup
import codecs
import os
from sys import version_info as _vi

package_name = "dataintegrityfingerprint"
application_name = package_name
from dataintegrityfingerprint import PACKAGE_NAME

application_name = PACKAGE_NAME
install_requires = []

entry_points = {'console_scripts':
['{}={}.__main__:run'.format(application_name, package_name)]}

if _vi.major< 1:
raise RuntimeError("{0} requires Python 3 or larger.".format(package_name))
['{}={}.__main__:run'.format(application_name, PACKAGE_NAME)]}
repository = "https://github.com/expyriment/dataintegrityfingerprint-python"

def readme():
directory = os.path.dirname(os.path.join(
Expand All @@ -30,6 +25,7 @@ def readme():
) as file:
return file.read()


def get_version(package):
"""Get version number"""

Expand All @@ -42,15 +38,15 @@ def get_version(package):

if __name__ == '__main__':
setup(
name = package_name,
version=get_version(package_name),
name = PACKAGE_NAME,
version=get_version(PACKAGE_NAME),
description='Create a Data Integrity Fingerprint',
author='Florian Krause, Oliver Lindemann',
author='Oliver Lindemann, Florian Krause',
author_email='[email protected], [email protected]',
license='MIT Licence',
url='http://expyriment.github.io/DIF',
packages=[package_name],
include_package_data=True,
url=repository,
packages=[PACKAGE_NAME],
include_package_data=False,
setup_requires=[],
install_requires=install_requires,
entry_points=entry_points,
Expand Down
8 changes: 0 additions & 8 deletions test.sh

This file was deleted.

0 comments on commit 4b5a43d

Please sign in to comment.