Skip to content

Commit

Permalink
Merge pull request #16 from nolanbconaway/pypi-publish
Browse files Browse the repository at this point in the history
Add pypi publish step when new release
  • Loading branch information
nolanbconaway authored Oct 5, 2019
2 parents b62be67 + adc2468 commit 8bd7d6a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Main Workflow
on: push

jobs:
lint_and_test:
name: Lint and Test
build:
name: Lint, Test, Publish

runs-on: ubuntu-latest
strategy:
max-parallel: 4
max-parallel: 2
matrix:
python-version: [3.6, 3.7]

Expand Down Expand Up @@ -45,3 +45,9 @@ jobs:
token: ${{secrets.CODECOV_TOKEN}}
name: ${{matrix.python-version}}
file: ./coverage.xml

- name: Build and Publish to PyPi
if: startsWith(github.event.ref, 'refs/tags') && matrix.python-version == 3.7
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: poetry publish --no-interaction --build -vvv -u __token__ -p $PYPI_TOKEN
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ snapshot.png
*.egg-info
.tox
old/
*.lock
*.lock
dist/
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "underground"
version = "0.2.7"
description = ""
version = "0.2.7.3"
description = "Utilities for NYC's realtime MTA data feeds."
license = "MIT"
readme = "readme.md"
repository = "https://github.com/nolanbconaway/underground"
keywords = ["nyc", "transit", "subway", "command-line"]
authors = ["Nolan Conaway <nolanbconaway@gmail.com>"]
packages = [{ include = "underground" }]

Expand Down
11 changes: 9 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,27 @@

[![GitHub Actions status](https://github.com/nolanbconaway/underground/workflows/Main%20Workflow/badge.svg)](https://github.com/nolanbconaway/underground/actions)
[![codecov](https://codecov.io/gh/nolanbconaway/underground/branch/master/graph/badge.svg)](https://codecov.io/gh/nolanbconaway/underground)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/underground)](https://pypi.org/project/underground/)
[![PyPI](https://img.shields.io/pypi/v/underground)](https://pypi.org/project/underground/)

This is a set of Python utilities that I use to deal with [real-time NYC subway data](https://datamine.mta.info/).

I usually want to know when trains are going to depart a specific stop along a specific train line, so right now the tools are mostly for that. But I tried to write them to support arbitrary functionality.

## Install

Not on pypi just yet, so:
``` sh
pip install underground
```

Or if you'd like to live dangerously:

``` sh
pip install git+https://github.com/nolanbconaway/underground.git#egg=underground
```

To request data from the MTA, you'll also need a free API key.[Register here](https://datamine.mta.info/user/register).
To request data from the MTA, you'll also need a free API key.
[Register here](https://datamine.mta.info/user/register).

## Python API

Expand Down

0 comments on commit 8bd7d6a

Please sign in to comment.