deploy only if tags (#43)

* add VERSION symlink

* deploy only on tags true
This commit is contained in:
Dave Gallant
2019-10-17 22:50:52 -04:00
committed by GitHub
parent 76769bb0a9
commit 727babbe7d
6 changed files with 17 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ jobs:
on:
branch: master
repo: davegallant/rfd
tags: true
provider: pypi
user: __token__
password:

View File

@@ -1,3 +1,6 @@
include requirements.txt
include requirements_dev.txt
include rfd/__version__.py
include rfd/VERSION
recursive-exclude * __pycache__
recursive-include tests *

1
VERSION Symbolic link
View File

@@ -0,0 +1 @@
rfd/VERSION

1
rfd/VERSION Normal file
View File

@@ -0,0 +1 @@
0.3.2

View File

@@ -1,4 +1,12 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
version = "0.3.2"
from os.path import dirname, abspath, join
def load_version():
with open(join(dirname(abspath(__file__)), "VERSION")) as handle:
return handle.read()
version = load_version()

View File

@@ -24,6 +24,7 @@ setup(
author="Dave Gallant",
description="CLI for RedFlagDeals.com",
entry_points={"console_scripts": ["rfd = rfd.__main__:cli"]},
include_package_data=True,
install_requires=REQUIREMENTS,
keywords="cli redflagdeals",
license="Apache License, Version 2.0",