diff --git a/Pipfile b/Pipfile index 8f7b7d9..b3a31e8 100644 --- a/Pipfile +++ b/Pipfile @@ -12,6 +12,7 @@ lark = ">=1.0.0" pytest = ">=7.0.0" pytest-cov = ">=3.0.0" coverage = ">=6.5.0" +bump2version = ">=1.0.0" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index f6f13bb..1abdc9e 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "145ba65af98aef4e49db819567249a623df706f7be11c5fc554f58ad3bd3c245" + "sha256": "03efe3e19cd6e27377abb854d2afe62c4c946e6b7f3cd5d5839d8ab4bb537bf4" }, "pipfile-spec": 6, "requires": { @@ -51,6 +51,14 @@ "index": "pypi", "version": "==22.10.0" }, + "bump2version": { + "hashes": [ + "sha256:37f927ea17cde7ae2d7baf832f8e80ce3777624554a653006c9144f8017fe410", + "sha256:762cb2bfad61f4ec8e2bdf452c7c267416f8c70dd9ecb1653fd0bbb01fa936e6" + ], + "index": "pypi", + "version": "==1.0.1" + }, "cfgv": { "hashes": [ "sha256:c6a0883f3917a037485059700b9e75da2464e6c27051014ad85ba6aaa5884426", @@ -68,7 +76,6 @@ "version": "==8.1.3" }, "coverage": { - "extras": [], "hashes": [ "sha256:027018943386e7b942fa832372ebc120155fd970837489896099f5cfa2890f79", "sha256:11b990d520ea75e7ee8dcab5bc908072aaada194a794db9f6d7d5cfd19661e5a", @@ -133,11 +140,11 @@ }, "exceptiongroup": { "hashes": [ - "sha256:2ac84b496be68464a2da60da518af3785fff8b7ec0d090a581604bc870bdee41", - "sha256:affbabf13fb6e98988c38d9c5650e701569fe3c1de3233cfb61c5f33774690ad" + "sha256:4d6c0aa6dd825810941c792f53d7b8d71da26f5e5f84f20f9508e8f2d33b140a", + "sha256:73866f7f842ede6cb1daa42c4af078e2035e5f7607f0e2c762cc51bb31bbe7b2" ], "markers": "python_version < '3.11'", - "version": "==1.0.0" + "version": "==1.0.1" }, "filelock": { "hashes": [ @@ -203,11 +210,11 @@ }, "platformdirs": { "hashes": [ - "sha256:027d8e83a2d7de06bbac4e5ef7e023c02b863d7ea5d079477e722bb41ab25788", - "sha256:58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19" + "sha256:0cb405749187a194f444c25c82ef7225232f11564721eabffc6ec70df83b11cb", + "sha256:6e52c21afff35cb659c6e52d8b4d61b9bd544557180440538f255d9382c8cbe0" ], "markers": "python_version >= '3.7'", - "version": "==2.5.2" + "version": "==2.5.3" }, "pluggy": { "hashes": [ @@ -297,11 +304,11 @@ }, "setuptools": { "hashes": [ - "sha256:512e5536220e38146176efb833d4a62aa726b7bbff82cfbc8ba9eaa3996e0b17", - "sha256:f62ea9da9ed6289bfe868cd6845968a2c854d1427f8548d52cae02a42b4f0356" + "sha256:d0b9a8433464d5800cbe05094acf5c6d52a91bfac9b52bcfc4d41382be5d5d31", + "sha256:e197a19aa8ec9722928f2206f8de752def0e4c9fc6953527360d1c36d94ddb2f" ], "markers": "python_version >= '3.7'", - "version": "==65.5.0" + "version": "==65.5.1" }, "toml": { "hashes": [ @@ -316,7 +323,7 @@ "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc", "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f" ], - "markers": "python_version < '3.11'", + "markers": "python_full_version < '3.11.0a7'", "version": "==2.0.1" }, "types-attrs": { diff --git a/setup.cfg b/setup.cfg index fc470fc..8150b43 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,33 +1,34 @@ [options] package_dir = - = src + = src packages = find: python_requires = >= 3.8 install_requires = - click>=8.0.0 - pathspec>=0.9.0 - lark>=1.0.0 + click>=8.0.0 + pathspec>=0.9.0 + lark>=1.0.0 py_modules = mamushi [options.entry_points] console_scripts = - mamushi=mamushi:main + mamushi=mamushi:main [options.extras_require] dev = - black>=22.6.0 - mypy_extensions==0.4.3 - mypy>=0.900 - flake8==5.0.4 - pylint==2.14.5 - pytest>=7.0.0 - pytest-cov>=3.0.0 - coverage>=6.0.0 + black>=22.6.0 + mypy_extensions==0.4.3 + mypy>=0.900 + flake8==5.0.4 + pylint==2.14.5 + pytest>=7.0.0 + pytest-cov>=3.0.0 + coverage>=6.0.0 + bump2version>=1.0.0 [options.packages.find] where = src exclude = - tests + tests [metadata] name = mamushi @@ -35,4 +36,40 @@ description = Vyper formatter license = { text = "MIT" } long_description = file: README.md long_description_content_type = text/markdown -version = 0.0.1 +version = attr: mamushi.__version__.__version__ +url = https://github.com/benber86/mamushi +project_urls = + Source = https://github.com/benber86/mamushi + Tracker = https://github.com/benber86/mamushi/issues +classifiers = + Development Status :: 4 - Beta + Environment :: Console + Intended Audience :: Developers + License :: OSI Approved :: MIT License + Natural Language :: English + Operating System :: OS Independent + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 + Topic :: Software Development :: Quality Assurance + +[bumpversion] +current_version = 0.0.1-a0 +commit = False +tag = True +parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\-(?P[a-z]+)(?P\d+))? +serialize = + {major}.{minor}.{patch}-{release}{build} + {major}.{minor}.{patch} + +[bumpversion:part:release] +optional_value = release +values = + a + b + release + +[bumpversion:file:./src/__version__.py] + +[bumpversion:part:build] diff --git a/src/mamushi.py b/src/mamushi/__init__.py similarity index 98% rename from src/mamushi.py rename to src/mamushi/__init__.py index a114cdf..4669b8d 100644 --- a/src/mamushi.py +++ b/src/mamushi/__init__.py @@ -1,3 +1,4 @@ +from .__version__ import __version__ from datetime import datetime import io import sys @@ -6,7 +7,7 @@ from parsing.parser import Parser from utils.files import gen_vyper_files_in_dir import traceback -from typing import List, Sized +from typing import List from pathlib import Path import click from utils.output import out, diff, color_diff diff --git a/src/mamushi/__version__.py b/src/mamushi/__version__.py new file mode 100644 index 0000000..4561c69 --- /dev/null +++ b/src/mamushi/__version__.py @@ -0,0 +1 @@ +__version__ = "0.0.1-a0"