From 81be225cf6fbe86f772314a9bdcc3f05e9c525dc Mon Sep 17 00:00:00 2001 From: gabriel pettier Date: Tue, 21 Sep 2021 15:16:39 +0200 Subject: [PATCH] move package config to setup.cfg also set eth-account requirement version to 0.5.4 --- setup.cfg | 40 ++++++++++++++++++++++++++++++++++++++++ setup.py | 46 ++-------------------------------------------- 2 files changed, 42 insertions(+), 44 deletions(-) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..27a6ef2 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,40 @@ +[metadata] +license = MIT +name = pyhmy +keywords = Harmony, blockchain, protocol +description = A library for interacting and working the Harmony blockchain and related codebases. +long_description = file: README.md +long_description_content_type = text/markdown +author = Daniel Van Der Maden +author_email = daniel@harmony.one +url = http://harmony.one/ + +[options] +packages = find: +use_incremental = True + +classifiers = + Development Status :: 3 - Alpha + Intended Audience :: Developers + Topic :: Software Development :: Build Tools + License :: OSI Approved :: MIT License + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + +install_requires = + pexpect + requests + incremental + eth-rlp + eth-account == 0.5.4 + eth-utils + hexbytes + cytoolz + +setup_requires = + incremental + pytest + pytest-ordering + click + Twisted~=21.7.0 diff --git a/setup.py b/setup.py index 5649319..6068493 100644 --- a/setup.py +++ b/setup.py @@ -1,45 +1,3 @@ -import pathlib -from setuptools import setup, find_packages +from setuptools import setup -HERE = pathlib.Path(__file__).parent -README = (HERE / "README.md").read_text() - -setup( - name='pyhmy', - use_incremental=True, - license='MIT', - description="A library for interacting and working the Harmony blockchain and related codebases.", - long_description=README, - long_description_content_type="text/markdown", - author='Daniel Van Der Maden', - author_email='daniel@harmony.one', - url="http://harmony.one/", - packages=find_packages(), - keywords=['Harmony', 'blockchain', 'protocol'], - install_requires=[ - 'pexpect', - 'requests', - 'incremental', - 'eth-rlp', - 'eth-account', - 'eth-utils', - 'hexbytes', - 'cytoolz' - ], - setup_requires=[ - 'incremental', - 'pytest', - 'pytest-ordering', - 'click', - 'twisted', - ], - classifiers=[ - 'Development Status :: 3 - Alpha', - 'Intended Audience :: Developers', - 'Topic :: Software Development :: Build Tools', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - ] -) +setup()