Add packaging

This commit is contained in:
lash 2023-07-28 14:09:45 +01:00
parent 89b92ef7de
commit 51f03be466
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 60 additions and 0 deletions

1
python/MANIFEST.in Normal file
View File

@ -0,0 +1 @@
include erc20_pool/data/*.* *requirements.txt man/build/*.1

33
python/setup.cfg Normal file
View File

@ -0,0 +1,33 @@
[metadata]
name = erc20-pool
version = 0.0.1
description = Permissioned ERC20 swap pool for EVM
author = Louis Holbrook
author_email = dev@holbrook.no
url = https://holbrook.no/src/erc20-pool/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_pool
erc20_pool.unittest
erc20_pool.data

26
python/setup.py Normal file
View File

@ -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,
)