Skip to content

Commit 76c7613

Browse files
Merge pull request #11 from girardinsamuel/2.0-dev
Major release 2.0
2 parents eaaae0b + 0f80be7 commit 76c7613

File tree

127 files changed

+139855
-56429
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+139855
-56429
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
9+
# Maintain dependencies for cookiecutter repo
10+
- package-ecosystem: "pip"
11+
directory: "/"
12+
schedule:
13+
interval: "weekly"
14+
# Allow up to 10 open pull requests for pip dependencies
15+
open-pull-requests-limit: 10

.github/workflows/pythonapp.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test Application
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.7", "3.8", "3.9", "3.10"]
11+
name: Python ${{ matrix.python-version }}
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install dependencies
19+
run: |
20+
make init
21+
- name: Test with pytest and Build coverage
22+
run: |
23+
make coverage
24+
- name: Upload coverage
25+
uses: codecov/codecov-action@v2
26+
with:
27+
token: ${{ secrets.CODECOV_TOKEN }}
28+
fail_ci_if_error: false
29+
30+
lint:
31+
runs-on: ubuntu-latest
32+
name: Lint
33+
steps:
34+
- uses: actions/checkout@v3
35+
- name: Set up Python 3.8
36+
uses: actions/setup-python@v3
37+
with:
38+
python-version: 3.8
39+
- name: Intall Flake8
40+
run: |
41+
pip install flake8
42+
- name: Lint
43+
run: make lint

.github/workflows/pythonpublish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up Python
13+
uses: actions/setup-python@v3
14+
with:
15+
python-version: "3.x"
16+
- name: Install dependencies
17+
run: |
18+
make init
19+
- name: Publish only packages passing test
20+
run: |
21+
make test
22+
- name: Set up Node.js 14
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: "14.x"
26+
- name: Install Dependencies
27+
run: npm install --legacy-peer-deps
28+
- name: Build package (python and assets) and publish
29+
env:
30+
TWINE_USERNAME: __token__
31+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
32+
run: |
33+
npm run production
34+
ls -lh
35+
ls -lh src/exceptionite/
36+
npm run production
37+
make publish

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ venv
44
package.db
55
.env
66
dist/*
7-
src/exceptionite.egg-info
7+
src/exceptionite.egg-info
8+
build/
9+
node_modules/
10+
**/mix-manifest.json

CONTRIBUTING.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Setting up this repository for development
2+
3+
To setup the package to get your package up and running, you should first take a look at `setup.py` and make any packages specific changes there. These include the classifiers and package name.
4+
5+
Then you should create a virtual environment and activate it
6+
7+
```
8+
python3 -m venv venv
9+
source venv/bin/activate
10+
```
11+
12+
Then install from the requirements file
13+
14+
```
15+
pip install -r requirements.txt
16+
```
17+
18+
This will install `exceptionite` and development related packages.
19+
20+
## Running tests
21+
22+
```
23+
python -m pytest
24+
```

LICENSE

100755100644
File mode changed.

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
include src/exceptionite/errors/templates/*
2-
include src/exceptionite/errors/templates/css/*
1+
include src/exceptionite/templates/*

0 commit comments

Comments
 (0)