Commit b6d9afc8 authored by James Coyle's avatar James Coyle

Version is now held in version.py file

parent e291a48b
Pipeline #1076 passed with stages
in 1 second
......@@ -31,7 +31,7 @@ set-env:
- echo "repository=https://testpypi.python.org/pypi"
- echo "username=" ${PYPI_USERNAME} >> ~/.pypirc
- echo "password=" ${PYPI_TEST_PASSWORD} >> ~/.pypirc
- cp ~/.pypirc /tmp/.pypirc
- chmod 600 ~/.pypirc
tags:
- storjapi
......
#!/usr/bin/env python3
from setuptools import setup
from setuptools import setup, find_packages
setup(name='storjstatus-client',
version=VERSION,
exec(open('storjstatus/version.py').read())
setup(name='storjstatus',
version=__version__,
description='Storj utility for reporting farmer statistics',
license='Apache2',
license='MIT',
packages=['storjstatus'],
version='0.2.0',
author='James Coyle',
author_email='[email protected]',
python_requires='>=3.5',
url='https://www.storjstatus.com/install-client',
install_requires=[
'requests==2.18.4',
'python-crontab==2.2.8',
'jstyleson==0.0.2',
],
packages=find_packages(),
entry_points={
'console_scripts': [
'storjstatus-register=storjstatus:register',
......
from storjstatus import storjstatus_send
from storjstatus import storjstatus_register
from storjstatus import storjstatus_common
from version import __version__
def send():
storjstatus_send.init_send()
......
......@@ -2,10 +2,12 @@ import os
import re
import subprocess
VERSION = '0.2.0'
CONFIGFILE = '/etc/storjstatus/config.json'
APIENDPOINT = 'https://www.storjstatus.com/api/'
exec(open('version.py').read())
def setup_env():
global ENV
......
__version__ = '0.2.0'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment