-
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.
- Loading branch information
Showing
18 changed files
with
256 additions
and
369 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Build, test and publish Python 🐍 distributions 📦 to PyPI | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
jobs: | ||
build-and-publish: | ||
name: Build, test and publish Python 🐍 distributions 📦 to PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
# Setup Python (faster than using Python container) | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install pipenv | ||
run: | | ||
python -m pip install --upgrade pipenv wheel | ||
- id: cache-pipenv | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.local/share/virtualenvs | ||
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache-pipenv.outputs.cache-hit != 'true' | ||
run: | | ||
pipenv install --deploy --dev | ||
# TODO: create unit tests! | ||
# - name: Run tests with pytest | ||
# run: pipenv run coverage run --source pathfinding -m pytest | ||
|
||
# - name: Show basic test coverage report | ||
# run: pipenv run coverage report | ||
|
||
- name: Build a binary wheel and a source tarball | ||
run: | | ||
pipenv run pip wheel --wheel-dir=./dist . | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1.8 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build-and-publish: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
# Setup Python (faster than using Python container) | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install pipenv | ||
run: | | ||
python -m pip install --upgrade pipenv wheel | ||
- id: cache-pipenv | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.local/share/virtualenvs | ||
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache-pipenv.outputs.cache-hit != 'true' | ||
run: | | ||
pipenv install --deploy --dev | ||
# TODO: create tests! | ||
# - name: Run tests with pytest | ||
# run: pipenv run coverage run --source txtrpacker -m pytest | ||
|
||
# - name: Show basic test coverage report | ||
# run: pipenv run coverage report |
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 |
---|---|---|
|
@@ -39,3 +39,5 @@ docs/_rst/* | |
docs/_build/* | ||
cover/* | ||
MANIFEST | ||
|
||
output.png |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Developers | ||
|
||
* Execution Unit Ltd. | ||
* see [github contributors](https://github.com/brean/python-txtrpacker/graphs/contributors) | ||
|
||
# Maintainer | ||
|
||
* Andreas Bresser |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Changelog | ||
|
||
## Version 0.2 | ||
- Update to python 3 | ||
- Integration of github workflows | ||
- minor code cleanup | ||
- switch to Markdown from RST | ||
|
||
## Version 0.1 | ||
- Initial version |
This file was deleted.
Oops, something went wrong.
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
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,5 +1 @@ | ||
# Add your requirements here like: | ||
# numpy | ||
# scipy>=0.9 | ||
setuptools>=9.0 | ||
|
||
Pillow |
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,45 +1,2 @@ | ||
[metadata] | ||
description = Texture Packer (based on http://www.executionunit.com/blog/2013/04/12/python-script-to-build-a-texture-page-or-sprite-sheet/ ) | ||
author = Execution Unit Ltd. | ||
author_email = none | ||
license = BSD | ||
url = https://github.com/brean/txtrpacker | ||
# Comma separated list of data INSIDE your package to include. | ||
# DO NOT prepend the package name when specifying files and folders. | ||
package_data = | ||
# Comma separated list of data OUTSIDE your package to include. | ||
# Equivalent to adding files to MANIFEST.in which is not needed. | ||
data_files = *.rst, *.txt | ||
# Add here all kinds of additional classifiers as defined under | ||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers = Development Status :: 4 - Beta, | ||
Programming Language :: Python | ||
|
||
[console_scripts] | ||
# Add here console scripts like: | ||
# hello_world = txtrpacker.module:function | ||
|
||
[data_files] | ||
# Add here data to be included which lies OUTSIDE your package, e.g. | ||
# path/to/destination = files/to/include, others/to/include | ||
# This is the same as adding files to MANIFEST.in which is not needed anymore. | ||
# The destination is relative to the root of your virtual environment. | ||
# Use ** as wildcard if you want to recursively include a pattern, e.g. | ||
# tests/**.py would include all py-files in all subfolders of tests. | ||
share/txtrpacker = *.rst, *.txt | ||
|
||
[extras_require] | ||
# Add here additional requirements for extra features, like: | ||
# PDF = ReportLab>=1.2, RXP | ||
|
||
[pytest] | ||
# Options for py.test: | ||
# Specify command line options as you would do when invoking py.test directly. | ||
# e.g. --cov-report html (or xml) for html/xml output or --junitxml junit.xml | ||
# in order to write a coverage file that can be read by Jenkins. | ||
addopts = tests | ||
--cov txtrpacker --cov-report term-missing | ||
--verbose | ||
|
||
[aliases] | ||
test = pytest | ||
description-file = README.md |
Oops, something went wrong.