Hasan Iqbal commited on
Commit
c2f8c9c
·
unverified ·
1 Parent(s): 12e706d

Working towards prereleasing

Browse files
.bumpversion.cfg CHANGED
@@ -1,12 +1,11 @@
1
  [bumpversion]
2
  current_version = 0.3.9
3
  parse = ^
4
- (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) # Major, minor, patch (X.Y.Z)
5
- (?:\- # Separator
6
- (?P<prerel>a|alpha|b|beta|d|dev|rc) # Prerelease (a, alpha, b, beta, d, dev, rc)
7
  (?P<prerelversion>\d+))? # Prerelease version
8
  serialize =
9
- {major}.{minor}.{patch}-{prerel}{prerelversion}
10
  {major}.{minor}.{patch}
11
 
12
  [bumpversion:part:prerel]
 
1
  [bumpversion]
2
  current_version = 0.3.9
3
  parse = ^
4
+ (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) # Major, minor, patch (X.Y.Z) # Separator
5
+ ((?P<prerel>a|alpha|b|beta|d|dev|rc) # Prerelease (a, alpha, b, beta, d, dev, rc)
 
6
  (?P<prerelversion>\d+))? # Prerelease version
7
  serialize =
8
+ {major}.{minor}.{patch}{prerel}{prerelversion}
9
  {major}.{minor}.{patch}
10
 
11
  [bumpversion:part:prerel]
.github/workflows/prerelease.yaml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Prerelease Build
2
+
3
+ on:
4
+ push:
5
+ tags: ["v[0-9]+.[0-9]+.[0-9]+rc[0-9]+"]
6
+ branches: ["*"]
7
+
8
+ jobs:
9
+ pypi_deploy:
10
+ name: Deploy to PyPI
11
+ runs-on: ubuntu-latest
12
+ if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
13
+ steps:
14
+ - name: Check out code
15
+ uses: actions/checkout@v3
16
+ with:
17
+ ref: ${{ github.head_ref }}
18
+ fetch-depth: 0
19
+
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v2
22
+ with:
23
+ python-version: "3.11"
24
+
25
+ - name: Install dependencies
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ pip install -r requirements.txt
29
+ pip install build
30
+ pip install twine
31
+
32
+ - name: Build Package
33
+ run: |
34
+ python -m build
35
+
36
+ - name: Check Package
37
+ run: |
38
+ twine check dist/* --strict
39
+
40
+ - name: Publish to PyPI
41
+ env:
42
+ TWINE_USERNAME: __token__
43
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
44
+ run: |
45
+ twine upload dist/* --verbose
.github/workflows/release.yaml CHANGED
@@ -1,4 +1,4 @@
1
- name: Release
2
 
3
  on:
4
  push:
 
1
+ name: Release Build
2
 
3
  on:
4
  push:
.gitignore CHANGED
@@ -10,8 +10,6 @@ ignore.*.tfvars
10
  .vscode/
11
 
12
  # Project Specific
13
- /logo/
14
- /favicon/
15
  DEVNOTES
16
  tmp/
17
  dev*.json
@@ -33,4 +31,7 @@ verification_error.txt
33
  error_output.txt
34
 
35
  # Doc Specific
36
- **/reference/api/*
 
 
 
 
10
  .vscode/
11
 
12
  # Project Specific
 
 
13
  DEVNOTES
14
  tmp/
15
  dev*.json
 
31
  error_output.txt
32
 
33
  # Doc Specific
34
+ **/reference/api/*
35
+
36
+ # Assets Specific
37
+ **/assets/*/*