Skip to content

Commit

Permalink
Project setup (#1)
Browse files Browse the repository at this point in the history
- Remove PyCharm configuration folder and ignore it
- Run linters in travis-ci with flake8
  - Fix unused import issue
- Use make commands in travis-ci and reuse values from init in setup.py
- Add coveralls
- Make badges always use master branch
- Add encrypted pypi password for deploys
  • Loading branch information
taaviteska committed Nov 8, 2019
1 parent 3ee3ab3 commit 96712ba
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 165 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,6 @@ ENV/

# mypy
.mypy_cache/

# PyCharm
.idea/
6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

91 changes: 0 additions & 91 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/pyevr.iml

This file was deleted.

31 changes: 0 additions & 31 deletions .idea/workspace.xml

This file was deleted.

12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ python:
- 2.7

# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -U tox-travis
install:
- if [ $TRAVIS_PYTHON_VERSION == "3.8" ]; then pip install -r requirements_dev.txt; fi
- pip install -U tox-travis flake8 coveralls

# Command to run tests, e.g. python setup.py test
script: tox
script:
- make lint
- make test-all
- if [ $TRAVIS_PYTHON_VERSION == "3.8" ]; then coverage run --source pyevr -m pytest; fi
- if [ $TRAVIS_PYTHON_VERSION == "3.8" ]; then coveralls; fi

# Assuming you have installed the travis-ci CLI tool, after you
# create the Github repo and add it to Travis, run the
Expand All @@ -23,7 +29,7 @@ deploy:
distributions: sdist bdist_wheel
user: thorgate
password:
secure: PLEASE_REPLACE_ME
secure: AxfqY940GesaqOB8UsR8rMxIOajZ9HTCD5c/ijAynluUN9vVlmokTil2EHy+sl+48gyh3PaUI4Bj+kPxKg+NehzF/zcDQvabxYrN3dvt1UO722/42N86FvBqvBfzNiXQCPBE1+53VHLSDil3Li7pPYa+AfB7WR0fEAJPoeqOTV47ca7czUJn7cXgF3VRmIHpkbErk8veeXr0Ccn7W0BvfIGhGSKnxFZa3AHHJhsf3j0OBMoxsm+acpuXP+F9OPJYEgCk0OtBqX/C94+QGg1QdPlv8XjThQi6s0BbgxNQcQMwoWDN+CW2tf4zBnoZqPJ3jowlr/MLt6PV+4Q+Fp2KpvNoQz0I9zUbfLGYBE3QO2rjgRwKL0cr0cWcpnw23yoQmPESplx9EHNfdEM8YFYCoB4/iIuuoP27IRJEAyASZp9QLIfjPuBibhbtvmNRpJqCK7dPbDW3rp4ZMIncFiJUV4y4qnjAYIyWBMsh2+uXfGslHABI8LFiZauegfJVeA6ABMwnofwxxKTp9Y1VnNTRPouNg/ouo5k0sSIA3S3uDbHOTXJ6dzByMsK1RFVPu8XR65knCbita2Ok1qzjkNLufRxKF38YkPSQ4fIIO3YLelsTPwBXkniTGbvUSILD9LnF/+4il+hr4bx+9pbnYNaUXxxqi4G0lXrOae5P+XsSISc=
on:
tags: true
repo: thorgate/pyevr
Expand Down
2 changes: 1 addition & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Development Lead
Contributors
------------

None yet. Why not be the first?
* Taavi Teska <taavi@thorgate.eu>
11 changes: 7 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ pyevr
.. image:: https://img.shields.io/pypi/v/pyevr.svg
:target: https://pypi.python.org/pypi/pyevr

.. image:: https://img.shields.io/travis/thorgate/pyevr.svg
.. image:: https://travis-ci.org/thorgate/pyevr.svg?branch=master
:target: https://travis-ci.org/thorgate/pyevr

.. image:: https://readthedocs.org/projects/pyevr/badge/?version=latest
:target: https://pyevr.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status


.. image:: https://pyup.io/repos/github/thorgate/pyevr/shield.svg
:target: https://pyup.io/repos/github/thorgate/pyevr/
:alt: Updates
:target: https://pyup.io/repos/github/thorgate/pyevr/
:alt: Updates

.. image:: https://coveralls.io/repos/github/thorgate/pyevr/badge.svg?branch=master
:target: https://coveralls.io/github/thorgate/pyevr?branch=master
:alt: Test coverage



Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

from setuptools import setup, find_packages

import pyevr

with open('README.rst') as readme_file:
readme = readme_file.read()

Expand All @@ -18,8 +20,8 @@
test_requirements = ['pytest>=3', ]

setup(
author="Thorgate",
author_email='code@thorgate.eu',
author=pyevr.__author__,
author_email=pyevr.__email__,
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
Expand Down Expand Up @@ -51,6 +53,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/thorgate/pyevr',
version='0.1.0',
version=pyevr.__version__,
zip_safe=False,
)
1 change: 0 additions & 1 deletion tests/test_pyevr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from click.testing import CliRunner

from pyevr import pyevr
from pyevr import cli


Expand Down

0 comments on commit 96712ba

Please sign in to comment.