Skip to content

Commit 62dce8e

Browse files
setup: add setup.py file
Prepare for packaging.
1 parent 6ab9007 commit 62dce8e

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

setup.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import setuptools
2+
3+
def read(path: str) -> str:
4+
with open(path, 'r') as file:
5+
return file.read()
6+
7+
def README() -> str:
8+
return read('README.md')
9+
10+
def version() -> str:
11+
return read('version').strip()
12+
13+
setuptools.setup(
14+
name='multi-hash',
15+
version=version(),
16+
author='Matheus Afonso Martins Moreira',
17+
author_email='[email protected]',
18+
description='Self-describing hashes',
19+
long_description=README(),
20+
long_description_content_type='text/markdown',
21+
url='https://github.com/matheusmoreira/multihash.py',
22+
packages=['multihash'],
23+
package_data={'multihash': ['py.typed', '*.pyi']},
24+
install_requires=['uvarint>=1.2,<2'],
25+
python_requires='>=3.6',
26+
classifiers=[
27+
'Programming Language :: Python :: 3',
28+
'Programming Language :: Python :: 3.6',
29+
'Programming Language :: Python :: 3.7',
30+
'Programming Language :: Python :: 3.8',
31+
'Programming Language :: Python :: 3 :: Only',
32+
'License :: OSI Approved :: MIT License',
33+
'Operating System :: OS Independent',
34+
'Topic :: Software Development :: Libraries',
35+
'Topic :: Software Development :: Libraries :: Python Modules',
36+
'Typing :: Typed',
37+
],
38+
)

version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

0 commit comments

Comments
 (0)