-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from willow-ahrens/revert-2-build-update
Revert "BLD: Move build to setuptools"
- Loading branch information
Showing
15 changed files
with
749 additions
and
109 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publish to PyPI | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: pip install toml | ||
- name: Get version | ||
run: echo "VERSION=$(python -c 'import toml; print(toml.load(\"pyproject.toml\")[\"tool\"][\"poetry\"][\"version\"])')" >> $GITHUB_ENV | ||
- name: Build and publish to pypi | ||
uses: JRubics/poetry-publish@v1.17 | ||
with: | ||
pypi_token: ${{ secrets.PYPI_TOKEN }} | ||
- name: Create Release | ||
uses: actions/create-release@v1 | ||
if: success() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ env.VERSION }} | ||
release_name: Release v${{ env.VERSION }} | ||
draft: false | ||
prerelease: false |
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 |
---|---|---|
@@ -1,34 +1,39 @@ | ||
# finch-tensor | ||
# Finch | ||
|
||
This is the beginnings of a sparse tensor library for Python, backed by the | ||
[Finch.jl](https://github.com/willow-ahrens/Finch.jl) tensor compiler. | ||
|
||
## Installation | ||
|
||
`finch-tensor` is available on PyPi, and can be installed with pip: | ||
Finch is available on PyPi, and can be installed with pip: | ||
```bash | ||
pip install finch-tensor | ||
pip install finch | ||
``` | ||
|
||
## Contributing | ||
|
||
### Local setup | ||
### Packaging | ||
|
||
`conda` can be used for creating a local development setup: | ||
Finch uses [poetry](https://python-poetry.org/) for packaging. | ||
|
||
To install for development, clone the repository and run: | ||
```bash | ||
git clone https://github.com/willow-ahrens/finch-tensor.git | ||
cd finch-tensor/ | ||
conda create --name finch-tensor-dev python=3.9 | ||
conda activate finch-tensor-dev | ||
pip install . | ||
poetry install --with test | ||
``` | ||
to install the current project and dev dependencies. | ||
|
||
### Pre-commit hooks | ||
|
||
To add pre-commit hooks, run: | ||
```bash | ||
poetry run pre-commit install | ||
``` | ||
|
||
### Testing | ||
|
||
`finch-tensor` uses [pytest](https://docs.pytest.org/en/latest/) for testing. To run the | ||
Finch uses [pytest](https://docs.pytest.org/en/latest/) for testing. To run the | ||
tests: | ||
|
||
```bash | ||
pytest tests | ||
poetry run pytest | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.