Skip to content

Commit

Permalink
Merge pull request #9 from capitalone/cicd
Browse files Browse the repository at this point in the history
versioning and publishing workflow
  • Loading branch information
dianelee217 authored Feb 24, 2021
2 parents de53001 + 987b4a9 commit 96fe107
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 65 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish python package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_REPOSITORY: pypi
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
4 changes: 2 additions & 2 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# executes the package tests.
#
# For more details: https://docs.github.com/en/actions/guides/building-and-testing-python
name: Python package using conda
name: Tests

on:
pull_request:
Expand Down Expand Up @@ -38,4 +38,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
pytest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ code format throughout the project. You can format without committing via
<td align="center"><a href="https://github.com/RyanSoley"><img src="https://avatars.githubusercontent.com/u/53409969?v=4" width="100px;" alt=""/><br /><sub><b>Ryan Soley</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/dianelee217"><img src="https://avatars.githubusercontent.com/u/67274829?v=4" width="100px;" alt=""/><br /><sub><b>Diane Lee</b></sub></a><br /></td>
</tr>
</table>
</table>
3 changes: 2 additions & 1 deletion rubicon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
Rubicon,
)

__version__ = "4.5.0"
__version__ = "0.1.0"

__all__ = [
"Artifact",
"Dataframe",
Expand Down
31 changes: 26 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from setuptools import find_packages, setup

from version import get_version

install_requires = [
"click>=7.1",
"dask[dataframe]>=2.12.0",
Expand All @@ -25,9 +23,9 @@

setup(
name="rubicon",
version=get_version(),
author="The Rubicon Team",
author_email="[email protected]",
version="0.1.0",
author="Joe Wolfe, Ryan Soley, Diane Lee, Mike McCarty, CapitalOne",
license='Apache License, Version 2.0',
description="an ML library for model development and governance",
packages=find_packages(),
include_package_data=True,
Expand All @@ -41,4 +39,27 @@
"rubicon_experiment = rubicon.intake_rubicon.experiment:ExperimentSource",
],
},
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',

# Indicate who your project is intended for
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',

'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Documentation',

# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: Apache Software License',

# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 3 or both.
'Programming Language :: Python :: 3',
],
)
56 changes: 0 additions & 56 deletions version.py

This file was deleted.

0 comments on commit 96fe107

Please sign in to comment.