Skip to content

Commit ba1c51b

Browse files
authored
Merge pull request #9 from codePerfectPlus/master
Initialzing pypi version
2 parents e5885bf + 9e03f53 commit ba1c51b

21 files changed

Lines changed: 553 additions & 82 deletions
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
**Are you using latest code**
10+
11+
**Describe the bug**
12+
A clear and concise description of what the bug is.
13+
14+
15+
**Expected behavior**
16+
A clear and concise description of what you expected to happen.
17+
18+
**Screenshots**
19+
If applicable, add screenshots to help explain your problem.
20+
21+
**Pythonversion**
22+
- Python version
23+
24+
**Additional context**
25+
Add any other context about the problem here.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Update Documentation
3+
about: Describe this issue template's purpose here.
4+
title: ''
5+
labels: documentation, enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Short introduction what you want to change in README.md **
11+
example:- code change, outdated Readme

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# Pull Request Template
3+
4+
**What have you Changed**
5+
6+
what you changed in the codebase.write here
7+
8+
9+
### Issue No. closes #
10+
11+
### Self Check(Tick After Making pull Request)
12+
13+
- [ ] One Change in one Pull Request
14+
- [ ] I am following clean code and Documentation and my code is well linted with flake8.
15+
16+
Join Us on Discord:- https://discord.gg/JfbK3bS
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# GitHub Action that uses close-issue auto-close empty issues after they are opened.
2+
# If the issue body text is empty the Action auto-closes it and sends a notification.
3+
# Otherwise if the issue body is not empty, it does nothing and the issue remains open.
4+
# https://github.com/marketplace/actions/close-issue
5+
6+
name: auto_close_empty_issues
7+
on:
8+
issues:
9+
types: [opened]
10+
jobs:
11+
check-issue-body-not-empty:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- if: github.event.issue.body == 0
15+
name: Close Issue
16+
uses: peter-evans/close-issue@v1
17+
with:
18+
comment: |
19+
Issue body must contain content.
20+
Auto-closing this issue.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: "CodeQL"
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
schedule:
8+
- cron: '0 9 * * 5'
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
# Override automatic language detection by changing the below list
19+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
20+
language: ['python']
21+
# Learn more...
22+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v2
27+
28+
# Initializes the CodeQL tools for scanning.
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v1
31+
with:
32+
languages: ${{ matrix.language }}
33+
# If you wish to specify custom queries, you can do so here or in a config file.
34+
# By default, queries listed here will override any specified in a config file.
35+
# Prefix the list here with "+" to use these queries and those in the config file.
36+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
37+
38+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
39+
# If this step fails, then you should remove it and run the build manually (see below)
40+
- name: Autobuild
41+
uses: github/codeql-action/autobuild@v1
42+
43+
# ℹ️ Command-line programs to run using the OS shell.
44+
# 📚 https://git.io/JvXDl
45+
46+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
47+
# and modify them (or add more) to build your code if your project
48+
# uses a compiled language
49+
50+
#- run: |
51+
# make bootstrap
52+
# make release
53+
54+
- name: Perform CodeQL Analysis
55+
uses: github/codeql-action/analyze@v1

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish package to PyPI
2+
on: push
3+
jobs:
4+
build-and-publish:
5+
name: Build and Publish to PyPI
6+
runs-on: ubuntu-latest
7+
if: startsWith(github.ref, 'refs/tags')
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Use Python 3.8
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.8
14+
- name: Run setup
15+
run: >-
16+
python setup.py sdist
17+
- name: Publish distribution to PyPI
18+
uses: pypa/gh-action-pypi-publish@master
19+
with:
20+
user: __token__
21+
password: ${{ secrets.pypi_password }}

.github/workflows/run-pytest.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run Pytest
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.10"]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
sudo apt-get update
22+
sudo apt install libespeak-dev
23+
python -m pip install --upgrade pip
24+
pip install flake8 pytest
25+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
26+
- name: Lint with flake8
27+
run: |
28+
# stop the build if there are Python syntax errors or undefined names
29+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
30+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
31+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=200 --statistics
32+
- name: Test with pytest
33+
run: |
34+
pytest

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4+
5+
## [1.0.5] - 02-11-2022
6+
7+
- PYPI package is now available
8+
- Only create required directories
9+
- Package can be updated from Github action workflow
10+
11+
## [1.0.4] - 04-07-2022
12+
13+
- code refactoring
14+
- bug fixes
15+
16+
## [1.0.3] - 23-09-2020
17+
18+
- Bug Fixed
19+
20+
## [1.0.2] - 22-09-2020
21+
22+
- New Extension Added
23+
- Bug Fixed
24+
25+
26+
## [Initial Release] - 13/05/2020
27+
28+
- Initial Release
29+

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at pycontributors@gmail.com. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

0 commit comments

Comments
 (0)