Skip to content

Commit

Permalink
version 2.0.0 (#133)
Browse files Browse the repository at this point in the history
* add insenc and lexmin options to permtools (#116)

* Typing for permuta/perm.py (#118)

* typing, refactoring and naming perm.py

* minor updates

* add mypy to test suite

* rem typechecking, prune comments, refactor perm.py

* mypy fix permutils

* mypy fix enum-strat

* mypy fix _perm_set

* mypy sympy

* permset mypy fix

* interfaces mypy fix

* flake8 fix in interfaces

* potential 36 fix

* 3.6 issues solved

* resolve issues

* fix issues 2.0

Co-authored-by: Émile Nadeau <[email protected]>

* Refactor (#120)

* add sympy as dependency

* more perm.py refactor + some tests

* tests + refactor + reimplementing block method

* more permpy tests and refactor, almost done

* sympy top

* .

* removed Rotatable, Shiftable, Flippable abc

* meshpatt refactor

* remove comment

* fix newl in docstr

* doctest fixes

* more fixes

* fix isort issue

* forgot -> type of inf iterator

* fix issues

* tmp solutions to sympy removal

* Bivincular (#122)

* rem cov badge

* dihedral group

* union find tests

* misc cleared

* tests updated

* pre-move push

* restructure

* testing for bivpatt

* added missing types

* doctest fix

* more_doctest_fixes

* fix flake issues

* Refactor permutils

* permutils finite+sym refactor

* poly refactor

* poly deque for performance

* utils refactoring done

* issues and p_utils to putils

* [requires.io] dependency update (#121)

Co-authored-by: requires.io <[email protected]>

* SVG for patterns + HTML rendering (#125)

* perm2svg

* mesh svg

* svg open in tab

* openhtml cleanup

* removal of file

* Bisc perm properties refactor + tests (#127)

* include bisc jsons in pypi package

* .show in patts

* bisc perm prop refactoring

* forgot pylint in travis

* missing comma in pylintrc

* remove win from deployment

* enumeration_strategies typing + removing permuta/descriptors (#129)

* typing for enum_strat

* removed readme.d + docs

* forgot a few types in bisc-perm-prop

* basis to permsets

* basis

* mp gen moved to mp

* remove unused classvar

* bivpatt random made uniform

* doc fix

* forgot len in rand

* flake issue

* and more fixes...

* [requires.io] dependency update (#128)

Co-authored-by: requires.io <[email protected]>

* permsets simplified (#130)

* cache clear function in perm

* minor cleanup in enumstrat

* remove .vscode

* .vscode to gitignore

* basis refactor

* perm_set simplified

* comments + enum test

* readme + comments + tests

* cache fix + cache test

* cache tests

* fix assertion in Av

* reduce memory of cache

* reduce loop of auto cache clearing

* issue fixing

* identical types fix

* cli typing (#132)

* cli typing

* typos + avoid iteration in cnt

* poly to cli

* , -> _

* version 2.0.0

* PEP 561 compatible

Co-authored-by: Jón Steinn Elíasson <[email protected]>
Co-authored-by: Émile Nadeau <[email protected]>
Co-authored-by: requires.io <[email protected]>
  • Loading branch information
4 people authored Jul 20, 2020
1 parent 0fb6e7f commit 0de5a3e
Show file tree
Hide file tree
Showing 144 changed files with 12,769 additions and 8,887 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ ENV/

# Pytest cache
.pytest_cache/

# vscode settings
.vscode/
16 changes: 16 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This is a temporary .pylintrc file during refactoring.

[MASTER]
ignore-patterns=test_.*?py,
# TODO: REMOVE
bisc.py,
bisc_subfunctions.py
ignore= tests
init-hook="from pylint.config import find_pylintrc; import os, sys; sys.path.append(os.path.dirname(find_pylintrc())+'/permuta')"
disable=bad-continuation,
missing-module-docstring,
fixme
good-names=i,j,n,k,x,y,_

[SIMILARITIES]
ignore-imports=yes
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ matrix:
include:
- python: 3.8
env: TOXENV=flake8
- python: 3.8
env: TOXENV=mypy
- python: 3.8
env: TOXENV=black
- python: 3.8
env: TOXENV=pylint

- python: 3.6
env: TOXENV=py36
Expand All @@ -18,6 +22,18 @@ matrix:
- python: pypy3
env: TOXENV=pypy36

- name: "py38-win10"
os: windows
language: shell
before_install:
- choco install python --version 3.8.0
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
install:
- pip install pytest
script:
- python -m pytest tests
- python setup.py install

install:
- pip install tox
Expand All @@ -33,3 +49,4 @@ deploy:
skip_existing: true
on:
branch: master
condition: $TRAVIS_OS_NAME = linux
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,41 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

## 2.0.0 - 2020-07-20
### Added
- Two new tools added to permtools. A command to check if a class has a regular
insertion encoding, and a command to compute the lexicographically minimal
basis.
- Typing
- pylint
- `clear_cache` method in `Perm` and `Av`
- `up_to_length`, `of_length`, `first` iterators in Perm and Av
- `to_svg` for all patterns
- `show` method for all patterns (opens browser tab)
- Functions returning list (or other data structures) made into generators when possible
- `BivincularPatt`, `VincularPatt`, `CovincularPatt` patterns,
- `dihedral_group` generator added to `permutils`
- `from_string` method to `Basis` and `Av`. It accepts both 0 and 1 based perms
seperated by anything
- Check if polynomial added to `cli`, which can be used with the `poly` command

### Fixed
- Bisc's resource files now included with pypi package

### Changed
- Type and condition checking and Exception throwing changed to assertions
- `Basis` moved to `permset` module
- `gen_meshpatt` moved to meshpatt as `of_length` generator
- Client now uses `Basis.from_string` to parse basis

### Removed
- Permsets and their interfaces
- Unused algorithms and utils
- Symmetric interfaces
- All rotate function other than `rotate`
- `descriptors` module
- sympy dependency

## 1.5.0 - 2020-06-23
## Added
- A quick command line interface to compute the enumeration of a permutation class.
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include permuta/resources/bisc/*.json
Binary file removed README.d/1324.png
Binary file not shown.
234 changes: 0 additions & 234 deletions README.d/1324.svg

This file was deleted.

Binary file removed README.d/av_213_231_of_length_14_heatmap.png
Binary file not shown.
Loading

0 comments on commit 0de5a3e

Please sign in to comment.