Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Migrate to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
alviezhang committed Aug 17, 2020
1 parent c216cc5 commit f1dbb11
Show file tree
Hide file tree
Showing 10 changed files with 726 additions and 120 deletions.
38 changes: 33 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: python
install: "make"
os: linux
dist: focal

python:
- "3.5"
Expand All @@ -8,8 +9,35 @@ python:
- "3.8"
- "pypy3"

install:
- make install
before_install: pip install poetry
install: make install
script: make test
after_success: poetry run coveralls

script:
- make test
stages:
- lint
- test
- publish

jobs:
fast_finish: true
allow_failures:
- python: pypy3

include:
- stage: lint
python: 3.8
script:
- make lint
- stage: publish
script: skip
before_deploy:
- poetry config http-basic.pypi $PYPI_USERNAME $PYPI_PASSWORD
- poetry build
deploy:
provider: script
script: poetry publish
skip_cleanup: true
on:
tags: true
if: tag IS present
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [1.1.0] - 2020-08-17
A dummy version, NO CHANGES.


## [1.0.post2] - 2020-03-11
### Changed
- Dump version.


## [1.0.post1] - 2020-03-11
### Changed
- Fix import aftership problem [#15](https://github.com/AfterShip/aftership-sdk-python/issues/15).


## [1.0] - 2020-03-10
### Added
- Python 3.5+ support.
Expand All @@ -21,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Removed
- Python 2.X support.

[1.1.0]: https://github.com/AfterShip/aftership-sdk-python/releases/tag/1.1.0
[1.0.post2]: https://github.com/AfterShip/aftership-sdk-python/releases/tag/1.0.post2
[1.0.post1]: https://github.com/AfterShip/aftership-sdk-python/releases/tag/1.0.post1
[1.0]: https://github.com/AfterShip/aftership-sdk-python/releases/tag/1.0
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
.PHONY: docs clean build

install:
pip install --upgrade .
pip install -r requirements-dev.txt
poetry install

test:
cd tests && py.test
poetry run py.test --cov=aftership

record:
cd tests && py.test --vcr-record=new_episodes
poetry run py.test --vcr-record=new_episodes

flake8:
flake8
lint:
poetry run flake8 aftership

docs:
cd docs && make html
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"

build:
python setup.py sdist --formats=gztar
python setup.py sdist bdist_wheel
poetry build

clean:
-rm -r docs/_build
Expand Down
Loading

0 comments on commit f1dbb11

Please sign in to comment.