Skip to content

Commit

Permalink
Merge pull request #2 from yafshar/dev
Browse files Browse the repository at this point in the history
Update the installation procedure
  • Loading branch information
yafshar authored Mar 17, 2023
2 parents 735afa4 + cc4bc12 commit 3b5932f
Show file tree
Hide file tree
Showing 9 changed files with 1,339 additions and 319 deletions.
4 changes: 1 addition & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
environment:
matrix:
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38"
Expand All @@ -19,4 +17,4 @@ build: off

test_script:
- "%PYTHON%\\python.exe --version"
- "%PYTHON%\\python.exe -m tests"
- "%PYTHON%\\python.exe -m tests"
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xsum/_version.py export-subst
6 changes: 3 additions & 3 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Fast Exact Summation Using Small and Large Superaccumulators (XSUM)

[![Build Status](https://travis-ci.com/yafshar/xsum.svg?token=aY1dW9PfH9SMySdB6Pzy&branch=master)](https://travis-ci.com/yafshar/xsum)
[![Python package](https://github.com/yafshar/xsum/workflows/Python%20package/badge.svg)](https://github.com/yafshar/xsum/actions)
[![Windows Build status](https://ci.appveyor.com/api/projects/status/kd1sksf5t3kdsibn/branch/master?svg=true)](https://ci.appveyor.com/project/yafshar/xsum/branch/master)
[![PyPI](https://img.shields.io/pypi/v/xsum.svg)](https://pypi.python.org/pypi/xsum)
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[build-system]
requires = ["setuptools", "wheel", "pybind11", "versioneer[toml]"]
build-backend = "setuptools.build_meta"

[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "_version.py"
parentdir_prefix = ""

5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def build_extensions(self):
language='c++'
), ]

_cmdclass=versioneer.get_cmdclass()
_cmdclass['build_ext'] = BuildExt

setup(
name='xsum',
version=versioneer.get_version(),
Expand All @@ -111,7 +114,7 @@ def build_extensions(self):
keywords=['xsum'],
packages=find_packages(),
install_requires=['numpy'],
cmdclass={'build_ext': BuildExt},
cmdclass=_cmdclass,
ext_modules=xsum_modules,
zip_safe=False,
)
Loading

0 comments on commit 3b5932f

Please sign in to comment.