Skip to content

Commit

Permalink
First alpha version
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed May 23, 2019
1 parent b086f06 commit 6bf9b02
Show file tree
Hide file tree
Showing 34 changed files with 1,750 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
__pycache__
.pytest_cache
*.pyc
*.pyo
.eggs/
*.egg-info/
dist/
build/
mutagen-helper.json
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: python
python:
- 3.6
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
install:
- curl -fsSL -o mutagen.tar.gz https://github.com/havoc-io/mutagen/releases/download/v0.9.0-beta1/mutagen_linux_amd64_v0.9.0-beta1.tar.gz
- mkdir mutagen && tar zxvf mutagen.tar.gz -C /home/travis/bin
- mutagen daemon start
- pip install pip --upgrade
- pip install -e .[dev,test] --upgrade
- pip install pytest --upgrade
- pip install coveralls
- pytest --version
script:
- coverage run --source=mutagen_helper setup.py test
- python setup.py build
after_success:
- coveralls
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Build from sources

```
pipenv run python setup.py clean build bdist bdist_wheel bdist_pex --pex-args="--disable-cache" --bdist-all
docker run -v "$(pwd):/src/" cdrx/pyinstaller-linux "pyinstaller --clean -y --dist ./dist --workpath /tmp *.spec"
docker run -v "$(pwd):/src/" cdrx/pyinstaller-windows "pip install --upgrade setuptools && pyinstaller --clean -y --dist ./dist --workpath /tmp *.spec"
```

## Release

```
pipenv shell
prerelease
rm -Rf dist/ &&\
pipenv run python setup.py clean build bdist bdist_wheel &&\
docker run -v "$(pwd):/src/" cdrx/pyinstaller-linux "pyinstaller --clean -y --dist ./dist --workpath /tmp *.spec" &&\
docker run -v "$(pwd):/src/" cdrx/pyinstaller-windows "pip install --upgrade setuptools && pyinstaller --clean -y --dist ./dist --workpath /tmp *.spec"
release
githubrelease release gfi-centre-ouest/mutagen-helper create $(python -m mutagen_helper --version | cut -d ' ' -f 3-) --publish "dist/*"
postrelease
```
18 changes: 18 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = "*"
pyinstaller = "*"
zest-releaser = {extras = ["recommended"],version = "*"}
githubrelease = "*"

[packages]
click = "*"
pyyaml = "*"
tinydb = "*"

[requires]
python_version = "3.7"
Loading

0 comments on commit 6bf9b02

Please sign in to comment.