-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from adjtomo/update_install
Updates install procedures
- Loading branch information
Showing
3 changed files
with
29 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pyflex" | ||
version = "0.2.0" | ||
description = "Python port of the FLEXWIN package" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
license = {file = "LICENSE.txt"} | ||
authors = [ | ||
{name = "adjTomo Dev Team"}, | ||
{email = "[email protected]"} | ||
] | ||
dependencies = [ | ||
"obspy", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = ["pytest", "ipython", "ipdb", "flake8", "nose"] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/adjtomo/" | ||
documentation = "https://adjtomo.github.io/pyflex" | ||
repository = "https://github.com/adjtomo/pyflex" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,3 @@ | ||
#!/usr/bin/env python | ||
# -*- encoding: utf8 -*- | ||
import glob | ||
import inspect | ||
import io | ||
import os | ||
|
||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
changelog = os.path.join(os.path.dirname(os.path.abspath( | ||
inspect.getfile(inspect.currentframe()))), "CHANGELOG.md") | ||
with open(changelog, "rt") as fh: | ||
changelog = fh.read() | ||
|
||
long_description = """ | ||
Source code: https://github.com/adjtomo/pyflex | ||
Documentation: http://krischer.github.io/pyflex | ||
%s""".strip() % changelog | ||
|
||
|
||
def read(*names, **kwargs): | ||
return io.open( | ||
os.path.join(os.path.dirname(__file__), *names), | ||
encoding=kwargs.get("encoding", "utf8")).read() | ||
|
||
|
||
setup( | ||
name="pyflex", | ||
version="0.2.0", | ||
license='GNU General Public License, Version 3 (GPLv3)', | ||
description="Python port of the FLEXWIN package", | ||
long_description=long_description, | ||
author="adjTomo Development Team", | ||
author_email="[email protected]", | ||
url="https://github.com/adjtomo/pyflex", | ||
packages=find_packages(), | ||
# packages=find_packages("pyflex"), | ||
# package_dir={"": "pyflex"}, | ||
# py_modules=[os.path.splitext(os.path.basename(i))[0] | ||
# for i in glob.glob("pyflex/*.py")], | ||
include_package_data=True, | ||
zip_safe=False, | ||
classifiers=[ | ||
# complete classifier list: | ||
# http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Operating System :: Unix", | ||
"Operating System :: POSIX", | ||
"Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)" | ||
], | ||
keywords=[ | ||
"seismology", "flexwin", "science", "tomography", "inversion" | ||
], | ||
install_requires=[ | ||
"obspy >= 1.0", "flake8", "pytest", "nose" | ||
], | ||
extras_require={ | ||
"docs": ["sphinx", "ipython", "runipy"] | ||
} | ||
) | ||
setup() |