Skip to content
Snippets Groups Projects
Select Git revision
  • 32c6361626339067060ef9697e86ef14f8d3d593
  • master default protected
  • bump-Pillow
  • bump-humanize
  • bootstrap-cloud
  • bump-shapely
  • bump-pytest-mock
  • bump-zstandard
  • bump-pytest
  • bump-python-gnupg
  • bump-peewee
  • bump-mkdocstrings-python
  • bump-mkdocs-material
  • antora-build
  • bump-black
  • cache-use-arkindex-export
  • gl-pages protected
  • fix-ci
  • update-fixture-classifications
  • update-template-readme
  • bump-pymdown-extensions
  • 0.5.1b4
  • 0.5.1b3
  • 0.5.1b2
  • 0.5.1b1
  • 0.5.0
  • 0.5.0rc1
  • 0.5.0b3
  • 0.5.0b2
  • 0.5.0b1
  • 0.5.0a3
  • 0.5.0a2
  • 0.5.0a1
  • 0.4.0
  • 0.4.0rc6
  • 0.4.0rc5
  • 0.4.0rc4
  • 0.4.0rc3
  • 0.4.0rc2
  • 0.4.0rc1
  • 0.4.0b3
41 results

pyproject.toml

Blame
  • .gitlab-ci.yml 1.61 KiB
    image: python:3.5
    stages:
      - test
      - deploy
      - docs
    
    client-tests:
      stage: test
    
      script:
      - pip install .[test]
      - pytest
      - flake8
    
    client-deploy-pypi:
      stage: deploy
      when: manual
      only:
        - master@arkindex/api-client
      environment:
        name: pypi
        url: https://pypi.org/project/arkindex-client
    
      before_script:
        - pip install twine setuptools wheel
        - echo "[distutils]" > ~/.pypirc
        - echo "index-servers =" >> ~/.pypirc
        - echo "  pypi" >> ~/.pypirc
        - echo "[pypi]" >> ~/.pypirc
        - echo "repository=https://upload.pypi.org/legacy/" >> ~/.pypirc
        - echo "username=$PYPI_DEPLOY_USERNAME" >> ~/.pypirc
        - echo "password=$PYPI_DEPLOY_PASSWORD" >> ~/.pypirc
      script:
        - python setup.py sdist bdist_wheel
        - twine upload dist/* -r pypi
    
    client-deploy-testpypi:
      stage: deploy
      when: manual
      only:
        - branches@arkindex/api-client
      environment:
        name: testpypi
        url: https://test.pypi.org/project/arkindex-client
    
      before_script:
        - pip install twine setuptools wheel
        - echo "[distutils]" > ~/.pypirc
        - echo "index-servers =" >> ~/.pypirc
        - echo "  testpypi" >> ~/.pypirc
        - echo "[testpypi]" >> ~/.pypirc
        - echo "repository=https://test.pypi.org/legacy/" >> ~/.pypirc
        - echo "username=$PYPI_DEPLOY_USERNAME" >> ~/.pypirc
        - echo "password=$PYPI_DEPLOY_PASSWORD" >> ~/.pypirc
      script:
        - python setup.py sdist bdist_wheel
        - twine upload dist/* -r testpypi
    
    pages:
      stage: docs
      only:
        - master
      artifacts:
        paths:
          - public
      before_script:
        - pip install sphinx
      script:
        - cd docs
        - make html