Skip to content

Commit

Permalink
Move setup configuration to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Dec 14, 2023
1 parent 011a3a6 commit c4f70cf
Show file tree
Hide file tree
Showing 2,186 changed files with 66 additions and 206 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r pythran/tests/requirements.txt
pip install pytest-xdist
sudo apt install libopenblas-dev ${{ matrix.cpp-version }}
if test ${{ matrix.python-version }} != 'pypy-3.9'; then pip install scipy ; fi
- name: Setup
run: |
python setup.py install
python -m pip install .
python -m pip install . 'pythran[test]'
printf '[compiler]\nblas=openblas\n' > ~/.config/.pythranrc
printf 'cflags=-std=c++11 -Wall -Werror -Wno-unknown-pragmas -Wno-unused-local-typedefs -Wno-cpp -Wno-deprecated-declarations -Wno-absolute-value -Wno-parentheses-equality\n' >> ~/.config/.pythranrc
- name: Testing minimal CLI
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r pythran/tests/requirements.txt scipy
pip install scipy
pip install pytest-xdist
sudo apt install libopenblas-dev ${{ matrix.cpp-version }}
- name: Setup
run: |
python setup.py install
python -m pip install .
python -m pip install . 'pythran[test]'
printf '[commpiler]\nblas=openblas\n' > ~/.pythranrc
- name: Testing documentation
run: |
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/icc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r pythran/tests/requirements.txt
pip install pytest-xdist
if test ${{ matrix.python-version }} != '3.10' ; then pip install scipy ; fi
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
apt search icc
sudo apt install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
sudo apt install libopenblas-dev
- name: Setup
run: |
python setup.py install
python -m pip install .
python -m pip install . 'pythran[test]'
printf '[compiler]\nblas=openblas\n' > ~/.pythranrc
- name: Testing minimal CLI
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r pythran/tests/requirements.txt scipy
pip install scipy
pip install pytest-xdist
sudo apt install libopenblas-dev ${{ matrix.cpp-version }}
- name: Setup
run: |
python setup.py install
python -m pip install .
python -m pip install . 'pythran[test]'
printf '[compiler]\nblas=openblas\n' > ~/.pythranrc
- name: Testing vectorized
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r pythran/tests/requirements.txt scipy
pip install scipy
pip install pythran-openblas pytest
- name: Setup
run: |
python setup.py install
python -m pip install .
python -m pip install . 'pythran[test]'
- name: Testing minimal CLI
run: |
pythran --version
Expand Down
6 changes: 4 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ include AUTHORS
include Changelog
include LICENSE
include README.rst
include requirements.txt
include docs/*
recursive-include third_party *
include pythran/*.cfg
recursive-include pythran/pythonic *
recursive-include pythran/boost *
recursive-include pythran/xsimd *
4 changes: 0 additions & 4 deletions docs/requirements.txt

This file was deleted.

48 changes: 48 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[project]
name = "pythran"
authors = [{name="Serge Guelton", email="serge.guelton@telecom-bretagne.eu"}]
license = {file = "LICENSE"}
description = "Ahead of Time compiler for numeric kernels"
requires-python = ">=3.7"
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: C++',
'Topic :: Software Development :: Compilers',
'Topic :: Software Development :: Code Generators'
]
dynamic = ["version", "readme", "dependencies"]

[project.urls]
Homepage = "https://github.com/serge-sans-paille/pythran"
Documentation = "https://pythran.readthedocs.io"
Changelog = "https://pythran.readthedocs.io/en/latest/Changelog.html"

[project.optional-dependencies]
doc = ["numpy", "nbsphinx", "scipy", "guzzle_sphinx_theme"]
test = ["ipython", "nbval", "cython", "wheel"]

[project.scripts]
pythran = "pythran.run:run"
pythran-config = "pythran.config:run"

[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools"]

[tool.setuptools]
packages = ['pythran', 'pythran.analyses', 'pythran.transformations',
'pythran.optimizations', 'omp', 'pythran.types']

[tool.setuptools.dynamic]
version = {attr = "pythran.version.__version__"}
description = {file = "pythran.version.__descr__"}
readme = {file = ["README.rst"]}
dependencies = {file = ["requirements.txt"]}
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.
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.
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.
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.
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.
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.
Loading

0 comments on commit c4f70cf

Please sign in to comment.