Skip to content
Open
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
82 changes: 82 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "kingdon"
version = "1.4.0"
description = "Pythonic Geometric Algebra Package"
readme = "README.rst"
requires-python = ">=3.8"
license = {text = "MIT license"}
authors = [
{name = "Martin Roelfs", email = "[email protected]"}
]
keywords = ["kingdon", "geometric algebra"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

dependencies = [
"numpy",
"sympy",
"anywidget",
]

[project.optional-dependencies]
dev = [
"pip>=21.1",
"bump2version==0.5.11",
"wheel==0.38.1",
"flake8==3.7.8",
"tox==3.14.0",
"coverage==4.5.4",
"Sphinx==1.8.5",
"twine==1.14.0",
"pytest==6.2.4",
]

docs = [
"sphinx",
"nbsphinx",
"ipykernel",
"symfit",
"matplotlib",
"clifford",
]

[project.urls]
Homepage = "https://github.com/tbuli/kingdon"
Repository = "https://github.com/tbuli/kingdon"

[tool.setuptools.packages.find]
where = ["."]
include = ["kingdon*"]

[tool.pytest.ini_options]
testpaths = ["tests"]
collect_ignore = ["setup.py"]

[tool.bumpversion]
current_version = "1.4.0"
commit = true
tag = false

[[tool.bumpversion.files]]
filename = "setup.py"
search = "version='{current_version}'"
replace = "version='{new_version}'"

[[tool.bumpversion.files]]
filename = "kingdon/__init__.py"
search = "__version__ = '{current_version}'"
replace = "__version__ = '{new_version}'"
19 changes: 0 additions & 19 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,21 +1,2 @@
[bumpversion]
current_version = 1.4.0
commit = True
tag = False

[bumpversion:file:setup.py]
search = version='{current_version}'
replace = version='{new_version}'

[bumpversion:file:kingdon/__init__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'

[bdist_wheel]
universal = 1

[flake8]
exclude = docs

[tool:pytest]
collect_ignore = ['setup.py']
43 changes: 2 additions & 41 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,6 @@

"""The setup script."""

from setuptools import setup, find_packages
from setuptools import setup

with open('README.rst', encoding='utf-8') as readme_file:
readme = readme_file.read()

with open('HISTORY.rst') as history_file:
history = history_file.read()

requirements = ['numpy', 'sympy', 'anywidget']

test_requirements = ['pytest>=3', ]

setup(
author="Martin Roelfs",
author_email='[email protected]',
python_requires='>=3.8',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
description="Pythonic Geometric Algebra Package",
install_requires=requirements,
license="MIT license",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='kingdon',
name='kingdon',
packages=find_packages(include=['kingdon', 'kingdon.*']),
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/tbuli/kingdon',
version='1.4.0',
zip_safe=False,
)
setup()