Skip to content

Commit

Permalink
Merge pull request #18 from adjtomo/update_install
Browse files Browse the repository at this point in the history
Updates install procedures
  • Loading branch information
bch0w authored Feb 28, 2023
2 parents 2828f44 + 2a420f2 commit 802ae65
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 72 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Changelog
---------
* **Pyflex 0.1.6** WIP
* **Pyflex 0.2.0** *Jul 14th 2022*
* Ownership transfered to GitHub organization adjTomo
* WindowSelector now returns rejected windows
* Making codebase work with latest ObsPy, fixing tests
Expand Down
27 changes: 27 additions & 0 deletions pyproject.toml
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"

72 changes: 1 addition & 71 deletions setup.py
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()

0 comments on commit 802ae65

Please sign in to comment.