Skip to content

Commit

Permalink
try to infer the version dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Nov 30, 2023
1 parent 8fd47cb commit 943df26
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
current_version = "0.0.1"
commit = "true"
tag = "true"
tag_name = "v{new_version}"
8 changes: 7 additions & 1 deletion pyproject.toml_
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"

[tool.bumpversion]
Expand All @@ -22,13 +22,19 @@ maintainers = [
description = "Streamlit component for PDF visualisation and manipulation"
readme = "README.md"

keywords = ["pdf", "viewer", "streamlit", "documents"]

dynamic = ['version']

[tool.setuptools_scm]

[tool.setuptools]
include-package-data = true
py-modules = []

[tool.setuptools.packages]
find = {namespaces = false}

[project.urls]
Homepage = "https://github.com/lfoppiano/streamlit-pdf-viewer"
Repository = "https://github.com/lfoppiano/streamlit-pdf-viewer"
Expand Down
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
bump_version = (this_directory / ".bumpversion.toml").read_text()
version = bump_version.split("\n")[0].split(" = ")[1].replace("\"", "")

setuptools.setup(
name="streamlit-pdf-viewer",
version="0.0.1",
version=version,
author="Luca Foppiano",
author_email="lucanoro@duck.com",
description="Streamlit component for PDF visualisation and manipulation",
Expand All @@ -17,16 +19,13 @@
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=["rag", "streamlit-component", "pdf-viewer", "documents"],
python_requires=">=3.6",
python_requires=">=3.7",
install_requires=[
# By definition, a Custom Component depends on Streamlit.
# If your component has other Python dependencies, list
# them here.
"streamlit >= 0.63",
"streamlit >= 0.63"
],
extras_require={
"devel": [
"wheel",
"wheel"
]
}
)

0 comments on commit 943df26

Please sign in to comment.