-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from brainelectronics/bugfix/update-readme-file
Update README file
- Loading branch information
Showing
4 changed files
with
42 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,40 @@ | ||
# A sample Python project | ||
# Changelog2version | ||
|
||
![Python Logo](https://www.python.org/static/community_logos/python-logo.png "Sample inline image") | ||
[![Downloads](https://pepy.tech/badge/changelog2version)](https://pepy.tech/project/changelog2version) | ||
![Release](https://img.shields.io/github/v/release/brainelectronics/changelog2version?include_prereleases&color=success) | ||
![Python](https://img.shields.io/badge/python3-Ok-green.svg) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
|
||
A sample project that exists as an aid to the [Python Packaging User | ||
Guide][packaging guide]'s [Tutorial on Packaging and Distributing | ||
Projects][distribution tutorial]. | ||
Update version info file with latest changelog version entry | ||
|
||
This project does not aim to cover best practices for Python project | ||
development as a whole. For example, it does not provide guidance or tool | ||
recommendations for version control, documentation, or testing. | ||
--------------- | ||
|
||
[The source for this project is available here][src]. | ||
## General | ||
|
||
Most of the configuration for a Python project is done in the `setup.py` file, | ||
an example of which is included in this project. You should edit this file | ||
accordingly to adapt this sample project to your needs. | ||
Create version info files based on the latest changelog entry. | ||
|
||
---- | ||
## Installation | ||
|
||
This is the README file for the project. | ||
```bash | ||
pip install changelog2version | ||
``` | ||
|
||
The file should use UTF-8 encoding and can be written using | ||
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md | ||
use]. It will be used to generate the project webpage on PyPI and will be | ||
displayed as the project homepage on common code-hosting services, and should be | ||
written for that purpose. | ||
## Usage | ||
|
||
Typical contents for this file would include an overview of the project, basic | ||
usage examples, etc. Generally, including the project changelog in here is not a | ||
good idea, although a simple “What's New” section for the most recent version | ||
may be appropriate. | ||
This example shows you how to parse the [repo's changelog](changelog.md) and | ||
update the [package version file](src/changelog2version/version.py) with that | ||
version. | ||
|
||
[packaging guide]: https://packaging.python.org | ||
[distribution tutorial]: https://packaging.python.org/tutorials/packaging-projects/ | ||
[src]: https://github.com/pypa/sampleproject | ||
[rst]: http://docutils.sourceforge.net/rst.html | ||
[md]: https://tools.ietf.org/html/rfc7764#section-3.5 "CommonMark variant" | ||
[md use]: https://packaging.python.org/specifications/core-metadata/#description-content-type-optional | ||
```bash | ||
changelog2version \ | ||
--changelog_file changelog.md \ | ||
--version_file src/changelog2version/version.py \ | ||
--debug | ||
``` | ||
|
||
## Credits | ||
|
||
Based on the [PyPa sample project][ref-pypa-sample]. | ||
|
||
<!-- Links --> | ||
[ref-pypa-sample]: https://github.com/pypa/sampleproject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: UTF-8 -*- | ||
|
||
__version_info__ = ('0', '1', '0') | ||
__version_info__ = ('0', '0', '0') | ||
__version__ = '.'.join(__version_info__) | ||
__author__ = 'brainelectronics' |