add setup for pypi

This commit is contained in:
mfaisyal
2022-09-24 22:46:27 +07:00
parent 2ccaf87649
commit c61b1320b1
2 changed files with 68 additions and 21 deletions

View File

@@ -1,23 +1,13 @@
import setuptools
# Copyright (C) 2012-2022 james jameson
with open('requirements.txt') as fp:
install_requires = fp.read()
setuptools.setup(
name="open_dbm",
version="0.0.1",
author="Vijay Yadav",
author_email='vijay.yadav@aicure.com',
description="openDBM",
license='',
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
py_modules=["open_dbm"],
#package_dir={'':'open_dbm'}, # Directory of the source code of the package
install_requires = install_requires
)
if __name__ == "__main__":
import sys
from setuptools import find_packages, setup
if sys.version_info[:2] < (3, 7):
raise RuntimeError("opendbm requires python >= 3.7.")
setup()