Skip to content

Commit 86af29f

Browse files
committed
initial commit
0 parents  commit 86af29f

File tree

5 files changed

+131
-0
lines changed

5 files changed

+131
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.py[cod]
2+
__pycache__/
3+
4+
# build
5+
/*.egg*/
6+
/build/
7+
/dist/

.pre-commit-config.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
default_language_version:
2+
python: python3
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.1.0
6+
hooks:
7+
- id: check-added-large-files
8+
- id: check-case-conflict
9+
- id: check-docstring-first
10+
- id: check-executables-have-shebangs
11+
- id: check-toml
12+
- id: check-merge-conflict
13+
- id: check-yaml
14+
- id: debug-statements
15+
- id: end-of-file-fixer
16+
- id: mixed-line-ending
17+
- id: sort-simple-yaml
18+
- id: trailing-whitespace
19+
- repo: local
20+
hooks:
21+
- id: todo
22+
name: Check TODO
23+
language: pygrep
24+
args: [-i]
25+
entry: TODO
26+
types: [text]
27+
exclude: ^(.pre-commit-config.yaml|.github/workflows/test.yml)$
28+
- repo: https://gitlab.com/pycqa/flake8
29+
rev: 3.9.2
30+
hooks:
31+
- id: flake8
32+
args: [-j8]
33+
additional_dependencies:
34+
- flake8-broken-line
35+
- flake8-bugbear
36+
- flake8-comprehensions
37+
- flake8-debugger
38+
- flake8-isort
39+
- flake8-string-format
40+
- repo: https://github.com/google/yapf
41+
rev: v0.31.0
42+
hooks:
43+
- id: yapf
44+
args: [-i]
45+
- repo: https://github.com/PyCQA/isort
46+
rev: 5.10.1
47+
hooks:
48+
- id: isort

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cuvec-base
2+
==========
3+
4+
No-except installation of `cuvec <https://github.com/AMYPAD/CuVec>`_.
5+
6+
Won't fail during install if missing C++/CUDA compilers.

setup.cfg

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[metadata]
2+
name=cuvec-base
3+
version=0.0.0
4+
description=No-except installation of `cuvec`
5+
long_description=file: README.rst
6+
long_description_content_type=text/x-rst
7+
license=MPL 2.0
8+
url=https://github.com/AMYPAD/CuVec
9+
project_urls=
10+
Changelog=https://github.com/AMYPAD/CuVec/releases
11+
Documentation=https://amypad.github.io/CuVec
12+
author=Casper da Costa-Luis
13+
author_email[email protected]
14+
keywords=Python, C, C++, buffer, vector, array, CUDA, CPython, SWIG, extensions, API
15+
classifiers=
16+
Development Status :: 5 - Production/Stable
17+
Intended Audience :: Developers
18+
Environment :: GPU
19+
Environment :: GPU :: NVIDIA CUDA
20+
Intended Audience :: Education
21+
Intended Audience :: Science/Research
22+
License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
23+
Operating System :: Microsoft :: Windows
24+
Operating System :: POSIX :: Linux
25+
Programming Language :: C
26+
Programming Language :: C++
27+
Programming Language :: Python :: 3
28+
Programming Language :: Python :: 3.6
29+
Programming Language :: Python :: 3.7
30+
Programming Language :: Python :: 3.8
31+
Programming Language :: Python :: 3.9
32+
Programming Language :: Python :: 3.10
33+
Programming Language :: Python :: 3 :: Only
34+
Topic :: Software Development :: Libraries
35+
Topic :: Software Development :: Libraries :: Python Modules
36+
Topic :: Utilities
37+
[options]
38+
setup_requires=setuptools>=42
39+
python_requires=>=3.6
40+
41+
[flake8]
42+
max_line_length=99
43+
extend-ignore=E261
44+
exclude=.git,__pycache__,build,dist,.eggs
45+
46+
[yapf]
47+
spaces_before_comment=15, 20
48+
arithmetic_precedence_indication=true
49+
allow_split_before_dict_value=false
50+
coalesce_brackets=True
51+
column_limit=99
52+
each_dict_entry_on_separate_line=False
53+
space_between_ending_comma_and_closing_bracket=False
54+
split_before_named_assigns=False
55+
split_before_closing_bracket=False
56+
57+
[isort]
58+
profile=black
59+
line_length=99

setup.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import sys
2+
from subprocess import CalledProcessError, check_call
3+
4+
from setuptools import setup
5+
6+
try:
7+
check_call([sys.executable, '-m', 'pip', 'install', 'cuvec'])
8+
except CalledProcessError:
9+
setup()
10+
else:
11+
setup(install_requires=['cuvec'])

0 commit comments

Comments
 (0)