Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition to pyproject. #20

Open
wants to merge 1 commit into
base: dev-contrib
Choose a base branch
from
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
55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "py-ubjson"
dynamic = ["version"]
description="Universal Binary JSON encoder/decoder."
readme = { file = "README.md", content-type = "text/markdown" }
authors = [
{ name = "Iotic Labs Ltd", email = "info@iotic-labs.com" }
]
maintainers = [
{ name = "Iotic Labs Ltd", email = "vilnis.termanis@iotic-labs.com" }
]
license = { text = "Apache-2.0" }
keywords = ["ubjson", "ubj"]
classifiers = [
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'
]

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
where = ["."]
# Used in combination of the MANIFEST.in to exclude these two directories from the binary
# wheel.
exclude = ["src", "test"]

[tool.setuptools.dynamic]
version = { attr = "ubjson.__version__" }

[project.urls]
repository = "https://github.com/Iotic-Labs/py-ubjson"

[project.optional-dependencies]
dev = ["Pympler>=0.7,<0.8", "coverage>=4.5.3,<4.6"]
38 changes: 0 additions & 38 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
from distutils.errors import CCompilerError
from distutils.errors import DistutilsPlatformError, DistutilsExecError

from ubjson import __version__ as version


def load_description(filename):
script_dir = os.path.abspath(os.path.dirname(__file__))
Expand Down Expand Up @@ -72,24 +70,6 @@ def build_extension(self, ext):
# '-pedantic']

setup(
name='py-ubjson',
version=version,
description='Universal Binary JSON encoder/decoder',
long_description=load_description('README.md'),
long_description_content_type='text/markdown',
author='Iotic Labs Ltd',
author_email='info@iotic-labs.com',
maintainer='Iotic Labs Ltd',
maintainer_email='vilnis.termanis@iotic-labs.com',
url='https://github.com/Iotic-Labs/py-ubjson',
license='Apache License 2.0',
packages=['ubjson'],
extras_require={
'dev': [
'Pympler>=0.7 ,<0.8',
'coverage>=4.5.3,<4.6'
]
},
zip_safe=False,
ext_modules=([Extension(
'_ubjson',
Expand All @@ -98,22 +78,4 @@ def build_extension(self, ext):
# undef_macros=['NDEBUG']
)] if BUILD_EXTENSIONS else []),
cmdclass={"build_ext": BuildExtWarnOnFail},
keywords=['ubjson', 'ubj'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)