Skip to content

Commit 4b5a43d

Browse files
committed
v0.6.1
1 parent c57f2d6 commit 4b5a43d

File tree

5 files changed

+39
-39
lines changed

5 files changed

+39
-39
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ build:
66
install:
77
python3 setup.py install
88

9-
publish:
9+
publish_test:
1010
twine check dist/*
1111
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
1212

13+
publish:
14+
twine check dist/*
15+
twine upload dist/*
16+
1317
clean:
1418
@rm -rf build \
1519
dist \

README.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
1-
Data Integrity Fingerprint (Python implementation)
2-
===================================================
1+
DIF Reference Implementation in Python
2+
======================================
3+
4+
![GitHub](https://img.shields.io/pypi/l/dataintegrityfingerprint?style=flat)
5+
[![PyPI](https://img.shields.io/pypi/v/dataintegrityfingerprint?style=flat)](https://pypi.org/project/dataintegrityfingerprint/)
6+
7+
**Data Integrity Fingerprints (DIF)**
8+
* **GUI and command line tool**
9+
* **Python library**
10+
11+
Documentation Data Integrity Fingerprint: http://expyriment.github.io/DIF
12+
13+
---
314

415
*Released under the MIT License*
516

617
Oliver Lindemann (oliver@expyriment.org) & Florian Krause (florian@expyriment.org)
718

8-
Documentation Data Integrity Fingerprint: http://expyriment.github.io/DIF
19+
---
920

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

22+
## Install
1223

13-
Install
14-
-------
1524

1625
```
17-
python -m pip install --index-url https://test.pypi.org/simple/ dataintegrityfingerprint
26+
python -m pip install dataintegrityfingerprint
1827
```
1928

20-
21-
Run DIF GUI
22-
-----------
29+
## Usage DIF tools
30+
### GUI
2331

2432
```
2533
python -m dataintegrityfingerprint -G
@@ -32,8 +40,7 @@ dataintegrityfingerprint -G
3240
```
3341

3442

35-
DIF Command line interface
36-
--------------------------
43+
### Command line interface
3744

3845
```
3946
python -m dataintegrityfingerprint
@@ -45,8 +52,7 @@ or if installed via pip:
4552
dataintegrityfingerprint
4653
```
4754

48-
DIF Python library
49-
-------------------
55+
## DIF Python library
5056

5157
```
5258
from dataintegrityfingerprint import DataIntegrityFingerprint

dataintegrityfingerprint/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33

44
__version__ = '0.6.1'
55

6+
PACKAGE_NAME = "dataintegrityfingerprint"
7+
68
from sys import version_info as _vi
79
if _vi.major< 3:
8-
raise RuntimeError("Dataintegretyfinger requires Python 3 or larger.")
10+
raise RuntimeError("{} requires Python 3 or larger.".format(PACKAGE_NAME))
911

1012
from .dif import DataIntegrityFingerprint

setup.py

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,13 @@
66
from setuptools import setup
77
import codecs
88
import os
9-
from sys import version_info as _vi
10-
11-
package_name = "dataintegrityfingerprint"
12-
application_name = package_name
9+
from dataintegrityfingerprint import PACKAGE_NAME
1310

11+
application_name = PACKAGE_NAME
1412
install_requires = []
15-
1613
entry_points = {'console_scripts':
17-
['{}={}.__main__:run'.format(application_name, package_name)]}
18-
19-
if _vi.major< 1:
20-
raise RuntimeError("{0} requires Python 3 or larger.".format(package_name))
14+
['{}={}.__main__:run'.format(application_name, PACKAGE_NAME)]}
15+
repository = "https://github.com/expyriment/dataintegrityfingerprint-python"
2116

2217
def readme():
2318
directory = os.path.dirname(os.path.join(
@@ -30,6 +25,7 @@ def readme():
3025
) as file:
3126
return file.read()
3227

28+
3329
def get_version(package):
3430
"""Get version number"""
3531

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

4339
if __name__ == '__main__':
4440
setup(
45-
name = package_name,
46-
version=get_version(package_name),
41+
name = PACKAGE_NAME,
42+
version=get_version(PACKAGE_NAME),
4743
description='Create a Data Integrity Fingerprint',
48-
author='Florian Krause, Oliver Lindemann',
44+
author='Oliver Lindemann, Florian Krause',
4945
author_email='oliver@expyriment.org, florian@expyriment.org',
5046
license='MIT Licence',
51-
url='http://expyriment.github.io/DIF',
52-
packages=[package_name],
53-
include_package_data=True,
47+
url=repository,
48+
packages=[PACKAGE_NAME],
49+
include_package_data=False,
5450
setup_requires=[],
5551
install_requires=install_requires,
5652
entry_points=entry_points,

test.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)