Skip to content

Commit

Permalink
0.0.3 Release Travis check
Browse files Browse the repository at this point in the history
  • Loading branch information
insspb committed Sep 19, 2019
1 parent 192e640 commit f6a3c6f
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 26 deletions.
37 changes: 27 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,35 @@ sudo: required

language: python

matrix:
jobs:
include:
- python: 3.7
env: TOXENV=docs
- python: 3.6
env: TOXENV=py36
- python: 3.7
env: TOXENV=py37
- python: pypy
env: TOXENV=pypy
- python: 3.7
env: TOXENV=docs
- python: 3.6
env: TOXENV=py36
- python: 3.7
env: TOXENV=py37
- python: pypy
env: TOXENV=pypy
- stage: deploy
python: 3.7
install: pip install -U setuptools
script: skip
deploy:
- provider: pypi
edge: true
skip_existing: true
username: ashpak
password:
secure: nwDiDWa2DN9NPTXNPnbPbTSb7uIpFR6N3ALSp+KzJy5TXHOjPuwYONxm4mWByTynR4iSbv88LO3PVGwD8RPLGZQFNouv5+LRFEzz4x6ynC82bLo8btR4OrGGbBUcRtWDP6fUOVxdtNRaaGqat8Qx5CRGad1cABRdhuJRjXUXffvkhJTuLtE5dKFjZtF5wyctY5yqDwE7cdbhp6TvHPrTIl6eFwTqyuNJES0ch1TWO9tEM/2uo2E6t9h9BfrxRSMX01PBbjDvSw+ZFRkrSW2o4vljCv8lsYFrk45B6lbZSK8INOyjKiXCILW9A8YBAeCeGcXfvyXt/0md+YNEYAUvU4mkG9AMkT4bHrK1LLvnjOxKd54Ub3FODAMUG3Aevb5oKrp8JmfYD1Zwb56mco5FInHHcPeN5yq19QWc0Lv/nWzRuq+Xut+hYZMj/LOgNlvL5iuRd6h1eB51JYuceY0LtoyVtu6QpkkXrns+xDVJGfoVQGNK5QbZLHvXviqw2IWzfxMs2Oh0X3k9sRo63fCzZ4u/wE29wqXD9Sp6cY5sjm7Ub8Ur4OFghnw0ZlGsEbALishDXEIh+iQOIMyoA9Uc943IflcxEdCsHVq2V1595XmPWJcKawN5L9fp7xQZwPIHM735o234RpZU2or9nzsYw0O9cs6OFKtPPAQJhTFc3zw=
on:
tags: true

install:
- pip install tox-travis
- pip install tox-travis

script: tox

stages:
- test
- name: deploy
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic versioning](https://semver.org/spec/v2.0.0

Unreleased features are usually available in HEAD master branch.

## [0.0.3] - 2019-09-19

### Added

* Readme file generation for new projects. Available formats: `Markdown`
or `reStructuredText`
* Authors file generation for new projects. Available formats: `Markdown`
Expand All @@ -24,8 +28,7 @@ folder and as `reStructuredText` in `docs` folder.
* Apache Software License 2.0
* unlicensed (Public domain)
* Sphinx doc folder and project generation. Configured for separated `source`
and `build` folders. Cannot be switched off at this moment.
* `setup.py` and `setup.cfg` generation. Files will work, but some adjustment
required if you want to use them on pypi. Not all planned features included.
and `build` folders.
* `setup.py` and `setup.cfg` generation.
* `requirements.txt` and `requirements.dev` generation based on template
choices.
50 changes: 38 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,49 @@ need in one place.

This project for small non-web projects.

Project is under development. Unreleased features available at master branch.
Most fresh changes data available in [CHANGELOG](CHANGELOG.md)

## Current project features

Project is under development. Unreleased features available at master branch.
Most fresh changes data available in [CHANGELOG](CHANGELOG)
* Readme file generation for new projects. Available formats: `Markdown`
or `reStructuredText`
* Authors file generation for new projects. Available formats: `Markdown`
or `reStructuredText`
* Changelog file generation for new projects. Available formats: `Markdown`
or `reStructuredText`
* License file generation for new projects. Generated as `LICENSE` in root
folder and as `reStructuredText` in `docs` folder.
Available licenses:
* MIT
* BSD-3
* GNU GPL v3.0
* Apache Software License 2.0
* unlicensed (Public domain)
* Sphinx doc folder and project generation. Configured for separated `source`
and `build` folders.
* `setup.py` and `setup.cfg` generation.
* `requirements.txt` and `requirements.dev` generation based on template
choices.

## Usage

Single time usage example, requires installation of
[Cookiecutter](https://github.com/cookiecutter/cookiecutter):

```bash
cookiecutter https://github.com/insspb/py3-bp
```

## Roadmap

* Different licences templates
* Pytest requirement option
* tox requirement option
* nox requirement option
* SQLAlchemy+mysql requirement option
* Alembic requirement option
* Travis CI option
* Gitlab CI option
* AppVeyor CI option
* Sphinx documentation option
* Include pytest sample tests if pytest enabled
* Include tox sample configuration files
* Include nox sample configuration files
* Include Alembic sample configuration files
* Include Travis CI sample configuration files
* Include Gitlab CI sample configuration files
* Include AppVeyor CI sample configuration files

Currently this project is in 'I have an idea' stage.

Expand Down
8 changes: 8 additions & 0 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import os
import shutil

PROJECT_DIRECTORY = os.path.realpath(os.path.curdir)

Expand All @@ -8,6 +9,10 @@ def remove_file(filepath):
os.remove(os.path.join(PROJECT_DIRECTORY, filepath))


def remove_directory(dirpath):
shutil.rmtree(os.path.join(PROJECT_DIRECTORY, dirpath), ignore_errors=False, onerror=None)


if __name__ == '__main__':

if '{{ cookiecutter.authors_format }}' == 'Markdown':
Expand Down Expand Up @@ -49,3 +54,6 @@ def remove_file(filepath):
if '{{ cookiecutter.license }}' == 'None':
remove_file('LICENSE')
remove_file('docs/source/license.rst')

if '{{ cookiecutter.use_sphinx_documentation }}' == 'no':
remove_directory('docs')
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
license='MIT',
license_file='LICENSE',
zip_safe=True,
project_urls={
"Bug Tracker": "https://github.com/insspb/py3-bp/issues",
"Documentation": "https://py3-bp.readthedocs.io",
"Source Code": "https://github.com/insspb/py3-bp",
},
classifiers=[
'Development Status :: 1 - Planning',
'Development Status :: 4 - Beta',
'Framework :: Pytest',
'Framework :: Sphinx',
'Framework :: tox',
Expand Down

0 comments on commit f6a3c6f

Please sign in to comment.