erc20-limiter

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 7a43904c7b2dc54959e0ca6e1935b745b4dbc316
parent 410ad0f0775a0ba64456584c54b02fef47bca364
Author: lash <dev@holbrook.no>
Date:   Fri, 28 Jul 2023 13:45:44 +0100

Add packaging

Diffstat:
Apython/MANIFEST.in | 1+
Apython/setup.cfg | 33+++++++++++++++++++++++++++++++++
Apython/setup.py | 26++++++++++++++++++++++++++
3 files changed, 60 insertions(+), 0 deletions(-)

diff --git a/python/MANIFEST.in b/python/MANIFEST.in @@ -0,0 +1 @@ +include erc20_limiter/data/*.* *requirements.txt man/build/*.1 diff --git a/python/setup.cfg b/python/setup.cfg @@ -0,0 +1,33 @@ +[metadata] +name = erc20-limiter +version = 0.0.2 +description = ERC20 balance limit registry +author = Louis Holbrook +author_email = dev@holbrook.no +url = https://holbrook.no/src/erc20-limiter/log.html +keywords = + dlt + blockchain + cryptocurrency + ethereum +classifiers = + Programming Language :: Python :: 3 + Operating System :: OS Independent + Development Status :: 3 - Alpha + Topic :: Software Development :: Libraries + Environment :: Console + Intended Audience :: Developers + License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+) + Topic :: Internet +# Topic :: Blockchain :: EVM +license = AGPLv3+ +licence_files = + LICENSE + +[options] +include_package_data = True +python_requires = >= 3.8 +packages = + erc20_limiter + erc20_limiter.unittest + erc20_limiter.data diff --git a/python/setup.py b/python/setup.py @@ -0,0 +1,26 @@ +from setuptools import setup +import os + + +requirements = [] +f = open('requirements.txt', 'r') +while True: + l = f.readline() + if l == '': + break + requirements.append(l.rstrip()) +f.close() + +test_requirements = [] +f = open('test_requirements.txt', 'r') +while True: + l = f.readline() + if l == '': + break + test_requirements.append(l.rstrip()) +f.close() + +setup( + install_requires=requirements, + tests_require=test_requirements, + )