Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to poetry #21

Merged
merged 2 commits into from
Aug 17, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Migrate to poetry
  • Loading branch information
alviezhang committed Aug 17, 2020
commit 8dad5dd90a69d9398ccebb9e8c313e47e26035e4
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