Skip to content

Commit

Permalink
Merge pull request #28 from pycontribs/master
Browse files Browse the repository at this point in the history
Configure packaging and release
  • Loading branch information
ssbarnea authored Feb 7, 2020
2 parents a80869b + 45cf1ea commit 0ef8e56
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ doc/build/
# pbr stuff
AUTHORS
ChangeLog
.eggs
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ jobs:
- name: py27
python: "2.7"
env: TOXENV=py27
- name: packaging
python: "3.6"
env: TOXENV=packaging

deploy:
provider: pypi
username: __token__
password:
secure: "fSEPPa9lkEiqNZKMs0qCdI3gSWYSoqjj+gk33bvZXpWvIYkrRGNYt77be6lAdNX4SBW2LaaHmAd8WZ9YuaYTfTfNksn25mSjOKw3yEhmus9V7r5VmLyODIlhuDmn+RGenzf1wKEXKdBJQ8qXjzH1R2MbagIEjApyTWTYX4tfjoMR5v41g+wP4VC9wwjQx6q7oZhwQWj/9nSw8Ww45By1ozH2E4oT5bGSS/guXxuLsQ+oUfQfe+9Ht8kiT4n7RbfHyYQTe3VjV1IZ0hhiiA/SxF0UwsPt4Lr242W59TkaGayWjbSNCv7REQQXyHGKLcns5C50eD3Up6ZDmehOpiGf8TUCwb7FuAi71lD+Rr6Uu7IY44nUlsCDeQ9/sqKGWLsJSZgf4mBYJBqSx9GD+1eqmBPx/AONbVTUdhWh2Ve+JfXztfBeJpdKmmUsRC3CjqbIf8UKNDz5zcuUJ7yv4o0V+SunUDSdMOxkYaW9tP4YwJQqwCpNOi5R80JjhJq4bwvjdhGatC7oLDuoZ17R7b9OrBT8TpaXr/R+rgC66AHxmC/qgxZf4z7he+6vtmJPnVNUDzKj24t0wPVHprZkCSkLPf00gFU4UvG+J2OTCaHEImHtL5dp2wv+NgQbnm5d6xCUb80LW38AGx6E46potk+mnkMM1P4+W1tmtoYkDX6eIB0="
edge: true # opt in to dpl v2
distributions: "sdist bdist_wheel"
skip_existing: true
on:
tags: true

env:
global:
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ author_email = [email protected]
maintainer = PyCQA
maintainer_email = [email protected]
home-page = https://github.com/pycqa/doc8
long_description_content_type = text/x-rst
classifier =
Intended Audience :: Information Technology
Intended Audience :: System Administrators
Expand Down
26 changes: 24 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[tox]
minversion = 1.6
envlist = lint,py{27,35,36,37},docs
minversion = 3.8
envlist = lint,py{27,35,36,37},docs,packaging

[testenv]
deps =
-r{toxinidir}/test-requirements.txt
commands = nosetests {posargs}
whitelist_externals =
rm

[testenv:lint]
deps =
Expand All @@ -19,3 +21,23 @@ deps =
commands =
doc8 -e .rst doc CONTRIBUTING.rst README.rst
sphinx-build -W -b html doc/source doc/build/html

[testenv:packaging]
description =
Do packagin/distribution. If tag is not present or PEP440 compliant upload to
PYPI could fail
# `usedevelop = true` overrides `skip_install` instruction, it's unwanted
usedevelop = false
# don't install molecule itself in this env
skip_install = true
deps =
collective.checkdocs >= 0.2
pep517 >= 0.5.0
twine >= 1.14.0
setenv =
commands =
rm -rfv {toxinidir}/dist/
python setup.py sdist bdist_wheel
# metadata validation
python -m setup checkdocs --verbose
python -m twine check {toxinidir}/dist/*

0 comments on commit 0ef8e56

Please sign in to comment.