Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

versioning and publishing workflow #9

Merged
merged 2 commits into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmccarty - we were debating between Beta, or Production/Stable -- what do you think?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Beta is fine for now given that we are just now open sourcing and might get some activity that would make things less stable.


# 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.