Skip to content

Commit 90ff50d

Browse files
Merge branch 'release/0.2.8'
2 parents 5305313 + 5adf1b5 commit 90ff50d

File tree

288 files changed

+8386
-3608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+8386
-3608
lines changed

.codacy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ exclude_paths:
99
- '.github/**'
1010
- 'CODE_OF_CONDUCT.md'
1111
- 'CHANGELOG.md'
12+
- 'CONTRIBUTING.md'

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
pyrolite/_version.py export-subst
22

3-
*.ipynb filter=nbstripout
43
*.ipynb diff=jupyternotebook
54

65
*.svg binary

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,5 @@ venv.bak/
108108

109109
doc/examples/scratch\.py
110110

111-
# GEOROC Contents - this is automatically updated
112-
pyrolite/data/georoc/contents\.json
113-
114111
# local alphamelts install folder
115112
pyrolite/data/alphamelts/localinstall/*

.travis.yml

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
language: python
2-
os: linux
32
dist: bionic
4-
5-
jobs:
6-
include:
7-
- python: 3.6
8-
env: PYVERSION=36
9-
- python: 3.7
10-
env: PYVERSION=37
11-
- python: 3.8
12-
env: PYVERSION=38
3+
os: linux
4+
cache: pip
135

146
before_install:
157
- sudo apt-get install jq curl
168

179
install:
1810
- pip install -q pytest pytest-runner pytest-cov coverage codacy-coverage
1911
- pip install coveralls
20-
- pip install -e .[skl,stats] # install skl, statsmodels
12+
- pip install .[skl,stats] # install skl, statsmodels
2113

2214
script:
2315
- xvfb-run python setup.py test
@@ -26,3 +18,38 @@ after_success:
2618
- "ls -lr htmlcov"
2719
- coveralls # coverage to coveralls.io
2820
- python-codacy-coverage -r coverage.xml
21+
22+
jobs:
23+
allow_failures:
24+
- os: osx
25+
26+
include:
27+
- python: 3.6
28+
env: PYVERSION=36
29+
- python: 3.7
30+
env: PYVERSION=37
31+
- python: 3.8
32+
env: PYVERSION=38
33+
- os: osx
34+
language: sh
35+
env:
36+
- HOMEBREW_NO_INSTALL_CLEANUP=1
37+
- HOMEBREW_NO_ANALYTICS=1
38+
- PYVERSION=36
39+
before_cache:
40+
# - brew cleanup
41+
- rm -f "$HOME/Library/Caches/pip/log/debug.log"
42+
cache:
43+
directories:
44+
# - "$HOME/Library/Caches/Homebrew"
45+
- "$HOME/Library/Caches/pip"
46+
addons:
47+
homebrew:
48+
# update: true
49+
packages: python3
50+
before_install:
51+
- python3 -m pip install --upgrade virtualenv
52+
- virtualenv -p python3 --system-site-packages "$HOME/venv"
53+
- source "$HOME/venv/bin/activate"
54+
script:
55+
- python3 setup.py test

CONTRIBUTING.md

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Contributing
22

3-
43
The long-term aim of this project is to be designed, built and supported by (and for) the geochemistry community. In the present, the majority of the work involves
54
incorporating geological knowledge and frameworks into a practically useful core set of tools which can be later be expanded. As such, requests for features and bug reports are particularly valuable contributions, in addition to code and expanding the documentation. All individuals contributing to the project are expected to follow the [Code of Conduct](https://pyrolite.readthedocs.io/en/develop/dev/conduct.html), which outlines community expectations and
65
responsibilities.
@@ -10,35 +9,32 @@ Also, be sure to add your name or GitHub username to the
109

1110
**Note**: This project is currently in `beta`, and as such there's much work to be done.
1211

13-
Feature Requests
14-
-------------------------
12+
## Feature Requests
1513

1614
If you're new to Python, and want to implement a specific process, plot or framework as part of `pyrolite`, you can submit a [Feature Request](https://github.com/morganjwilliams/pyrolite/issues/new?assignees=morganjwilliams&labels=enhancement&template=feature-request.md).
1715
Perhaps also check the [Issues Board](https://github.com/morganjwilliams/pyrolite/issues) first to see if someone else has suggested something similar (or if something is in development), and comment there.
1816

19-
Bug Reports
20-
-------------------------
17+
## Bug Reports
2118

2219
If you've tried to do something with `pyrolite`, but it didn't work, and googling
2320
error messages didn't help (or, if the error messages are full of
2421
`pyrolite.XX.xx`), you can submit a [Bug Report](https://github.com/morganjwilliams/pyrolite/issues/new?assignees=morganjwilliams&labels=bug&template=bug-report.md).
2522
Perhaps also check the [Issues Board](https://github.com/morganjwilliams/pyrolite/issues) first to see if someone else is having the same issue, and comment there.
2623

27-
Contributing to Documentation
28-
------------------------------
24+
## Contributing to Documentation
2925

3026
The [documentation and examples](https://pyrolite.readthedocs.io) for `pyrolite`
3127
are gradually being developed, and any contributions or corrections would be greatly appreciated. Currently the examples are patchy, and any 'getting started' guides would be a helpful addition.
3228

3329
These pages serve multiple purposes:
34-
* A human-readable reference of the source code (compiled from docstrings).
35-
* A set of simple examples to demonstrate use and utility.
36-
* A place for developing extended examples
3730

38-
* Note: these examples could easily be distributed as educational resources showcasing the utility of programmatic approaches to geochemistry
31+
* A human-readable reference of the source code (compiled from docstrings).
32+
* A set of simple examples to demonstrate use and utility.
33+
* A place for developing extended examples
34+
35+
* Note: these examples could easily be distributed as educational resources showcasing the utility of programmatic approaches to geochemistry
3936

40-
Contributing Code
41-
-------------------------
37+
## Contributing Code
4238

4339
Code contributions are always welcome, whether it be small modifications or entire
4440
features. As the project gains momentum, check the [Issues Board](https://github.com/morganjwilliams/pyrolite/issues) for outstanding issues, features under development. If you'd like to contribute, but you're not so
@@ -51,16 +47,16 @@ changes back to into the project, push your changes to your remote fork, and the
5147

5248
Notes:
5349

54-
* See the [Installation page](https://pyrolite.readthedocs.io/en/develop/installation.html) for directions for installing extra dependencies for development, and the [Development page](https://pyrolite.readthedocs.io/en/develop/dev/development.html) for information on development environments and tests.
50+
* See the [Installation page](https://pyrolite.readthedocs.io/en/develop/installation.html) for directions for installing extra dependencies for development, and the [Development page](https://pyrolite.readthedocs.io/en/develop/dev/development.html) for information on development environments and tests.
5551

56-
* `pyrolite` development roughly follows a [`gitflow` workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow).
57-
`pyrolite/master` is only used for releases, and large separable features
58-
should be build on `feature` branches off `develop`.
52+
* `pyrolite` development roughly follows a [`gitflow` workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow).
53+
`pyrolite/master` is only used for releases, and large separable features
54+
should be build on `feature` branches off `develop`.
5955

60-
* Contributions introducing new functions, classes or entire features should
61-
also include appropriate tests where possible (see [Writing Tests](#writing-tests), below).
56+
* Contributions introducing new functions, classes or entire features should
57+
also include appropriate tests where possible (see [Writing Tests](#writing-tests), below).
6258

63-
* `pyrolite` uses [Black](https://github.com/python/black/) for code formatting, and submissions which have passed through `Black` are appreciated, although not critical.
59+
* `pyrolite` uses [Black](https://github.com/python/black/) for code formatting, and submissions which have passed through `Black` are appreciated, although not critical.
6460

6561

6662
Writing Tests

MANIFEST.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ include versioneer.py
22
include pyrolite/_version.py
33
include LICENSE
44
recursive-include pyrolite/data/Aitchison *
5-
include pyrolite/data/alphamelts/env.py
65
recursive-include pyrolite/data/geochem *
6+
recursive-include pyrolite/data/mineral *
77
recursive-include pyrolite/data/models *
88
recursive-include pyrolite/data/radii *
99
recursive-include pyrolite/data/timescale *
10-
recursive-include pyrolite/data/mineral *
11-
# recursive-exclude pyrolite/data/alphamelts/localinstall *
10+
recursive-include pyrolite/data/_config *
1211
# global-exclude __pycache__

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ geochemical variables (e.g. elements to oxides), functions for common plotting
1616
tasks (e.g. spiderplots, ternary diagrams, bivariate and ternary density diagrams),
1717
and numerous auxiliary utilities.
1818

19-
pyrolite's is principally developed for use use in geochemical research, but is also
19+
pyrolite's is principally developed for use in geochemical research, but is also
2020
well suited to being incorporated into university-level geochemistry and petrology
2121
classes which wish to include a little Python. The documentation is continually
2222
evolving, and more examples and tutorials will gradually be added (feel free to

docs/source/_templates/layout.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{% extends "!layout.html" %}
2+
3+
{% block menu %}
4+
{{ super() }}
5+
<a href="{{pathto('genindex.html', 1)}}">Index</a>
6+
{% endblock %}

docs/source/api/API.rst

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pyrolite\.geochem
4242

4343

4444
pyrolite\.comp
45-
---------------------
45+
-----------------
4646

4747
.. automodule:: pyrolite.comp
4848

@@ -56,7 +56,7 @@ pyrolite\.comp
5656
comp/impute
5757

5858
pyrolite\.mineral
59-
---------------------
59+
-------------------
6060

6161
.. automodule:: pyrolite.mineral
6262

@@ -66,14 +66,30 @@ pyrolite\.mineral
6666
mineral
6767

6868
pyrolite\.util
69-
-------------------------------
69+
----------------
7070

7171
.. automodule:: pyrolite.util
7272

7373
.. toctree::
7474
:maxdepth: 2
7575

76-
util
76+
util/general
77+
util/pd
78+
util/plot
79+
util/text
80+
util/web
81+
util/time
82+
util/math
83+
util/lambdas
84+
util/distributions
85+
util/synthetic
86+
util/missing
87+
util/units
88+
util/types
89+
util/meta
90+
util/skl
91+
util/classification
92+
util/log
7793

7894

7995
.. seealso:: `Extensions <../ext/extensions.html>`__

docs/source/api/util.rst

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)