Skip to content

Commit

Permalink
chore(ci): extra deploy info (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
elhoangvu committed Apr 16, 2024
1 parent 3902bd7 commit eeddf3d
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 20 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.isort]
profile = "black"
src_paths = ["src/dictrule"]
src_paths = ["src/dictrule", "src/dictrule/built_in_rules"]
honor_noqa = true

[tool.pytest.ini_options]
Expand Down
38 changes: 19 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,37 @@
"""

from pathlib import Path
from setuptools import setup

__title__ = "dictrule"
__description__ = "Python rules defined by a dict and a text generator from the rules"
__url__ = "https://github.com/elhoangvu/dictrule"
__version__ = "0.1.0"
__author__ = "Zooxy Le"
__author_email__ = "elhoangvu@gmail.com"
__license__ = "Apache-2.0"
__copyright__ = "Copyright Zooxy Le"
__readme__ = ""
this_directory = Path(__file__).parent

with open(file="README.md", mode="r", encoding="utf-8") as f:
readme = f.read()
about = {}
with open(
file=this_directory / "src" / "dictrule" / "__version__.py",
mode="r",
encoding="utf-8",
) as file:
exec(file.read(), about)

long_description = (this_directory / "README.md").read_text()

if __name__ == "__main__":
setup(
name=__title__,
version=__version__,
description=__description__,
long_description=__readme__,
name=about["__title__"],
version=about["__version__"],
description=about["__description__"],
long_description=long_description,
long_description_content_type="text/markdown",
author=__author__,
author_email=__author_email__,
url=__url__,
author=about["__author__"],
author_email=about["__author_email__"],
url=about["__url__"],
packages=["dictrule"],
package_data={"": ["LICENSE", "NOTICE"]},
package_dir={"": "src"},
include_package_data=True,
python_requires=">=3.7",
license=__license__,
license=about["__license__"],
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down
36 changes: 36 additions & 0 deletions src/dictrule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
from .generator import Generator
from .rule import Rule
from .context import Context
from .__version__ import (
__title__,
__description__,
__url__,
__version__,
__author__,
__author_email__,
__license__,
__copyright__,
)

from .exceptions import (
NoneValueException,
Expand All @@ -28,3 +38,29 @@
JoinEvalRule,
FormatRule,
)

__all__ = [
"Generator",
"Rule",
"Context",
"NoneValueException",
"InvalidTypeException",
"InvalidValueException",
"BlockRule",
"CommentRule",
"EvalRule",
"InlineRule",
"IndentRule",
"ForInRule",
"JoinBlockRule",
"JoinEvalRule",
"FormatRule",
"__title__",
"__description__",
"__url__",
"__version__",
"__author__",
"__author_email__",
"__license__",
"__copyright__",
]
9 changes: 9 additions & 0 deletions src/dictrule/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@
\__,_/_/\___/\__/_/ \__,_/_/\___/ |___/\___/_/ /____/_/\____/_/ /_/
"""

__title__ = "dictrule"
__description__ = "Python rules defined by a dict and a text generator from the rules"
__url__ = "https://github.com/elhoangvu/dictrule"
__version__ = "0.1.0"
__author__ = "Zooxy Le"
__author_email__ = "elhoangvu@gmail.com"
__license__ = "Apache-2.0"
__copyright__ = "Copyright Zooxy Le"

0 comments on commit eeddf3d

Please sign in to comment.