Commit 8edf2dbc authored by James Coyle's avatar James Coyle

Tweaks for build file

added long_description
parent 622b2da4
Pipeline #1082 failed
......@@ -9,7 +9,7 @@ variables:
stages:
- set-env
- deploy-test
- deploy
- cleanup
......@@ -24,23 +24,23 @@ set-env:
- echo " pypitest" >> ~/.pypirc
- echo "" >> ~/.pypirc
- echo "[pypi]" >> ~/.pypirc
- echo "repository=https://pypi.python.org/pypi" >> ~/.pypirc
- echo "username="${PYPI_USERNAME} >> ~/.pypirc
- echo "password="${PYPI_LIVE_PASSWORD} >> ~/.pypirc
- echo "username: "${PYPI_USERNAME} >> ~/.pypirc
- echo "password: "${PYPI_LIVE_PASSWORD} >> ~/.pypirc
- echo "" >> ~/.pypirc
- echo "[pypitest]" >> ~/.pypirc
- echo "repository=https://testpypi.python.org/pypi" >> ~/.pypirc
- echo "username="${PYPI_USERNAME} >> ~/.pypirc
- echo "password="${PYPI_TEST_PASSWORD} >> ~/.pypirc
- echo "repository: https://test.pypi.org/legacy/" >> ~/.pypirc
- echo "username: "${PYPI_USERNAME} >> ~/.pypirc
- echo "password: "${PYPI_TEST_PASSWORD} >> ~/.pypirc
- chmod 600 ~/.pypirc
tags:
- storjapi
deploy-test:
stage: deploy-test
stage: deploy
script:
- python setup.py bdist_wheel --universal
- echo twine upload --repository testpypi dist/*
- echo twine upload --repository pypitest dist/*
except:
- master
tags:
......@@ -49,11 +49,23 @@ deploy-test:
name: test
deploy-production:
stage: deploy
script:
- python setup.py bdist_wheel --universal
- echo twine upload --repository pypi dist/*
only:
- master
tags:
- storjapi
environment:
name: production
cleanup_pypirc:
stage: cleanup
when: always
script:
- echo rm -rf ~/.pypirc
- rm -rf ~/.pypirc
tags:
- storjapi
......@@ -2,14 +2,22 @@
from setuptools import setup
from pip.req import parse_requirements
import pypandoc
exec(open('storjstatus/version.py').read())
dependencies = parse_requirements('requirements.txt', session=False)
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(name='storjstatus',
version=__version__,
description='A utility for reporting Storj farmer statistics',
long_description=long_description,
license='MIT',
packages=['storjstatus'],
author='James Coyle',
......
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