Skip to content

Commit

Permalink
Merge pull request #3 from jonasundderwolf/dependencies-update-and-co…
Browse files Browse the repository at this point in the history
…smetics

Dependencies update, pypi publishing and Python 3.8 support
  • Loading branch information
MRigal authored Apr 8, 2020
2 parents 9bf591b + 85a0ae0 commit e53ea68
Show file tree
Hide file tree
Showing 10 changed files with 1,466 additions and 680 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Build with Poetry & Upload 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@v1
with:
python-version: '3.x'
- name: Install Poetry
uses: dschep/[email protected]
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
poetry build
twine upload dist/*
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Linux
.*
!.gitignore
!.travis.yml
.git

# PyCharm
.idea

# vim
.*.sw[a-z]
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
dist: xenial
dist: bionic

language: python
python:
- 3.6
- 3.7
node_js: '8'
- 3.8
node_js: '10'

install:
- pip install -U tox-travis
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fallback-property
Requirements
============

- Python 3.6
- Python 3.6+


What is it?
Expand Down Expand Up @@ -181,7 +181,7 @@ dev dependencies.

Clone this repository and run ::

poetry develop
poetry install
poetry run pip install django

to create a virtual environment with all dependencies.
Expand Down
2 changes: 1 addition & 1 deletion fallback_property/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import functools
import logging
from typing import Type, TypeVar, Generic, Callable, Optional
from typing import Callable, Generic, Optional, Type, TypeVar

logger = logging.getLogger(__name__)

Expand Down
Loading

0 comments on commit e53ea68

Please sign in to comment.