-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from FAST-HEP/BK_allow_object_default_backends
Allow the default backend to be an object rather than a string
- Loading branch information
Showing
8 changed files
with
74 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
|
||
## [Unreleased] | ||
|
||
## [0.4.0] - 2019-11-28 | ||
### Added | ||
- travis CI autodeployment to pypi | ||
|
||
### Changed | ||
- Default backend can be provided as a module / object instead of a string, issue #6 [@benkrikler](https://github.com/benkrikler) | ||
|
||
|
||
## [0.3.0] - 2019-07-27 |
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,3 +1,6 @@ | ||
import logging | ||
from .version import __version__, version_info | ||
logging.basicConfig() | ||
__version__ = "0.3.0" | ||
|
||
|
||
__all__ = ["__version__", "version_info"] |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""Defines version of codebase | ||
""" | ||
|
||
|
||
def split_version(version): | ||
"""Split a semantic version string into a version_info tuple | ||
""" | ||
result = (version,) | ||
for div in ".-": | ||
result = [tok.split(div) for tok in result] | ||
result = sum(result, []) | ||
return tuple(result) | ||
|
||
|
||
__version__ = '0.3.0' | ||
version_info = split_version(__version__) # noqa |
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,17 +1,31 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
"""The setup script.""" | ||
import os | ||
import setuptools | ||
|
||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
|
||
def get_version(): | ||
_globals = {} | ||
with open(os.path.join("fast_flow", "version.py")) as version_file: | ||
exec(version_file.read(), _globals) | ||
return _globals["__version__"] | ||
|
||
|
||
setuptools.setup( | ||
name="fast-flow", | ||
version="0.3.0", | ||
version=get_version(), | ||
author="Ben Krikler", | ||
author_email="[email protected]", | ||
description="YAML-based analysis flow description language", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://gitlab.cern.ch/fast-hep/public/fast-flow", | ||
url="https://github.com/fast-hep/fast-flow", | ||
packages=setuptools.find_packages(exclude=["tests"]), | ||
install_requires=['six', 'pyyaml'], | ||
#setup_requires=["pytest-runner"], | ||
|