Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
0b22ce3
bump actions versions
kip-hart Jun 25, 2024
1306f48
Update ossar-analysis.yml
kip-hart Jun 25, 2024
929a511
Update python_package.yaml
kip-hart Jun 25, 2024
e9efd98
make pluggy an explicit test dependency
kip-hart Jun 25, 2024
599653f
remove pluggy
kip-hart Dec 30, 2024
7ab846e
revert previous
kip-hart Dec 31, 2024
d883070
update pytest call
kip-hart Dec 31, 2024
943cdaf
add pytest-metadata
kip-hart Dec 31, 2024
cfaf2ec
add pythonpath echo
kip-hart Dec 31, 2024
9b62488
force upgrade pluggy
kip-hart Dec 31, 2024
46d8b4a
downgrade pytest
kip-hart Dec 31, 2024
f9f7335
set pytest to 7.1.3
kip-hart Dec 31, 2024
aba74d2
downgrade pytest to 6.2.5
kip-hart Dec 31, 2024
c55afea
use fixed numpy version
kip-hart Dec 31, 2024
8c08d2b
avoid numpy 2.0
kip-hart Dec 31, 2024
5baa492
revert other attempts to fix
kip-hart Dec 31, 2024
c7329ee
added python -m back
kip-hart Dec 31, 2024
7ac7d46
add pluggy upgrade
kip-hart Dec 31, 2024
15d1b32
specify pytest version
kip-hart Dec 31, 2024
07a8832
remove pluggy upgrade
kip-hart Dec 31, 2024
7281aeb
remove python -m from pytest call
kip-hart Dec 31, 2024
e70a935
try later pytest versions
kip-hart Dec 31, 2024
cbc7d64
try <7 for pytest version
kip-hart Dec 31, 2024
2336ce6
lock down pytest version
kip-hart Dec 31, 2024
bca22cb
update python versions
kip-hart Dec 31, 2024
786ecd2
remove 3.13 due to pyvoro build fail
kip-hart Dec 31, 2024
3cc4027
remove 3.8 from supported versions
kip-hart Dec 31, 2024
2bd767f
setuptools version snyk recommendation
kip-hart Dec 31, 2024
0eb10f8
add zipp from snyk
kip-hart Dec 31, 2024
ef7287a
update sphinx version
kip-hart Dec 31, 2024
b4f0907
pin to last v5 of sphinx
kip-hart Dec 31, 2024
6c7cc11
synk fix for docs with zipp
kip-hart Dec 31, 2024
a9042fc
or higher on zipp
kip-hart Dec 31, 2024
0a17500
snyk setuptools version bump
kip-hart Dec 31, 2024
be31ce3
add urllib to docs requirements per snyk
kip-hart Dec 31, 2024
f54ff0e
use latest versions for actions
kip-hart Dec 31, 2024
81acde2
rename cumtrapz
kip-hart Dec 31, 2024
1863b44
Update requirements.txt for scipy cumtrapz name change
kip-hart Dec 31, 2024
d191fd5
revert previous
kip-hart Dec 31, 2024
82003db
try to fix missing reference warning
kip-hart Dec 31, 2024
5ff337e
add requests to docs reqs per snyk
kip-hart Dec 31, 2024
7a0a377
fix TOC depth for API
kip-hart Dec 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@main
with:
python-version: '3.10'
- name: Setup Linux Environment
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
cd -
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@main
with:
name: microstructpy_${{ matrix.doc-type }}_documentation
path: ${{ env.art_path }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ossar-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
# Checkout your code repository to scan
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@main
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand All @@ -29,17 +29,17 @@ jobs:

# Install dotnet, used by OSSAR
- name: Install .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@main
with:
dotnet-version: '6.0.x'

# Run open source static analysis tools
- name: Run OSSAR
uses: github/ossar-action@v1
uses: github/ossar-action@main
id: ossar

# Upload results to the Security tab
- name: Upload OSSAR results
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@main
with:
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
14 changes: 7 additions & 7 deletions .github/workflows/python_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
python-version: [3.9, '3.10', '3.11', '3.12']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -30,7 +30,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
pip install flake8 pytest pytest-cov coveralls
pip install flake8 pytest==6.2.5 pytest-cov coveralls
- name: Install package requirements
run: pip install -r requirements.txt
- name: Install package
Expand All @@ -56,13 +56,13 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@main
with:
python-version: '3.x'
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@main
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
Expand Down
7 changes: 5 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ gmsh==4.11.1
matplotlib>=3.7.3
numpy>=1.24.4
pybind11==2.4.3
setuptools>=65.5.1
sphinx==4.2.0
requests>=2.32.0 # not directly required, pinned by Snyk to avoid a vulnerability
setuptools>=70.0.0
sphinx==5.3.0
sphinx-gallery==0.8.1
urllib3>=2.2.2 # not directly required, pinned by Snyk to avoid a vulnerability
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability
1 change: 1 addition & 0 deletions docs/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ API
===

.. toctree::
:maxdepth: 2

cli
geometry/index
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ matplotlib>=3.7.3
pybind11==2.4.3
pygmsh==7.1.17
MeshPy==2022.1.3
numpy>=1.24.4
numpy>=1.24.4,<2.0
pyquaternion==0.9.5
pyvoro-mmalahe==1.3.4
scipy>=1.10.1
setuptools>=65.5.1
setuptools>=70.0.0
xmltodict==0.12.0
tox==3.14.0
lsq-ellipse==2.0.1
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def find_version(*fname):
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
Expand Down
2 changes: 1 addition & 1 deletion src/microstructpy/examples/grain_neighborhoods.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
dx = np.insert(np.diff(x_perim), 0, 0)
dy = np.insert(np.diff(y_perim), 0, 0)
ds = np.sqrt(dx * dx + dy * dy)
arc_len = scipy.integrate.cumtrapz(ds, x=t_perim, initial=0)
arc_len = scipy.integrate.cumulative_trapezoid(ds, x=t_perim, initial=0)
eq_spaced = arc_len[-1] * np.arange(n) / n
x_pts = np.interp(eq_spaced, arc_len, x_perim)
y_pts = np.interp(eq_spaced, arc_len, y_perim)
Expand Down
2 changes: 1 addition & 1 deletion src/microstructpy/geometry/ellipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def best_fit(self, points):
points (list or numpy.ndarray): An Nx2 list of points to fit.
Returns:
.Ellipse: An instance of the class that best fits the points.
Ellipse: An instance of the class that best fits the points.
.. _`least-squares-ellipse-fitting`: https://github.com/bdhammel/least-squares-ellipse-fitting
Expand Down
Loading