forked from camelot-dev/camelot
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] Versioning, centralize metadata, Flake8 fixes
- Loading branch information
Showing
4 changed files
with
3 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1 @@ | ||
VERSION = (0, 0, 1) | ||
PRERELEASE = None # alpha, beta or rc | ||
REVISION = None | ||
|
||
|
||
def generate_version(version, prerelease=None, revision=None): | ||
version_parts = [".".join(map(str, version))] | ||
if prerelease is not None: | ||
version_parts.append(f"-{prerelease}") | ||
if revision is not None: | ||
version_parts.append(f".{revision}") | ||
return "".join(version_parts) | ||
|
||
|
||
__title__ = "pypdf_table_extraction" | ||
__description__ = "PDF Table Extraction for Humans." | ||
__url__ = "https://pypdf-table-extraction.readthedocs.io/" | ||
__version__ = generate_version(VERSION, prerelease=PRERELEASE, revision=REVISION) | ||
__author__ = "Vinayak Mehta" | ||
__author_email__ = "[email protected]" | ||
__license__ = "MIT License" | ||
__version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters