Commit b605b0b8 authored by Adrian Wuillemet's avatar Adrian Wuillemet
Browse files
parents b7af045e d5e24c67
Pipeline #4511 passed with stage
in 55 seconds
......@@ -5,6 +5,25 @@ stages:
- test
- deploy
before_script:
- conda update conda -y
- conda env create -f environment.yaml
- source activate myenv
- pip install click
- pip install eel
- pip install markdown
- cd source
- cp README.md beads/resources/info/README.md
- npm config set strict-ssl false
- npm install -g typescript
- npm install -g sass
- npm install @types/d3 --prefix ts/
- ls beads/resources/ui/css/
- sass --no-source-map sass/gui.scss beads/resources/ui/css/gui.css
- ls beads/resources/ui/css/
- tsc -b ts/
deploy_staging:
stage: deploy
variables:
......@@ -13,7 +32,6 @@ deploy_staging:
script:
- pip install --user --upgrade setuptools wheel
- pip install -U twine
- cd source/
- python setup.py sdist bdist_wheel
- twine check dist/*
- twine upload --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*
......@@ -28,8 +46,7 @@ deploy_production:
script:
- pip install --user --upgrade setuptools wheel
- pip install -U twine
- cd source/
- python source/setup.py sdist bdist_wheel
- python setup.py sdist bdist_wheel
- twine check dist/*
- twine upload --skip-existing dist/*
only:
......@@ -38,20 +55,6 @@ deploy_production:
unittests:
stage: test
script:
- conda env create -f environment.yaml
- source activate myenv
- nosetests source/tests/ -v --nocapture
- nosetests tests/ -v --nocapture
compile:
stage: build
script:
- conda update conda
- conda env create -f environment.yaml
- source activate myenv
- cd source
- npm config set strict-ssl false
- npm install -g typescript
- npm install -g sass
- npm install @types/d3 --prefix ts/
- sass sass/gui.scss beads/resources/ui/css/gui.css
- tsc -b ts/
......@@ -4,6 +4,8 @@ dependencies:
- python>=3.6
- nose
- setuptools
- click
- wheel
- markdown
- twine
- nodejs
\ No newline at end of file
- nodejs
import os
import sys
sys.path.insert(0, os.path.dirname(__file__))
\ No newline at end of file
{"language": "python", "no-window": false, "port": 11000, "replace-existing": true, "skip-validation": false, "verbose": false}
\ No newline at end of file
{}
\ No newline at end of file
from setuptools import find_packages, setup
from beads.meta import TOOL_NAME, VERSION
import pathlib
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
setup(
name=TOOL_NAME,
long_description=long_description,
name='Beads',
version='0.0.2',
long_description=README,
long_description_content_type='text/markdown',
version=VERSION,
packages=find_packages(),
include_package_data=True,
install_requires=['click', 'eel'],
install_requires=['click', 'eel', 'markdown'],
entry_points={
'console_scripts': [
'beads = beads.main:beads'
......
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