|
| 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 | + |
| 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 | +) |
0 commit comments