Skip to content

Commit 802ae65

Browse files
authored
Merge pull request #18 from adjtomo/update_install
Updates install procedures
2 parents 2828f44 + 2a420f2 commit 802ae65

File tree

3 files changed

+29
-72
lines changed

3 files changed

+29
-72
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Changelog
22
---------
3-
* **Pyflex 0.1.6** WIP
3+
* **Pyflex 0.2.0** *Jul 14th 2022*
44
* Ownership transfered to GitHub organization adjTomo
55
* WindowSelector now returns rejected windows
66
* Making codebase work with latest ObsPy, fixing tests

pyproject.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "pyflex"
7+
version = "0.2.0"
8+
description = "Python port of the FLEXWIN package"
9+
readme = "README.md"
10+
requires-python = ">=3.7"
11+
license = {file = "LICENSE.txt"}
12+
authors = [
13+
{name = "adjTomo Dev Team"},
14+
{email = "adjtomo@gmail.com"}
15+
]
16+
dependencies = [
17+
"obspy",
18+
]
19+
20+
[project.optional-dependencies]
21+
dev = ["pytest", "ipython", "ipdb", "flake8", "nose"]
22+
23+
[project.urls]
24+
homepage = "https://github.com/adjtomo/"
25+
documentation = "https://adjtomo.github.io/pyflex"
26+
repository = "https://github.com/adjtomo/pyflex"
27+

setup.py

Lines changed: 1 addition & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,3 @@
1-
#!/usr/bin/env python
2-
# -*- encoding: utf8 -*-
3-
import glob
4-
import inspect
5-
import io
6-
import os
7-
8-
from setuptools import find_packages
91
from setuptools import setup
102

11-
changelog = os.path.join(os.path.dirname(os.path.abspath(
12-
inspect.getfile(inspect.currentframe()))), "CHANGELOG.md")
13-
with open(changelog, "rt") as fh:
14-
changelog = fh.read()
15-
16-
long_description = """
17-
Source code: https://github.com/adjtomo/pyflex
18-
19-
Documentation: http://krischer.github.io/pyflex
20-
21-
%s""".strip() % changelog
22-
23-
24-
def read(*names, **kwargs):
25-
return io.open(
26-
os.path.join(os.path.dirname(__file__), *names),
27-
encoding=kwargs.get("encoding", "utf8")).read()
28-
29-
30-
setup(
31-
name="pyflex",
32-
version="0.2.0",
33-
license='GNU General Public License, Version 3 (GPLv3)',
34-
description="Python port of the FLEXWIN package",
35-
long_description=long_description,
36-
author="adjTomo Development Team",
37-
author_email="adjtomo@gmail.com",
38-
url="https://github.com/adjtomo/pyflex",
39-
packages=find_packages(),
40-
# packages=find_packages("pyflex"),
41-
# package_dir={"": "pyflex"},
42-
# py_modules=[os.path.splitext(os.path.basename(i))[0]
43-
# for i in glob.glob("pyflex/*.py")],
44-
include_package_data=True,
45-
zip_safe=False,
46-
classifiers=[
47-
# complete classifier list:
48-
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
49-
"Development Status :: 4 - Beta",
50-
"Intended Audience :: Developers",
51-
"Intended Audience :: Science/Research",
52-
"Operating System :: Unix",
53-
"Operating System :: POSIX",
54-
"Operating System :: Microsoft :: Windows",
55-
"Programming Language :: Python",
56-
"Programming Language :: Python :: 3",
57-
"Programming Language :: Python :: 3.5",
58-
"Programming Language :: Python :: 3.6",
59-
"Programming Language :: Python :: Implementation :: CPython",
60-
"Topic :: Scientific/Engineering",
61-
"Topic :: Scientific/Engineering :: Physics",
62-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
63-
],
64-
keywords=[
65-
"seismology", "flexwin", "science", "tomography", "inversion"
66-
],
67-
install_requires=[
68-
"obspy >= 1.0", "flake8", "pytest", "nose"
69-
],
70-
extras_require={
71-
"docs": ["sphinx", "ipython", "runipy"]
72-
}
73-
)
3+
setup()

0 commit comments

Comments
 (0)