Skip to content

Commit

Permalink
Deploy to PyPI (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
glow-mdsol authored Feb 18, 2021
1 parent e18bc15 commit 9dbc1bd
Show file tree
Hide file tree
Showing 6 changed files with 380 additions and 274 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ language: python
cache: pip

python:
- 3.5
- 3.6
- 3.7
- 3.8
- pypy3
- 3.9

before_install:
- pip install poetry
Expand All @@ -34,12 +33,11 @@ jobs:
python: 3.8
script: skip
before_deploy:
- poetry config repositories.mdsol https://mdsol.jfrog.io/mdsol/api/pypi/pypi-local
- poetry config http-basic.mdsol $ARTIFACTORY_USERNAME $ARTIFACTORY_PASSWORD # Stored as Travis CI Environment Vars
- poetry config pypi-token.pypi $POETRY_PYPI_TOKEN_PYPI # this may be unnecessary
- poetry build
deploy:
provider: script
script: poetry publish -r mdsol
script: poetry publish
skip_cleanup: true
on:
tags: true
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.2.1
- Add autodeploy to PyPI
- Remove Support for EOL Python 3.5
- Remove PyPy support

# 1.2.0
- Change the default signing versions (`MAUTH_SIGN_VERSIONS` option) to `v1` only.

Expand Down
9 changes: 8 additions & 1 deletion mauth_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
__version__ = "1.2.0"
# Load the version from the project metatdata
try:
import importlib.metadata as importlib_metadata
except ModuleNotFoundError:
# needed for Python < 3.8
import importlib_metadata

__version__ = importlib_metadata.version(__name__)
Loading

0 comments on commit 9dbc1bd

Please sign in to comment.