-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from psypanda/pypi
Prepare hashID for release on PyPi (#24)
- Loading branch information
Showing
7 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
$RECYCLE.BIN/ | ||
*.bak | ||
*.egg | ||
*.egg-info | ||
.DS_Store | ||
.~lock* | ||
build | ||
Desktop.ini | ||
dist | ||
ehthumbs.db | ||
js/node_modules | ||
test/ | ||
test | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include doc/LICENSE doc/CHANGELOG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import io | ||
import os | ||
import re | ||
from setuptools import setup, find_packages | ||
|
||
|
||
def read(*parts): | ||
here = os.path.abspath(os.path.dirname(__file__)) | ||
with io.open(os.path.join(here, *parts), "r", encoding="utf-8") as f: | ||
return f.read() | ||
|
||
|
||
def get_version(*file_paths): | ||
version_file = read(*file_paths) | ||
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) | ||
if version_match: | ||
return version_match.group(1) | ||
raise RuntimeError("Unable to find version string.") | ||
|
||
|
||
setup( | ||
name='hashID', | ||
packages=find_packages(exclude=['hashinfo.xlsx']), | ||
version=get_version('hashid.py'), | ||
description='Software to identify the different types of hashes', | ||
long_description=read('README.rst'), | ||
author='c0re', | ||
author_email='c0re@psypanda.org', | ||
license='GNU GPL', | ||
url='https://github.com/psypanda/hashID', | ||
download_url='https://github.com/psypanda/hashID/tarball/v' + get_version('hashid.py'), | ||
keywords='hashid hash identifier hash-identifier', | ||
py_modules=['hashid'], | ||
entry_points={ | ||
'console_scripts': [ | ||
'hashid = hashid:main', | ||
], | ||
}, | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Natural Language :: English', | ||
'Intended Audience :: Other Audience', | ||
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
], | ||
) |