-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'networkx:main' into main
- Loading branch information
Showing
9 changed files
with
228 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Labels | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
|
||
env: | ||
LABELS: ${{ join( github.event.pull_request.labels.*.name, ' ' ) }} | ||
|
||
jobs: | ||
check-type-label: | ||
name: ensure type label | ||
runs-on: ubuntu-latest | ||
steps: | ||
- if: "contains( env.LABELS, 'type: ' ) == false" | ||
run: exit 1 |
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,18 @@ | ||
name: Milestone | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- closed | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
milestone_pr: | ||
name: attach to PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: scientific-python/attach-next-milestone-action@bc07be829f693829263e57d5e8489f4e57d3d420 | ||
with: | ||
token: ${{ secrets.MILESTONE_LABELER_TOKEN }} | ||
force: true |
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,34 @@ | ||
name: Build Wheel and Release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
pypi-publish: | ||
name: upload release to PyPI | ||
if: github.repository_owner == 'networkx' && startsWith(github.ref, 'refs/tags/v') && github.actor == 'jarrodmillman' && always() | ||
runs-on: ubuntu-latest | ||
# Specifying a GitHub environment is optional, but strongly encouraged | ||
environment: release | ||
permissions: | ||
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Build wheels | ||
run: | | ||
git clean -fxd | ||
pip install -U build | ||
python -m build --sdist --wheel | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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,48 @@ | ||
# nx-parallel 0.1 | ||
|
||
We're happy to announce the release of nx-parallel 0.1! | ||
|
||
## Enhancements | ||
|
||
- first commit, isolates and betweenness ([#2](https://github.com/networkx/nx-parallel/pull/2)). | ||
- Reconfigure so ParallelGraph stores original nx graph ([#9](https://github.com/networkx/nx-parallel/pull/9)). | ||
|
||
## Bug Fixes | ||
|
||
- bug fix : changed edge probability from 0.5 to p ([#13](https://github.com/networkx/nx-parallel/pull/13)). | ||
|
||
## Documentation | ||
|
||
- Update README for Clarity and Comprehension ([#16](https://github.com/networkx/nx-parallel/pull/16)). | ||
- Add release process documentation ([#19](https://github.com/networkx/nx-parallel/pull/19)). | ||
|
||
## Maintenance | ||
|
||
- add skeleton ([#1](https://github.com/networkx/nx-parallel/pull/1)). | ||
- Add basic test.yaml based on graphblas-algorithms ([#3](https://github.com/networkx/nx-parallel/pull/3)). | ||
- New name for repository ([#8](https://github.com/networkx/nx-parallel/pull/8)). | ||
- Clean up tests, add some minimal docs to readme ([#10](https://github.com/networkx/nx-parallel/pull/10)). | ||
- Use changelist ([#17](https://github.com/networkx/nx-parallel/pull/17)). | ||
- Use hatch as the build backend ([#20](https://github.com/networkx/nx-parallel/pull/20)). | ||
- Use trusted publisher ([#18](https://github.com/networkx/nx-parallel/pull/18)). | ||
|
||
## Contributors | ||
|
||
6 authors added to this release (alphabetically): | ||
|
||
- [@20kavishs](https://github.com/20kavishs) | ||
- Aditi Juneja ([@Schefflera-Arboricola](https://github.com/Schefflera-Arboricola)) | ||
- Dan Schult ([@dschult](https://github.com/dschult)) | ||
- Jarrod Millman ([@jarrodmillman](https://github.com/jarrodmillman)) | ||
- MD ASIFUL ALAM ([@axif0](https://github.com/axif0)) | ||
- Mridul Seth ([@MridulS](https://github.com/MridulS)) | ||
|
||
4 reviewers added to this release (alphabetically): | ||
|
||
- Aditi Juneja ([@Schefflera-Arboricola](https://github.com/Schefflera-Arboricola)) | ||
- Dan Schult ([@dschult](https://github.com/dschult)) | ||
- Jarrod Millman ([@jarrodmillman](https://github.com/jarrodmillman)) | ||
- Mridul Seth ([@MridulS](https://github.com/MridulS)) | ||
|
||
_These lists are automatically generated, and may not be complete or may contain | ||
duplicates._ |
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,59 @@ | ||
# Release process for `nx-parallel` | ||
|
||
## Introduction | ||
|
||
Example `version number` | ||
|
||
- 1.8.dev0 # development version of 1.8 (release candidate 1) | ||
- 1.8rc1 # 1.8 release candidate 1 | ||
- 1.8rc2.dev0 # development version of 1.8 release candidate 2 | ||
- 1.8 # 1.8 release | ||
- 1.9.dev0 # development version of 1.9 (release candidate 1) | ||
|
||
## Process | ||
|
||
- Set release variables: | ||
|
||
export VERSION=<version number> | ||
export PREVIOUS=<previous version number> | ||
export ORG="networkx" | ||
export REPO="nx-parallel" | ||
|
||
- Autogenerate release notes | ||
|
||
changelist ${ORG}/${REPO} v${PREVIOUS} main --version ${VERSION} | ||
|
||
- Put the output of the above command at the top of `CHANGELOG.md` | ||
|
||
- Update `__version__` in `nx_parallel/__init__.py`. | ||
|
||
- Commit changes: | ||
|
||
git add nx_parallel/__init__.py CHANGELOG.md | ||
git commit -m "Designate ${VERSION} release" | ||
|
||
- Tag the release in git: | ||
|
||
git tag -s v${VERSION} -m "signed ${VERSION} tag" | ||
|
||
If you do not have a gpg key, use -u instead; it is important for | ||
Debian packaging that the tags are annotated | ||
|
||
- Push the new meta-data to github: | ||
|
||
git push --tags origin main | ||
|
||
where `origin` is the name of the `github.com:networkx/nx-parallel` | ||
repository | ||
|
||
- Review the github release page: | ||
|
||
https://github.com/networkx/nx-parallel/tags | ||
|
||
- Update `__version__` in `nx_parallel/__init__.py`. | ||
|
||
- Commit changes: | ||
|
||
git add pyproject.toml | ||
git commit -m 'Bump version' | ||
git push origin main |
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,3 +1,5 @@ | ||
from .algorithms import * | ||
from .interface import * | ||
from .utils import * | ||
|
||
__version__ = "0.2rc0.dev0" |
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 @@ | ||
changelist==0.4 |