# HG changeset patch # User Dennis Concepcion Martin # Date 1637081104 -3600 # Node ID 2d78ef7a90e6dc96def495a162d87bf7d15580de # Parent 3eb56c7efd31bd49bc7a910bdadd649a15194889 add github config diff -r 3eb56c7efd31 -r 2d78ef7a90e6 .github/FUNDING.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.github/FUNDING.yml Tue Nov 16 17:45:04 2021 +0100 @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: [denniscm190] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff -r 3eb56c7efd31 -r 2d78ef7a90e6 .github/ISSUE_TEMPLATE/bug_report.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.github/ISSUE_TEMPLATE/bug_report.md Tue Nov 16 17:45:04 2021 +0100 @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff -r 3eb56c7efd31 -r 2d78ef7a90e6 .github/ISSUE_TEMPLATE/feature_request.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.github/ISSUE_TEMPLATE/feature_request.md Tue Nov 16 17:45:04 2021 +0100 @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff -r 3eb56c7efd31 -r 2d78ef7a90e6 .github/workflows/python-publish.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.github/workflows/python-publish.yml Tue Nov 16 17:45:04 2021 +0100 @@ -0,0 +1,42 @@ +name: Upload Python Package + +on: + push: + tags: [ '*.*.*' ] + +jobs: + deploy: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [ "2.x", "3.x" ] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + python -m pip install flake8 + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test + run: python -m unittest discover + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}