Skip to content

Commit

Permalink
Merge pull request #45 from astrofrog/release-pipeline
Browse files Browse the repository at this point in the history
Added Azure pipeline for doing releases
  • Loading branch information
astrofrog committed Sep 21, 2019
2 parents 3e84fb5 + 79f5e09 commit a96397a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -1,3 +1,4 @@
include pyproject.toml
include README.rst
include CHANGES.rst

Expand Down
20 changes: 20 additions & 0 deletions azure-pipelines.yml
@@ -1,3 +1,11 @@
resources:
repositories:
- repository: OpenAstronomy
type: github
endpoint: aperiosoftware
name: OpenAstronomy/azure-pipelines-templates
ref: master

jobs:

- template: azure-template.yml
Expand All @@ -16,3 +24,15 @@ jobs:
parameters:
name: Windows
os: windows

- template: publish.yml@OpenAstronomy
parameters:
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/') }}:
pypi_connection_name: 'pypi_endpoint'
targets:
- sdist
- wheels_universal
dependsOn:
- Linux
- MacOSX
- Windows
2 changes: 1 addition & 1 deletion azure-template.yml
Expand Up @@ -56,7 +56,7 @@ jobs:
displayName: Building docs

- script: |
python -m pip install -e . --user
python -m pip install . --user
python .validate-notebooks.py
displayName: Validating notebooks
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=30.3", "wheel"]
build-backend = 'setuptools.build_meta'
5 changes: 0 additions & 5 deletions setup.py
Expand Up @@ -5,14 +5,9 @@
import sys
from distutils.version import LooseVersion

import pip
import setuptools
from setuptools import setup

if LooseVersion(pip.__version__) < '18.0':
sys.stderr.write("ERROR: pip 18.0 or later is required by aas-timeseries\n")
sys.exit(1)

if LooseVersion(setuptools.__version__) < '30.3':
sys.stderr.write("ERROR: setuptools 30.3 or later is required by aas-timeseries\n")
sys.exit(1)
Expand Down

0 comments on commit a96397a

Please sign in to comment.