Skip to content

Decorator refactor #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 65 commits into from
Jun 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
7ec095d
Refactoring with decorator
KentoNishi Jun 8, 2020
3c409f8
Added static variables
KentoNishi Jun 8, 2020
30c8b1c
Checkpoint
KentoNishi Jun 9, 2020
45dfb00
Partially working static variables and methods
KentoNishi Jun 9, 2020
e08d463
Working static variable and method implementation
KentoNishi Jun 9, 2020
7b65fe9
Updated notebook
KentoNishi Jun 9, 2020
f651571
Fixed constructor params issue
r2dev2 Jun 9, 2020
4a1fe22
Removed @constructor scope specification requirement
KentoNishi Jun 9, 2020
b5f50fa
Enabled all built in method calls
KentoNishi Jun 9, 2020
306d400
Refactored for thread safety
KentoNishi Jun 9, 2020
84e2dff
[ERROR] unstable with multiprocessing
r2dev2 Jun 9, 2020
e267b7a
Working with multiprocessing!
KentoNishi Jun 9, 2020
ac68c3d
Added docstrings
KentoNishi Jun 9, 2020
0282e6e
Enabled inheritance
KentoNishi Jun 10, 2020
57f646e
Checkpoint
KentoNishi Jun 10, 2020
b76e0fe
Broken inherited private sharing
KentoNishi Jun 10, 2020
f7b56d4
Checkpoint before refactor
KentoNishi Jun 10, 2020
c7e7e93
Reverting to old commit
KentoNishi Jun 10, 2020
b1e5661
Checkpoint :sleeping:
KentoNishi Jun 10, 2020
cd1f59c
Checkpoint
KentoNishi Jun 10, 2020
3c374f0
Checkpoint
KentoNishi Jun 10, 2020
f10bb9a
Completely refactored with clean code
KentoNishi Jun 10, 2020
42ea31e
Added static variables to example
KentoNishi Jun 10, 2020
be9472e
Added static method and variable initialization on class declaration
KentoNishi Jun 10, 2020
d9b1060
Blocked static variable access for instances
KentoNishi Jun 10, 2020
c42af13
Switched all containers to ContainerWrapper
KentoNishi Jun 10, 2020
f2bd271
Added blacklisted method names
KentoNishi Jun 11, 2020
a565f0a
Added static to blacklist
KentoNishi Jun 11, 2020
16b9898
Resolved issues with static instance access
KentoNishi Jun 11, 2020
3f908c3
Updated examples
KentoNishi Jun 11, 2020
3a2543b
Minor formatting fixes
r2dev2 Jun 11, 2020
aedcf23
used some markdown in docstrings
r2dev2 Jun 11, 2020
1ae1d4b
Added dynamic constructor destruction
KentoNishi Jun 11, 2020
c02e665
Merge pull request #2 from r2dev2bb8/master
KentoNishi Jun 11, 2020
d8f7bbb
Made internal methods function properly!
KentoNishi Jun 11, 2020
1f784fd
Merge branch 'decorator-refactor' of https://github.com/r2dev2bb8/Pyt…
KentoNishi Jun 11, 2020
051a81a
Added benchmarks
r2dev2 Jun 11, 2020
d0da2e1
Added new @builtin decorator
KentoNishi Jun 12, 2020
5822f84
Updated builtin method declaration standard
KentoNishi Jun 12, 2020
3621e98
Repaired constructor destructor
KentoNishi Jun 12, 2020
3420e7f
Updated constructor destruction routine
KentoNishi Jun 12, 2020
02cc158
Updated example
KentoNishi Jun 12, 2020
b0c2a5f
Renamed "builtin" to "special"
KentoNishi Jun 12, 2020
8ac96fd
unit tests and still buggy, I need sleep, it's 3 am send help
r2dev2 Jun 12, 2020
8e13c10
Revert "unit tests and still buggy, I need sleep, it's 3 am send help"
KentoNishi Jun 12, 2020
0775179
Repaired static variable initialization
KentoNishi Jun 12, 2020
3a35146
Updated example
KentoNishi Jun 12, 2020
f830f5a
Updated error messages
KentoNishi Jun 12, 2020
6d5c1f0
Unit tests
r2dev2 Jun 12, 2020
c47625b
Added pytest github action
r2dev2 Jun 12, 2020
da9da08
Runs on decorator-refactor branch now as well
r2dev2 Jun 12, 2020
fc99ad8
Copies the pythonpp source to tests directory, hopefully works now
r2dev2 Jun 12, 2020
1ad0430
Multiprocessing unit tests
r2dev2 Jun 12, 2020
b9f69a1
Deleted some files
r2dev2 Jun 12, 2020
6638eac
Update gitignore
r2dev2 Jun 12, 2020
cc724d1
Added `@initializer` decorator
KentoNishi Jun 15, 2020
9e203c6
Renamed `@initializer` to `@staticinit`
KentoNishi Jun 15, 2020
c6801fa
Cleaned up constructor and staticinit decorators
KentoNishi Jun 15, 2020
8f75fab
Updated example
KentoNishi Jun 15, 2020
7cc4c47
Updated README
KentoNishi Jun 15, 2020
81d36b9
Updated example
KentoNishi Jun 15, 2020
fc713d2
Added info about scopes
KentoNishi Jun 15, 2020
f2bf301
Added quickstart example
KentoNishi Jun 15, 2020
134422a
Reorganized README
KentoNishi Jun 15, 2020
223d620
Update README.md
r2dev2 Jun 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/pytest-unit-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches: [ master, decorator-refactor ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
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 with pytest
run: |
cp pythonpp/pythonpp.py benchmarks/tests/pythonpp.py
pytest
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
*~
__pycache__/
.vscode/
test.py
**/pythonpp.py
!pythonpp/pythonpp.py
start.lock
test.pickle
3 changes: 3 additions & 0 deletions .vsls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"gitignore":"none"
}
Loading