From a8e822e2c16b0d77fff21086745eb1eedf4c0176 Mon Sep 17 00:00:00 2001 From: lash Date: Sat, 23 Apr 2022 04:50:54 +0000 Subject: [PATCH] Add setup files, bump version --- CHANGELOG | 4 +-- setup.cfg | 30 +++++++++++++++++++ setup.py | 25 ++++++++++++++++ ...t_filter_bogus.py => test_bogus_filter.py} | 0 4 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 setup.cfg create mode 100644 setup.py rename tests/{test_filter_bogus.py => test_bogus_filter.py} (100%) diff --git a/CHANGELOG b/CHANGELOG index 7465ece..4f5bfa3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,2 +1,2 @@ -- 0.0.1 - * Receive filters and unit tests from cic-stack/cic-eth +- 0.13.0 + * Receive filters and unit tests from cic-stack/cic-eth 0.12.10 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..32dd3b4 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,30 @@ +[metadata] +name = cic-sync-filter +version = 0.13.0 +description = Code filters for use with cic chain trackers +author = Louis Holbrook +author_email = dev@holbrook.no +url = https://gitlab.com/grassrootseconomics/cic-sync-filter +keywords = + cryptocurrency + ethereum + smartcontracts +classifiers = + Programming Language :: Python :: 3 + Operating System :: OS Independent + Development Status :: 3 - Alpha + Environment :: Console + Intended Audience :: Developers + License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) + Topic :: Software Development :: Libraries + Topic :: Internet + #Topic :: Blockchain :: EVM +license = GPL3 +licence_files = + LICENSE + +[options] +include_package_data = True +python_requires = >= 3.7 +packages = + cic_sync_filter diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..bc71993 --- /dev/null +++ b/setup.py @@ -0,0 +1,25 @@ +from setuptools import setup + +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, + ) diff --git a/tests/test_filter_bogus.py b/tests/test_bogus_filter.py similarity index 100% rename from tests/test_filter_bogus.py rename to tests/test_bogus_filter.py