1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
# To increment version
# Check you have ~/.pypirc filled in
# git tag x.y.z
# git push && git push --tags
# rm -rf dist; python setup.py sdist bdist_wheel
# TEST: twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# twine upload dist/*
from codecs import open
import re
from setuptools import setup, find_packages
import sys
author = "Danny Price, Ellert van der Velden and contributors"
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt", 'r') as fh:
requirements = fh.read().splitlines()
with open("requirements_test.txt", 'r') as fh:
test_requirements = fh.read().splitlines()
# Read the __version__.py file
with open('hickle/__version__.py', 'r') as f:
vf = f.read()
# Obtain version from read-in __version__.py file
version = re.search(r"^_*version_* = ['\"]([^'\"]*)['\"]", vf, re.M).group(1)
setup(name='hickle',
version=version,
description='Hickle - an HDF5 based version of pickle',
long_description=long_description,
long_description_content_type='text/markdown',
author=author,
author_email='dan@thetelegraphic.com',
url='http://github.com/telegraphic/hickle',
download_url=('https://github.com/telegraphic/hickle/archive/v%s.zip'
% (version)),
platforms='Cross platform (Linux, Mac OSX, Windows)',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
keywords=['pickle', 'hdf5', 'data storage', 'data export'],
install_requires=requirements,
tests_require=test_requirements,
python_requires='>=3.7',
packages=find_packages(),
zip_safe=False,
)
|