-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,302 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
name: Python testing | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Testing on ${{matrix.os}} | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
# setuptools_scm requires a non-shallow clone of the repository | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Python package | ||
run: | | ||
python -m pip install pytest | ||
python -m pip install . | ||
- name: Run Python tests | ||
run: | | ||
python -m pytest |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,50 @@ | ||
[tool.poetry] | ||
name = "pypsbuilder" | ||
version = "2.5.0" | ||
description = "THERMOCALC front-end for constructing and analyzing PT pseudosections" | ||
authors = ["Ondrej Lexa <[email protected]>"] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
numpy = "^1.20" | ||
matplotlib = "^3.6" | ||
pyqt5 = "^5.15" | ||
scipy = "^1.10" | ||
networkx = "^3.2" | ||
shapely = "^2.0" | ||
tqdm = "^4.0" | ||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = "^7.4" | ||
black = "^24" | ||
|
||
[tool.poetry.scripts] | ||
ptbuilder = "pypsbuilder.psbuilders:ptbuilder" | ||
txbuilder = "pypsbuilder.psbuilders:txbuilder" | ||
pxbuilder = "pypsbuilder.psbuilders:pxbuilder" | ||
psshow = "pypsbuilder.psexplorer:ps_show" | ||
psiso = "pypsbuilder.psexplorer:ps_iso" | ||
psgrid = "pypsbuilder.psexplorer:ps_grid" | ||
psdrawpd = "pypsbuilder.psexplorer:ps_drawpd" | ||
tcinit = "pypsbuilder.tcinit:tcprojinit" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.black] | ||
line-length = 88 | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.toml | ||
|\.sh | ||
|\.git | ||
|\.ini | ||
)/ | ||
''' | ||
|
||
[[tool.poetry.source]] | ||
name = "pypi-public" | ||
url = "https://pypi.org/simple/" |
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
"get_tcapi", | ||
) | ||
|
||
__version__ = "2.4.2" | ||
__version__ = "2.5.0" | ||
__author__ = "Ondrej Lexa" | ||
__copyright__ = "© Ondrej Lexa 2024" | ||
__copyright__ = "© Ondrej Lexa 2016-2024" | ||
__email__ = "[email protected]" |
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
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 |
---|---|---|
|
@@ -15,15 +15,15 @@ | |
|
||
setup( | ||
name="pypsbuilder", | ||
version="2.4.2", | ||
version="2.5.0", | ||
description="THERMOCALC front-end for constructing and analyzing PT pseudosections", | ||
long_description=readme + "\n\n" + changelog, | ||
long_description_content_type="text/markdown", | ||
author="Ondrej Lexa", | ||
author_email="[email protected]", | ||
url="https://github.com/ondrolexa/pypsbuilder", | ||
license="MIT", | ||
python_requires=">=3.8", | ||
python_requires=">=3.9", | ||
packages=find_packages(), | ||
package_data={"pypsbuilder.images": ["*.png"]}, | ||
entry_points=""" | ||
|