Skip to content

Commit 9dbc1bd

Browse files
authored
Deploy to PyPI (#27)
1 parent e18bc15 commit 9dbc1bd

File tree

6 files changed

+380
-274
lines changed

6 files changed

+380
-274
lines changed

.travis.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ language: python
33
cache: pip
44

55
python:
6-
- 3.5
76
- 3.6
87
- 3.7
98
- 3.8
10-
- pypy3
9+
- 3.9
1110

1211
before_install:
1312
- pip install poetry
@@ -34,12 +33,11 @@ jobs:
3433
python: 3.8
3534
script: skip
3635
before_deploy:
37-
- poetry config repositories.mdsol https://mdsol.jfrog.io/mdsol/api/pypi/pypi-local
38-
- poetry config http-basic.mdsol $ARTIFACTORY_USERNAME $ARTIFACTORY_PASSWORD # Stored as Travis CI Environment Vars
36+
- poetry config pypi-token.pypi $POETRY_PYPI_TOKEN_PYPI # this may be unnecessary
3937
- poetry build
4038
deploy:
4139
provider: script
42-
script: poetry publish -r mdsol
40+
script: poetry publish
4341
skip_cleanup: true
4442
on:
4543
tags: true

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.2.1
2+
- Add autodeploy to PyPI
3+
- Remove Support for EOL Python 3.5
4+
- Remove PyPy support
5+
16
# 1.2.0
27
- Change the default signing versions (`MAUTH_SIGN_VERSIONS` option) to `v1` only.
38

mauth_client/__init__.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
__version__ = "1.2.0"
1+
# Load the version from the project metatdata
2+
try:
3+
import importlib.metadata as importlib_metadata
4+
except ModuleNotFoundError:
5+
# needed for Python < 3.8
6+
import importlib_metadata
7+
8+
__version__ = importlib_metadata.version(__name__)

0 commit comments

Comments
 (0)