Skip to content

Commit

Permalink
New workflows, prepare for release (#5)
Browse files Browse the repository at this point in the history
* Add publish workflow, prepare for release
  • Loading branch information
lmikolajczak authored Jul 3, 2021
1 parent 0425842 commit c2f648a
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: Build

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- name: Check out repository
uses: actions/checkout@v2
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish
on:
push:
tags:
- "v*"

jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: false
- name: Build package
run: |
poetry build
- name: Publish package to PYPI
run: |
poetry publish --username "$PYPI_USERNAME" --password "$PYPI_API_KEY"
env:
PYPI_USERNAME: __token__
PYPI_API_KEY: ${{ secrets.PYPI_API_KEY }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Łukasz Mikołajczak
Copyright (c) 2021 Łukasz Mikołajczak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ any code changes will be immediately reflected. Keep in mind that if you have py
running then you have to restart it.

You can also use `make lint` and `make test` as shortcuts to run linters and tests

### Changelog

v0.1.0 (2021-7-3):

* Initial release
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ version = "0.1.0"
description = "Simple Python module for calculating bounding box (bbox) from given GeoJSON object"
authors = ["Łukasz Mikołajczak <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/luqqk/geojson-bbox"
repository = "https://github.com/luqqk/geojson-bbox"
keywords = ["python", "gis", "geojson", "bbox"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: GIS",
]
include = [
"LICENSE",
]

[tool.poetry.dependencies]
python = "3.9.5"
Expand Down

0 comments on commit c2f648a

Please sign in to comment.