Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Settings in the Code #1

Merged
merged 23 commits into from
Oct 29, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0ffb533
environment updated
mpatrou Oct 28, 2024
c7d1c54
package name added, mantid logger replaced with python logger, enviro…
mpatrou Oct 28, 2024
7537830
configuration, version, and meta updates for new repo
mpatrou Oct 28, 2024
a4fe3dc
notebooks/ removed, github actions updated
mpatrou Oct 28, 2024
90f41a6
unittest updated
mpatrou Oct 28, 2024
535db69
additonal checks added in unittest job
mpatrou Oct 28, 2024
c6d91bb
job renamed in unittest job
mpatrou Oct 28, 2024
71561df
check-wheel-contents added for checking the wheels
mpatrou Oct 28, 2024
318341f
typo on unittest fixed
mpatrou Oct 28, 2024
aeea91d
action test
mpatrou Oct 28, 2024
2d4e48d
update job names
mpatrou Oct 28, 2024
1910703
pull request setting removed
mpatrou Oct 29, 2024
f346f24
pre-commit errors fixed
mpatrou Oct 29, 2024
ea77e5a
coverage and badges
mpatrou Oct 29, 2024
f9bd812
twine check added on github action
mpatrou Oct 29, 2024
41cbb0a
prototype script added, excluded from pre-commit
mpatrou Oct 29, 2024
433a1ad
run pytest after package installed in editable mode in github actions…
mpatrou Oct 29, 2024
6df09b1
typo on github actions, and removed unused steps, updates
mpatrou Oct 29, 2024
48266f7
environment name updated on actions
mpatrou Oct 29, 2024
b1041ab
pyproject updated to point only to gui, readme update with developmen…
mpatrou Oct 29, 2024
b1052b8
action restored
mpatrou Oct 29, 2024
aa1f424
conda environment instructions added
mpatrou Oct 29, 2024
9bcaba7
readme instruction updates
mpatrou Oct 29, 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
Prev Previous commit
Next Next commit
notebooks/ removed, github actions updated
mpatrou committed Oct 28, 2024
commit a4fe3dc9b94032ff167750b9e51ba1bb7336f527
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ jobs:
echo "versioningit $(versioningit ../)"
# build the package
VERSION=$(versioningit ../) conda mambabuild --channel conda-forge --output-folder . .
conda verify noarch/mypackagename*.tar.bz2
conda verify noarch/hyspecplanningtools*.tar.bz2
- name: upload conda package to anaconda
shell: bash -l {0}
if: startsWith(github.ref, 'refs/tags/v')
@@ -43,7 +43,7 @@ jobs:
CONDA_LABEL="main"
if [ "${IS_RC}" = "true" ]; then CONDA_LABEL="rc"; fi
echo pushing ${{ github.ref }} with label $CONDA_LABEL
anaconda upload --label $CONDA_LABEL conda.recipe/noarch/mypackagename*.tar.bz2
anaconda upload --label $CONDA_LABEL conda.recipe/noarch/hyspecplanningtools*.tar.bz2
pypi-publish:
name: upload release to PyPI
27 changes: 0 additions & 27 deletions notebooks/example.ipynb

This file was deleted.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[project]
name = "examplepyapp"
description = "Example Python repo for neutrons"
name = "hyspecplanningtools"
description = "Polarization tool for neutrons"
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = [
# list all runtime dependencies here
]
license = { text = "MIT" }
keywords = ["neutrons", "example", "python"]
keywords = ["neutrons", "polarization", "single crystal", "powder"]
readme = "README.md"

[project.urls]
@@ -42,7 +42,7 @@ file = "src/hyspecplanningtools/_version.py"

[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*", "scripts*", "docs*", "notebooks*"]
exclude = ["tests*", "scripts*", "docs*"]

[tool.setuptools.package-data]
"*" = ["*.yml","*.yaml","*.ini"]