Skip to content

Commit

Permalink
PR #14: prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
kwzrd authored Aug 25, 2020
2 parents 2966b99 + 9120f96 commit eda3e24
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish to PyPI

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install build tools & build
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_TOKEN }}
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include pypopulation/resources/*
22 changes: 22 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import setuptools

setuptools.setup(
name="pypopulation",
version="2020.1", # YYYY.MINOR
description="Find population for ISO 3166 alpha-2/3 country codes",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="kwzrd",
author_email="[email protected]",
url="https://github.com/kwzrd/pypopulation",
packages=setuptools.find_packages(),
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Typing :: Typed",
"Topic :: Utilities",
],
python_requires=">=3.5",
include_package_data=True,
)

0 comments on commit eda3e24

Please sign in to comment.