-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): Set up auto-deployment to PyPI
- Loading branch information
1 parent
1fc20cc
commit c22ca19
Showing
8 changed files
with
86 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/github", | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
"publishCmd": "bash deploy.sh" | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
language: python | ||
|
||
python: | ||
- "3.6" | ||
|
||
jobs: | ||
include: | ||
- stage: test | ||
install: | ||
- pip install -r dev-requirements.txt | ||
script: | ||
- python ./pass_tests.py | ||
- stage: deploy | ||
if: branch = master AND (NOT type IN (pull_request)) | ||
before_install: | ||
- nvm install lts/* --latest-npm | ||
python: | ||
- "3.6" | ||
install: | ||
- pip install -r dev-requirements.txt | ||
- npm install @semantic-release/exec | ||
script: | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "ladybugbot" | ||
- npx semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
echo "Building distribution" | ||
python setup.py sdist bdist_wheel | ||
echo "Pushing new version to PyPi" | ||
twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
coverage==4.5.2 | ||
coveralls==1.5.1 | ||
pytest==4.1.0 | ||
pytest-cov==2.6.1 | ||
twine==1.13.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Disregard test running on Travis for now.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[metadata] | ||
license_file = LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import re | ||
import setuptools | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name="honeybee-grasshopper-core", | ||
use_scm_version = True, | ||
setup_requires=['setuptools_scm'], | ||
author="Ladybug Tools", | ||
author_email="[email protected]", | ||
description="Core Honeybee plugin for Grasshopper.", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/ladybug-tools/honeybee-grasshopper-core", | ||
packages=setuptools.find_packages(exclude=["samples"]), | ||
install_requires=[], | ||
classifiers=[ | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: Implementation :: IronPython", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Operating System :: OS Independent" | ||
], | ||
) |