-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes the need for creating / reading the .VERSION file
- Loading branch information
Showing
6 changed files
with
25 additions
and
47 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 |
---|---|---|
|
@@ -11,3 +11,5 @@ rpmbuild/ | |
.rpm-builder-flag | ||
.VERSION | ||
kubectl | ||
/receptorctl/AUTHORS | ||
/receptorctl/ChangeLog |
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 @@ | ||
include requirements.txt # Needs manual inclusion due to PBR bug |
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,3 @@ | ||
python-dateutil | ||
click | ||
pyyaml |
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 @@ | ||
[metadata] | ||
name = receptorctl | ||
author = Red Hat | ||
author-email = [email protected] | ||
summary = "Receptorctl is a front-end CLI and importable Python library that interacts with Receptor over its control socket interface." | ||
home-page = https://github.com/project-receptor/receptor/tree/devel/receptorctl | ||
description-file = README.md | ||
description-content-type = text/markdown | ||
|
||
[entry_points] | ||
console_scripts = | ||
receptorctl = receptorctl:run | ||
|
||
[files] | ||
packages = | ||
receptorctl |
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,50 +1,8 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
import subprocess | ||
from setuptools import setup, find_packages | ||
|
||
with open('README.md', 'r') as f: | ||
long_description = f.read() | ||
|
||
verfile = None | ||
for fn in ['.VERSION', '../.VERSION']: | ||
if os.path.exists(fn): | ||
verfile = fn | ||
break | ||
|
||
if verfile is None: | ||
subprocess.run(["make", "version"], cwd="../") | ||
verfile = '../.VERSION' | ||
|
||
if not os.path.exists(verfile): | ||
raise IOError("Version file not found.") | ||
|
||
with open(verfile, 'r') as f: | ||
version = f.readline().rstrip('\n\r') | ||
from setuptools import setup | ||
|
||
setup( | ||
name="receptorctl", | ||
version=version, | ||
author='Red Hat', | ||
url="https://github.com/project-receptor/receptor/receptorctl", | ||
license='APL 2.0', | ||
packages=find_packages(), | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
install_requires=[ | ||
"setuptools", | ||
"python-dateutil", | ||
"click", | ||
"pyyaml" | ||
], | ||
zip_safe=False, | ||
entry_points={ | ||
'console_scripts': [ | ||
'receptorctl=receptorctl:run' | ||
] | ||
}, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
], | ||
setup_requires=['pbr'], | ||
pbr=True, | ||
) |