-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Define version number in pyproject.toml * Add uv lockfile to gitignore * Restructure package into src layout * Make version numbers variables * Fix publishing action * Redefine optional dependency groups * Update CLI docs to use new src layout * Update to codecov-action v5
- Loading branch information
Showing
53 changed files
with
42 additions
and
37 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,26 +1,34 @@ | ||
name: Publish package to PyPI | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
deploy: | ||
build-test: | ||
runs-on: ubuntu-latest | ||
env: | ||
uv_version: "0.5.2" | ||
python_version: "3.12" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: "0.5.2" | ||
version: ${{ env.uv_version }} | ||
- name: Build the project | ||
run: uv build --no-sources | ||
run: uv build --no-sources --python ${{ env.python_version }} | ||
- name: Sync only the test dependencies | ||
run: uv sync --no-install-project --extra test | ||
- name: Install and test source distribution | ||
run: | | ||
uv pip install dist/*.tar.gz | ||
uv run --no-sync pytest | ||
uv pip uninstall e3fp | ||
- name: Install and test wheel | ||
run: | | ||
uv pip install dist/*.whl | ||
uv run --no-sync pytest | ||
- name: Publish to PyPI | ||
run: uv publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} | ||
- name: Test package installation | ||
run: uv run --with e3fp --no-project -- python -c "import e3fp" | ||
run: uv publish --token ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ doc/_build/* | |
*egg* | ||
*.pyc | ||
*.so | ||
*.o | ||
*.o | ||
uv.lock |
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 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
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,4 @@ | ||
import importlib.metadata | ||
from .util import E3FPWarning, E3FPDeprecationWarning | ||
|
||
__version__ = importlib.metadata.version("e3fp") |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+35.3 KB
src/e3fp/fingerprint/metrics/__pycache__/array_metrics._dense_soergel-225.py312.1.nbc
Binary file not shown.
Binary file added
BIN
+1.29 KB
src/e3fp/fingerprint/metrics/__pycache__/array_metrics._dense_soergel-225.py312.nbi
Binary file not shown.
Binary file added
BIN
+66.2 KB
src/e3fp/fingerprint/metrics/__pycache__/array_metrics._sparse_soergel-246.py312.1.nbc
Binary file not shown.
Binary file added
BIN
+1.47 KB
src/e3fp/fingerprint/metrics/__pycache__/array_metrics._sparse_soergel-246.py312.nbi
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.