This file contains hidden or 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
sudo apt install python3-sphinx | |
cd docs | |
sphinx-quickstart # Choose yes on create a Makefile. | |
sphinx-apidoc -f -o source/ ../module_name | |
make html |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# amanita documentation build configuration file, created by | |
# sphinx-quickstart on Fri Nov 2 22:28:21 2018. | |
# | |
# This file is execfile()d with the current directory set to its | |
# containing dir. | |
# | |
# Note that not all possible configuration values are present in this |
This file contains hidden or 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
coverage run --omit */site-packages/* -m amanita muscaria -v -e venv | |
coverage report -m | |
coverage hmtl |
This file contains hidden or 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
language: python | |
python: | |
- "3.5" | |
install: | |
- python setup.py install | |
script: | |
- pytest |
This file contains hidden or 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
@startuml | |
start | |
:Get arguments; | |
:Check OS; | |
if (linux?) then (yes) | |
:verify direnv installation; | |
else (no) | |
endif | |
stop | |
@enduml |
This file contains hidden or 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
python setup.py sdist bdist_wheel | |
twine upload --repository-url https://test.pypi.org/legacy/ dist/* |
This file contains hidden or 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
[distutils] | |
index-servers= | |
pypi | |
testpypi | |
[testpypi] | |
repository: https://test.pypi.org/legacy/ | |
username: testpy-username |
This file contains hidden or 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
[tox] | |
skipsdist = True | |
envlist = py{35} | |
[testenv] | |
deps = | |
pytest | |
commands = | |
python3 -m pytest tests |
This file contains hidden or 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
[tool.poetry] | |
name = "amanita" | |
version = "0.1.0" | |
description = "Create customizable python projects" | |
authors = ["constrict0r <[email protected]>"] | |
license="MIT" | |
readme = "README.rst" | |
homepage="https://github.com/constrict0r/amanita" |
This file contains hidden or 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
# 1. Clone your fork. | |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git | |
# 2. Add remote from original repository in your forked repository: | |
cd into/cloned/fork-repo | |
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git | |
git fetch upstream | |
# 3. Updating your fork from original repo to keep up with their changes: | |
git pull upstream [branch-name] |