Skip to content

Commit

Permalink
Migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Baldanos committed Jul 20, 2024
1 parent 6a6f960 commit bd9141c
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 69 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/python-publish.yml

This file was deleted.

2 changes: 1 addition & 1 deletion pyHydrabus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
OUTPUT = 0

name = "pyHydrabus"
__version__ = "0.2.10"
__version__ = "0.2.11"
35 changes: 35 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[project]
name = "pyHydrabus"
dynamic = ["version"]
dependencies = [
"pyserial",
]
authors = [
{name = "Baldanos"},
]
maintainers = [
{name = "Baldanos"}
]
description = "Hydrabus BBIO python bindings"
readme = "README.md"
license = {file = "LICENSE"}
keywords = [ "Hydrabus" ]
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]

[project.urls]
Homepage = "https://www.hydrabus.com"
Documentation = "https://pyhydrabus.readthedocs.io"
Repository = "https://github.com/hydrabus/pyHydrabus"


[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools",
"pyserial",
]

3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[metadata]
version = attr: pyHydrabus.__version__

39 changes: 2 additions & 37 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019 Nicolas OBERLI
# Copyright 2024 Nicolas OBERLI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,42 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}


import setuptools

import pyHydrabus

with open("README.md", "r") as fh:
long_description = fh.read()

name = 'pyHydrabus'
version = str(pyHydrabus.__version__)
release = str(version)

setuptools.setup(
name=name,
version=pyHydrabus.__version__,
author="Baldanos",
author_email="[email protected]",
description="Hydrabus BBIO python bindings",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/hydrabus/pyhydrabus",
packages=setuptools.find_packages(),
install_requires=['pyserial'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
cmdclass=cmdclass,
command_options={
'build_sphinx': {
'project': ('setup.py', name),
'version': ('setup.py', version),
'release': ('setup.py', release),
'source_dir': ('setup.py', 'docs/source')}},
)
setuptools.setup()

0 comments on commit bd9141c

Please sign in to comment.