From 7096ad37b29d4a052dc55f9e4a48e0bfdcc34fec Mon Sep 17 00:00:00 2001 From: sg495 Date: Sun, 12 Dec 2021 14:29:13 +0000 Subject: [PATCH] v0.1.1 --- setup.py => _setup.py | 5 ++--- bases/__init__.py | 2 ++ pypi-distrib-upload.bat | 6 +++--- pyproject.toml | 9 +++++++++ setup.cfg | 44 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 60 insertions(+), 6 deletions(-) rename setup.py => _setup.py (93%) create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/setup.py b/_setup.py similarity index 93% rename from setup.py rename to _setup.py index c7a134b..f78004e 100644 --- a/setup.py +++ b/_setup.py @@ -7,7 +7,7 @@ setuptools.setup( name="bases", - version="0.1.0.post2", + version="0.1.0.post3", author="hashberg", author_email="sg495@users.noreply.github.com", url="https://github.com/hashberg-io/bases", @@ -26,8 +26,7 @@ "Natural Language :: English", "Typing :: Typed", ], - package_data={"": [], - "bases": ["py.typed"], + package_data={"": ["py.typed"], }, install_requires=[ "typing_extensions" diff --git a/bases/__init__.py b/bases/__init__.py index 36f9062..55d1fc6 100644 --- a/bases/__init__.py +++ b/bases/__init__.py @@ -57,6 +57,8 @@ """ +__version__ = "0.1.1" + from . import encoding as encoding from . import alphabet as alphabet from .encoding import (base2, base16, base8, base10, base36, base58btc, base58flickr, base58ripple, diff --git a/pypi-distrib-upload.bat b/pypi-distrib-upload.bat index b752cfe..b714ec3 100644 --- a/pypi-distrib-upload.bat +++ b/pypi-distrib-upload.bat @@ -1,3 +1,3 @@ -python setup.py sdist bdist_wheel -python -m twine upload dist/* -pause \ No newline at end of file +py -m build +py -m twine upload --skip-existing dist/* +pause diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7bb7662 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,9 @@ +# pyproject.toml +[build-system] +requires = [ + "setuptools>=45", + "wheel", + "setuptools_scm>=6.2" +] +build-backend = "setuptools.build_meta" +[tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..3cc11cb --- /dev/null +++ b/setup.cfg @@ -0,0 +1,44 @@ +# https://packaging.python.org/en/latest/tutorials/packaging-projects/ +# https://setuptools.pypa.io/en/latest/userguide/declarative_config.html +# https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#setup-cfg + +[metadata] +name = bases +author = hashberg +author_email = sg495@users.noreply.github.com +description = Python library for general Base-N encodings. +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/hashberg-io/bases +project_urls = + Bug Tracker = https://github.com/hashberg-io/bases/issues +classifiers = # see https://pypi.org/classifiers/ + Development Status :: 4 - Beta + Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.6 + Operating System :: OS Independent + Natural Language :: English + Typing :: Typed + +[options] +packages = find: +python_requires = >=3.6 +install_requires = + typing_extensions + +[options.package_data] +* = py.typed + +[options.packages.find] +exclude = test + +[options.extras_require] +dev = + mypy + pylint + pytest + pytest-cov + base58