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: ...@@ -5,6 +5,25 @@ stages:
- test - test
- deploy - 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: deploy_staging:
stage: deploy stage: deploy
variables: variables:
...@@ -13,7 +32,6 @@ deploy_staging: ...@@ -13,7 +32,6 @@ deploy_staging:
script: script:
- pip install --user --upgrade setuptools wheel - pip install --user --upgrade setuptools wheel
- pip install -U twine - pip install -U twine
- cd source/
- python setup.py sdist bdist_wheel - python setup.py sdist bdist_wheel
- twine check dist/* - twine check dist/*
- twine upload --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ dist/* - twine upload --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*
...@@ -28,8 +46,7 @@ deploy_production: ...@@ -28,8 +46,7 @@ deploy_production:
script: script:
- pip install --user --upgrade setuptools wheel - pip install --user --upgrade setuptools wheel
- pip install -U twine - pip install -U twine
- cd source/ - python setup.py sdist bdist_wheel
- python source/setup.py sdist bdist_wheel
- twine check dist/* - twine check dist/*
- twine upload --skip-existing dist/* - twine upload --skip-existing dist/*
only: only:
...@@ -38,20 +55,6 @@ deploy_production: ...@@ -38,20 +55,6 @@ deploy_production:
unittests: unittests:
stage: test stage: test
script: script:
- conda env create -f environment.yaml - nosetests tests/ -v --nocapture
- source activate myenv
- nosetests source/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: ...@@ -4,6 +4,8 @@ dependencies:
- python>=3.6 - python>=3.6
- nose - nose
- setuptools - setuptools
- click
- wheel - wheel
- markdown
- twine - twine
- nodejs - nodejs
\ No newline at end of file
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 setuptools import find_packages, setup
from beads.meta import TOOL_NAME, VERSION import pathlib
from os import path HERE = pathlib.Path(__file__).parent
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: README = (HERE / "README.md").read_text()
long_description = f.read()
setup( setup(
name=TOOL_NAME, name='Beads',
long_description=long_description, version='0.0.2',
long_description=README,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
version=VERSION,
packages=find_packages(), packages=find_packages(),
include_package_data=True, include_package_data=True,
install_requires=['click', 'eel'], install_requires=['click', 'eel', 'markdown'],
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'beads = beads.main:beads' '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