Skip to content

Commit

Permalink
Add __version__
Browse files Browse the repository at this point in the history
Close #86
  • Loading branch information
serhii73 committed Feb 23, 2023
1 parent 7f287bb commit 8fd3ed1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 22 deletions.
7 changes: 7 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[bumpversion]
current_version = 0.3.0
commit = True
tag = True
tag_name = {new_version}

[bumpversion:file:number_parser/VERSION]
1 change: 1 addition & 0 deletions number_parser/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.3.0
6 changes: 5 additions & 1 deletion number_parser/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
from number_parser.parser import parse, parse_number, parse_ordinal, parse_fraction
import pkgutil

__version__ = (pkgutil.get_data(__package__, "VERSION") or b"").decode("ascii").strip()

del pkgutil
50 changes: 29 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages

from pathlib import Path

from setuptools import find_packages, setup

version = (Path(__file__).parent / "number_parser/VERSION").read_text("ascii").strip()


setup(
name='number-parser',
version='0.3.0',
description='parse numbers written in natural language',
long_description=open('README.rst', encoding="utf8").read() + "\n\n" + open('CHANGES.rst').read(),
author='Arnav Kapoor',
author_email='arnavk805@gmail.com',
url='https://github.com/arnavkapoor/number-parser',
packages=find_packages(exclude=['tests']),
name="number-parser",
version=version,
description="parse numbers written in natural language",
long_description=open("README.rst", encoding="utf8").read()
+ "\n\n"
+ open("CHANGES.rst").read(),
author="Arnav Kapoor",
author_email="arnavk805@gmail.com",
url="https://github.com/scrapinghub/number-parser/",
packages=find_packages(exclude=["tests"]),
install_requires=[
'attrs >= 17.3.0',
"attrs >= 17.3.0",
],
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'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',
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
],
)

0 comments on commit 8fd3ed1

Please sign in to comment.