-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from nomonosound/ij/pyproject
Provide pyproject.toml
- Loading branch information
Showing
7 changed files
with
57 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git_archival.txt export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
* Bump version in `numpy_minmax/__init__.py` | ||
* Bump version in `pyproject.toml` | ||
* `CC=clang pip install -e . && pytest` | ||
* Update CHANGELOG.md | ||
* Commit and push the change with a commit message like this: "Release vx.y.z" (replace x.y.z with the package version) | ||
* Wait for build workflow in GitHub Actions to complete | ||
* Download wheels artifact from the build workflow | ||
* Place all the fresh whl files in dist/ | ||
* `python -m twine upload dist/*` | ||
* Add a tag with name "vx.y.z" to the commit | ||
* Add a tag with name "x.y.z" to the commit | ||
* Go to https://github.com/nomonosound/numpy-minmax/releases and create a release where you choose the new tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[build-system] | ||
requires = ["setuptools>=68", "setuptools_scm[toml]>=7.0.1", "wheel", "cffi>=1.0.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "numpy-minmax" | ||
version = "0.1.0" | ||
description = "A fast python library for finding both min and max in a NumPy array" | ||
dependencies = [ | ||
"numpy>=1.21" | ||
] | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Multimedia :: Sound/Audio", | ||
"Topic :: Scientific/Engineering", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
urls = { "Homepage" = "https://github.com/nomonosound/numpy-minmax" } | ||
|
||
[tool.setuptools_scm] | ||
write_to = "numpy_minmax/_version.py" | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest"] | ||
|
||
[tool.cibuildwheel] | ||
test-requires = ["cffi", "pytest"] | ||
test-command = "pytest {project}/tests" | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["scripts", "tests", "wheelhouse"] | ||
|
||
[tool.pytest] | ||
testpaths = ["tests"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,5 @@ | ||
import codecs | ||
import os | ||
import re | ||
|
||
from setuptools import setup, find_packages | ||
|
||
with open("README.md", "r") as readme_file: | ||
long_description = readme_file.read() | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
|
||
def read(*parts): | ||
with codecs.open(os.path.join(here, *parts), "r") as fp: | ||
return fp.read() | ||
|
||
|
||
def find_version(*file_paths): | ||
version_file = read(*file_paths) | ||
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) | ||
if version_match: | ||
return version_match.group(1) | ||
raise RuntimeError("Unable to find version string.") | ||
|
||
from setuptools import setup | ||
|
||
setup( | ||
name="numpy-minmax", | ||
version=find_version("numpy_minmax", "__init__.py"), | ||
description=( | ||
"A fast python library for finding both min and max in a NumPy array" | ||
), | ||
license="MIT", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
packages=find_packages(exclude=["scripts", "tests"]), | ||
setup_requires=["cffi>=1.0.0"], | ||
tests_require=["pytest"], | ||
cffi_modules=["numpy_minmax/_minmax_cffi.py:ffibuilder"], | ||
install_requires=["numpy>=1.21"], | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Multimedia :: Sound/Audio", | ||
"Topic :: Scientific/Engineering", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
], | ||
url="https://github.com/nomonosound/numpy-minmax", | ||
) |