-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverted the setuptools dependency bump
CentOS 7 apparently still has a stone age setuptools version so the dependency can't be upgraded without breaking the ability of the package maintainers to create a native package. So an alternative method for providing the version information in the top level package's __init__ module was implemented. Closes #130
- Loading branch information
Showing
2 changed files
with
4 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# These will be removed in APScheduler 4.0. | ||
parsed_version = __import__('pkg_resources').get_distribution('APScheduler').parsed_version | ||
version_info = tuple(int(x) if x.isdigit() else x for x in parsed_version.public.split('.')) | ||
version = parsed_version.base_version | ||
release = __version__ = parsed_version.public | ||
del parsed_version | ||
release = __import__('pkg_resources').get_distribution('APScheduler').version.split('-')[0] | ||
version_info = tuple(int(x) if x.isdigit() else x for x in release.split('.')) | ||
version = __version__ = '.'.join(str(x) for x in version_info[:3]) |
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