|
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 |
9 | 1 | from setuptools import setup |
10 | 2 |
|
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