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

Migrate from setup.cfg to pyproject.toml #1371

Merged
merged 4 commits into from
Dec 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 24 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[flake8]
select = C,E,F,W
ignore = E203,E231,E501,E741,W503,W504,C901
max-line-length = 88
per-file-ignores =
**/__init__.py:F401,E402,F403
aesara/tensor/linalg.py:F401,F403
aesara/scalar/basic_scipy.py:E402,F403,F401
aesara/graph/toolbox.py:E402,F403,F401
aesara/link/jax/jax_dispatch.py:E402,F403,F401
aesara/link/jax/jax_linker.py:E402,F403,F401
aesara/sparse/sandbox/sp2.py:F401
tests/tensor/test_math_scipy.py:E402
tests/sparse/test_basic.py:E402
tests/sparse/test_opt.py:E402
tests/sparse/test_sp2.py:E402
tests/sparse/test_utils.py:E402,F401
tests/sparse/sandbox/test_sp.py:E402,F401
tests/scalar/test_basic_sympy.py:E402
aesara/graph/rewriting/unify.py:F811
exclude =
versioneer.py
doc/
aesara/_version.py
14 changes: 12 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,25 @@ jobs:
python-version: "3.8"
- name: Build the sdist and the wheel
run: |
pip install wheel
python setup.py sdist bdist_wheel
python -m pip install -U pip
python -m pip install build
python -m build
- name: Check the sdist installs and imports
run: |
mkdir -p test-sdist
cd test-sdist
python -m venv venv-sdist
venv-sdist/bin/python -m pip install ../dist/aesara-*.tar.gz
venv-sdist/bin/python -c "import aesara;print(aesara.__version__)"
test -n "$(find . -name lazylinker_c.c)"
- name: Check the wheel installs and imports
run: |
mkdir -p test-wheel
cd test-wheel
python -m venv venv-wheel
venv-wheel/bin/python -m pip install ../dist/aesara-*.whl
venv-wheel/bin/python -c "import aesara;print(aesara.__version__)"
test -n "$(find . -name lazylinker_c.c)"
- uses: actions/upload-artifact@v2
with:
name: artifact
Expand Down
Loading