Skip to content

Commit 11f6114

Browse files
authored
Merge branch 'master' into modernize
2 parents 6dc3dc3 + 1f10a27 commit 11f6114

File tree

4 files changed

+74
-5
lines changed

4 files changed

+74
-5
lines changed

.github/workflows/pypi.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# SPDX-FileCopyrightText: none
2+
# SPDX-License-Identifier: CC0-1.0
3+
4+
name: Publish Python distributions to PyPI and TestPyPI
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches:
10+
- main
11+
- master
12+
tags:
13+
- 0.*
14+
- 1.*
15+
16+
jobs:
17+
build-n-publish:
18+
name: Build and publish Python distributions to PyPI and TestPyPI
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@master
22+
23+
- name: Get history and tags for SCM versioning to work
24+
run: |
25+
git fetch --prune --unshallow
26+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
27+
28+
- name: Set up Python 3.10
29+
uses: actions/setup-python@v3
30+
with:
31+
python-version: "3.10"
32+
33+
- name: Install pypa/build
34+
run: python -m pip install build twine --user
35+
36+
- name: Build binary wheel and a source tarball
37+
run: python -m build --sdist --wheel --outdir dist/ .
38+
39+
- name: Check wheels and source tarballs
40+
run: python -m twine check dist/*
41+
42+
# The project name os blocked by an other test project
43+
# - name: Publish distribution to Test PyPI
44+
# if: >-
45+
# github.event_name == 'push' &&
46+
# github.ref == 'refs/heads/main'
47+
# uses: pypa/gh-action-pypi-publish@release/v1
48+
# with:
49+
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
50+
# repository_url: https://test.pypi.org/legacy/
51+
# skip-existing: true
52+
#
53+
- name: Publish distribution to PyPI
54+
if: >-
55+
github.event_name == 'push' &&
56+
startsWith(github.ref, 'refs/tags')
57+
uses: pypa/gh-action-pypi-publish@release/v1
58+
with:
59+
password: ${{ secrets.PYPI_API_TOKEN }}

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.4.0
6+
rev: v4.5.0
77
hooks:
88
# Prevent giant files from being committed
99
- id: check-added-large-files
@@ -64,15 +64,15 @@ repos:
6464
- id: text-unicode-replacement-char
6565

6666
- repo: https://github.com/PyCQA/flake8
67-
rev: 6.0.0
67+
rev: 6.1.0
6868
hooks:
6969
- id: flake8
7070
additional_dependencies:
7171
- flake8-bugbear
7272
- flake8-implicit-str-concat
7373

7474
- repo: https://github.com/pre-commit/mirrors-mypy
75-
rev: v1.3.0
75+
rev: v1.6.0
7676
hooks:
7777
- id: mypy
7878
args: [--no-strict-optional, --ignore-missing-imports, --allow-untyped-global]

CHANGELOG.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ Changelog
66

77
.. note:: This version is not yet released and is under development.
88

9+
0.7 (2023-12-04)
10+
~~~~~~~~~~~~~~~~
11+
12+
* Add type hints
13+
* Update requirements to 3.6.2+
14+
* Update docs to use type hints
15+
* Update CI pipelines
16+
* Add automated upload to PyPI
17+
* Build wheels
18+
919
0.6 (2021-04-20)
1020
~~~~~~~~~~~~~~~~
1121

overpy/__about__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
__summary__ = "Python Wrapper to access the OpenStreepMap Overpass API"
1414
__uri__ = "https://github.com/DinoTools/python-overpy"
1515

16-
__version__ = "0.6"
16+
__version__ = "0.7"
1717

1818
__author__ = "PhiBo (DinoTools)"
1919
__email__ = ""
2020

2121
__license__ = "MIT"
22-
__copyright__ = f"Copyright 2014-2021 {__author__}"
22+
__copyright__ = f"Copyright 2014-2023 {__author__}"

0 commit comments

Comments
 (0)