From c0ab3dddb75e795c82a7d72b2444124e041ad8d5 Mon Sep 17 00:00:00 2001 From: AmirMardan Date: Sat, 1 Jan 2022 20:15:49 -0500 Subject: [PATCH] fix the bugs for pypi and worked --- setup.cfg | 29 ----------------------------- setup.py | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 29 deletions(-) delete mode 100644 setup.cfg create mode 100644 setup.py diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 1b2d25b..0000000 --- a/setup.cfg +++ /dev/null @@ -1,29 +0,0 @@ -[metadata] -name = PyFWI -version = 0.0.4 -author = Amir Mardan -author_email = mardan.ah69@gmail.com -description = The initial package for seismic FWI -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/AmirMardan/PyFWI -project_urls = - Bug Tracker = https://github.com/AmirMardan/PyFWI/issues -classifiers = - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) - Operating System :: OS Independent - Topic :: Scientific/Engineering - Intended Audience :: Science/Research - Intended Audience :: Education -[options] -package_dir = - = src -packages = find: -python_requires = >=3.6 - -[options.packages.find] -where = src diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..86c83ef --- /dev/null +++ b/setup.py @@ -0,0 +1,51 @@ +# from distutils.core import setup +from setuptools import setup +from setuptools.extension import Extension + +with open("README.md", "r") as fh: + long_description = fh.read() + +setup(name='PyFWI', + version='0.1.0', + packages=['PyFWI'], + description='The initial package for seismic FWI', + long_description=long_description, + long_description_content_type="text/markdown", + author='Amir Mardan', + author_email='mardan.ah69@gmail.com', + url = 'https://github.com/AmirMardan/PyFWI', + project_urls={ + "Bug Tracker": "https://github.com/AmirMardan/PyFWI/issues", + }, + classifiers=[ + 'Intended Audience :: Education', + 'Programming Language :: C', + 'Programming Language :: Python :: 3.10', + 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', + 'Operating System :: OS Independent', + 'Operating System :: Microsoft :: Windows', + 'Intended Audience :: Education', + 'Intended Audience :: Science/Research', + ], + package_dir={"": "src"}, + install_requires=[ + "setuptools>=42", + "wheel", + "numpy", + "pyopencl==2021.2.10", + "matplotlib", + "scipy", + "hdf5storage", + "requests", + "segyio", + "datetime" + ], + package_data={ + "PyFWI": ["elastic_velocity.cl"], + }, + zip_safe=False, + python_requires=">=3.10" + + ) + +