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

[BBPBGLIB-1125] GH forkflow for building a wheel #121

Merged
merged 45 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
70a1552
GH forkflow for building a wheel
atemerev Feb 6, 2024
5e95dd3
WIP: wheels to pure pip
atemerev Feb 6, 2024
359ab5c
build sdist script
atemerev Feb 6, 2024
d428b67
[BBPBGLIB-1120] Remove node loaders for MVD3 and NCS (#117)
WeinaJi Feb 7, 2024
5404337
[BBPBGLIB-1124] Remove hoc targets related code (#118)
jorblancoa Feb 9, 2024
54dcb52
Remove SynapseReader.mod and SynReaderNRN (#122)
WeinaJi Feb 9, 2024
9b904a8
[BBPBGLIB-1110] Error now raised when executeConfigure is returned wi…
atemerev Feb 13, 2024
456f374
[BBPBGLIB-1127] Remove SpikeWriter.mod and out.dat (#123)
jorblancoa Feb 13, 2024
237c763
WIP PyPI
atemerev Feb 13, 2024
1c80618
WIP
atemerev Feb 15, 2024
a379243
WIP PyPI
atemerev Feb 15, 2024
6fd55d6
WIP
atemerev Feb 19, 2024
3ae68cf
WIP twine
atemerev Feb 19, 2024
c062bab
WIP twine/build
atemerev Feb 21, 2024
9cf2d24
Merge branch 'main' into atemerev/pypi-publish
atemerev Feb 21, 2024
550cff0
Yet another WIP with needs: []
atemerev Feb 21, 2024
d37f728
WIP
atemerev Feb 21, 2024
adf68aa
WIP PyPI-action
atemerev Feb 23, 2024
ba15338
WIP PyPI cleanup
atemerev Feb 23, 2024
0ffea8b
PyPI password -> token
atemerev Feb 23, 2024
61943ba
WIP
atemerev Feb 23, 2024
b42a7d0
WIP
atemerev Feb 23, 2024
2b3f450
setuptools_scm.local_scheme = no-local-version
heerener Feb 23, 2024
1bdc6c8
WIP fetch depth
atemerev Feb 23, 2024
4d67905
WIP fetch depth - push test
atemerev Feb 23, 2024
307ba1c
WIP fetch depth - push test
atemerev Feb 23, 2024
4f465d4
fetch tags
atemerev Feb 23, 2024
fb23749
Python version quoted
atemerev Feb 26, 2024
354607d
Merge branch 'main' into atemerev/pypi-publish
atemerev Feb 26, 2024
4438c8a
Python version requirement, prod PyPI
atemerev Feb 27, 2024
f35039f
No building deps
atemerev Feb 27, 2024
d8ddd0a
cleanup
atemerev Feb 27, 2024
94f7157
missing password
atemerev Feb 27, 2024
4513060
missing password
atemerev Feb 27, 2024
c176270
No more distutils
atemerev Feb 28, 2024
9c4b590
Python action from github; ubuntu 22.04
atemerev Feb 29, 2024
aed9626
Python minimum version 3.9
atemerev Feb 29, 2024
af7ebe9
trigger on tags only; upload to prod pypi
atemerev Feb 29, 2024
e099c46
add manual trigger option
atemerev Feb 29, 2024
fbf09d2
Merge branch 'main' into atemerev/pypi-publish
atemerev Feb 29, 2024
c95917b
Different steps on PR and pushing to tags
atemerev Mar 4, 2024
77907cd
Revert "Different steps on PR and pushing to tags"
atemerev Mar 7, 2024
24ce2e5
Reverted to steps, upload on push to tags
atemerev Mar 7, 2024
135ccef
Merge branch 'main' into atemerev/pypi-publish
atemerev Mar 7, 2024
9b2742b
Merge branch 'main' into atemerev/pypi-publish
atemerev Mar 11, 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
40 changes: 40 additions & 0 deletions .github/workflows/publish_wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Neurodamus Wheels

on: [pull_request, push, workflow_dispatch]

jobs:
wheel:
runs-on: ubuntu-22.04
strategy:
matrix:
python_version: [3.11]
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 500
fetch-tags: true
- name: Build Wheel
run: |
cd $GITHUB_WORKSPACE
python${{ matrix.python_version }} -m pip install --upgrade build
# build wheel
python${{ matrix.python_version }} -m build .
atemerev marked this conversation as resolved.
Show resolved Hide resolved
- name: Test Wheel
run: |
cd $GITHUB_WORKSPACE
pip3 install tox
DIST_FILE=`ls dist/*whl` && tox --installpkg=$DIST_FILE -e ${{ matrix.python_version }}
- name: Upload Wheel
atemerev marked this conversation as resolved.
Show resolved Hide resolved
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
env:
PYPI_URL: ${{ secrets.PYPI_URL }}
PYPI_USER: ${{ secrets.PYPI_USER }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
pip3 install twine
python${{ matrix.python_version }} -m twine upload --username $PYPI_USER --password $PYPI_TOKEN dist/*
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies = [
"libsonata",
"psutil"
]
requires-python=">=3.9"

[project.optional-dependencies]
plotting=['matplotlib'] # only for Neurodamus HL API
Expand All @@ -39,14 +40,12 @@ Tracker = "https://github.com/BlueBrain/neurodamus/issues"
exclude=["tests"]

[tool.setuptools_scm]
local_scheme = "no-local-version"

[tool.pytest.ini_options]
addopts = "--verbose"
markers = ["slow: marks tests as slow"]

[tool.distutils.bdist_wheel]
universal = 1

[tool.flake8]
exclude = [".*", "__pycache__", ".eggs", "*.egg", "build", "dist", "docs", "venv", "*.egg-info", "_benchmarks", "core"]
extend-ignore = ["E127", "E221", "E226", "E701", "W503", "W504", "E731", "PT001", "PT023"]
Expand Down